OpenSDN source code
|
#include <dns_oper.h>
Public Types | |
typedef std::map< std::string, VnniConfig * > | DataMap |
typedef std::pair< std::string, VnniConfig * > | 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 | |
VnniConfig (IFMapNode *node) | |
~VnniConfig () | |
bool | operator< (VnniConfig &rhs) const |
void | OnAdd (IFMapNode *node) |
void | OnDelete () |
void | OnChange (IFMapNode *node) |
void | UpdateIpam (IFMapNode *node) |
Subnets & | GetSubnets () |
void | FindSubnets (IFMapNode *node, Subnets &subnets) |
bool | NotifySubnets (Subnets &old_nets, Subnets &new_nets, VirtualDnsConfig *vdns) |
![]() | |
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 VnniConfig * | Find (std::string name) |
![]() | |
static const std::string & | ToEventString (DnsConfigEvent ev) |
Public Attributes | |
Subnets | subnets_ |
IpamConfig * | ipam_ |
![]() | |
std::string | name_ |
uint8_t | flags_ |
Static Public Attributes | |
static DataMap | vnni_config_ |
![]() | |
static Callback | VdnsCallback |
static Callback | VdnsRecordCallback |
static ZoneCallback | VdnsZoneCallback |
static const std::string | EventString [] |
Definition at line 73 of file dns_oper.h.
typedef std::map<std::string, VnniConfig *> VnniConfig::DataMap |
Definition at line 74 of file dns_oper.h.
typedef std::pair<std::string, VnniConfig *> VnniConfig::DataPair |
Definition at line 75 of file dns_oper.h.
VnniConfig::VnniConfig | ( | IFMapNode * | node | ) |
VnniConfig::~VnniConfig | ( | ) |
Definition at line 54 of file dns_oper.cc.
|
static |
Definition at line 173 of file dns_oper.cc.
|
inline |
Definition at line 92 of file dns_oper.h.
bool VnniConfig::NotifySubnets | ( | Subnets & | old_nets, |
Subnets & | new_nets, | ||
VirtualDnsConfig * | vdns | ||
) |
Definition at line 133 of file dns_oper.cc.
void VnniConfig::OnAdd | ( | IFMapNode * | node | ) |
void VnniConfig::OnChange | ( | IFMapNode * | node | ) |
void VnniConfig::OnDelete | ( | ) |
|
inline |
void VnniConfig::UpdateIpam | ( | IFMapNode * | node | ) |
IpamConfig* VnniConfig::ipam_ |
Definition at line 78 of file dns_oper.h.
Subnets VnniConfig::subnets_ |
Definition at line 77 of file dns_oper.h.
|
static |
Definition at line 79 of file dns_oper.h.