OpenSDN source code
|
#include <dns_oper.h>
Public Types | |
enum | Source { Config, Agent } |
typedef std::map< std::string, VirtualDnsRecordConfig * > | DataMap |
typedef std::pair< std::string, VirtualDnsRecordConfig * > | DataPair |
![]() | |
enum | DnsConfigEvent { CFG_ADD, CFG_CHANGE, CFG_DELETE } |
enum | DnsConfigFlags { DnsConfigValid = 1 << 0, DnsConfigNotified = 1 << 1, DnsConfigDeleteMarked = 1 << 2, DnsConfigErrorLogged = 1 << 3 } |
typedef boost::function< void(const DnsConfig *, DnsConfig::DnsConfigEvent)> | Callback |
typedef boost::function< void(const Subnet &, const VirtualDnsConfig *, DnsConfig::DnsConfigEvent)> | ZoneCallback |
Public Member Functions | |
VirtualDnsRecordConfig (IFMapNode *node) | |
VirtualDnsRecordConfig (const std::string &name, const std::string &vdns_name, const DnsItem &item) | |
~VirtualDnsRecordConfig () | |
void | OnAdd (IFMapNode *node=NULL) |
void | OnDelete () |
void | OnChange (IFMapNode *node) |
void | OnChange (const DnsItem &new_rec) |
bool | UpdateVdns (IFMapNode *node) |
bool | CanNotify () |
bool | HasChanged (DnsItem &rhs) |
bool | OnlyTtlChange (DnsItem &rhs) |
autogen::VirtualDnsType | GetVDns () const |
const DnsItem & | GetRecord () const |
std::string | GetViewName () const |
VirtualDnsConfig * | GetVirtualDns () const |
bool | GetObject (IFMapNode *node, DnsItem &item) |
void | VirtualDnsRecordTrace (VirtualDnsRecordTraceData &rec) |
void | Trace (const std::string &ev) |
![]() | |
void | MarkValid () |
bool | IsValid () const |
void | ClearValid () |
void | MarkNotified () const |
bool | IsNotified () const |
void | ClearNotified () const |
void | MarkDelete () |
bool | IsDeleted () const |
void | ClearDelete () |
void | MarkErrorLogged () |
bool | IsErrorLogged () const |
DnsConfig (const std::string &name) | |
const std::string & | GetName () const |
Static Public Member Functions | |
static VirtualDnsRecordConfig * | Find (std::string name) |
static void | UpdateVirtualDns (VirtualDnsConfig *vdns) |
![]() | |
static const std::string & | ToEventString (DnsConfigEvent ev) |
Public Attributes | |
DnsItem | rec_ |
VirtualDnsConfig * | virt_dns_ |
std::string | virtual_dns_name_ |
Source | src_ |
![]() | |
std::string | name_ |
uint8_t | flags_ |
Static Public Attributes | |
static DataMap | virt_dns_rec_config_ |
![]() | |
static Callback | VdnsCallback |
static Callback | VdnsRecordCallback |
static ZoneCallback | VdnsZoneCallback |
static const std::string | EventString [] |
Definition at line 188 of file dns_oper.h.
typedef std::map<std::string, VirtualDnsRecordConfig *> VirtualDnsRecordConfig::DataMap |
Definition at line 189 of file dns_oper.h.
typedef std::pair<std::string, VirtualDnsRecordConfig *> VirtualDnsRecordConfig::DataPair |
Definition at line 190 of file dns_oper.h.
Enumerator | |
---|---|
Config | |
Agent |
Definition at line 192 of file dns_oper.h.
VirtualDnsRecordConfig::VirtualDnsRecordConfig | ( | IFMapNode * | node | ) |
VirtualDnsRecordConfig::VirtualDnsRecordConfig | ( | const std::string & | name, |
const std::string & | vdns_name, | ||
const DnsItem & | item | ||
) |
VirtualDnsRecordConfig::~VirtualDnsRecordConfig | ( | ) |
Definition at line 502 of file dns_oper.cc.
bool VirtualDnsRecordConfig::CanNotify | ( | ) |
|
static |
Definition at line 694 of file dns_oper.cc.
|
inline |
Definition at line 217 of file dns_oper.h.
autogen::VirtualDnsType VirtualDnsRecordConfig::GetVDns | ( | ) | const |
std::string VirtualDnsRecordConfig::GetViewName | ( | ) | const |
|
inline |
Definition at line 219 of file dns_oper.h.
bool VirtualDnsRecordConfig::HasChanged | ( | DnsItem & | rhs | ) |
Definition at line 612 of file dns_oper.cc.
void VirtualDnsRecordConfig::OnAdd | ( | IFMapNode * | node = NULL | ) |
void VirtualDnsRecordConfig::OnChange | ( | IFMapNode * | node | ) |
void VirtualDnsRecordConfig::OnChange | ( | const DnsItem & | new_rec | ) |
void VirtualDnsRecordConfig::OnDelete | ( | ) |
bool VirtualDnsRecordConfig::OnlyTtlChange | ( | DnsItem & | rhs | ) |
Definition at line 620 of file dns_oper.cc.
void VirtualDnsRecordConfig::Trace | ( | const std::string & | ev | ) |
bool VirtualDnsRecordConfig::UpdateVdns | ( | IFMapNode * | node | ) |
|
static |
void VirtualDnsRecordConfig::VirtualDnsRecordTrace | ( | VirtualDnsRecordTraceData & | rec | ) |
DnsItem VirtualDnsRecordConfig::rec_ |
Definition at line 197 of file dns_oper.h.
Source VirtualDnsRecordConfig::src_ |
Definition at line 200 of file dns_oper.h.
VirtualDnsConfig* VirtualDnsRecordConfig::virt_dns_ |
Definition at line 198 of file dns_oper.h.
|
static |
Definition at line 201 of file dns_oper.h.
std::string VirtualDnsRecordConfig::virtual_dns_name_ |
Definition at line 199 of file dns_oper.h.