OpenSDN source code
|
#include <vrouter_uve_entry_base.h>
Classes | |
struct | VrouterPhysicalDeviceState |
struct | VrouterUveInterfaceState |
Public Types | |
typedef std::set< const Interface * > | PhysicalInterfaceSet |
typedef boost::shared_ptr < std::vector< std::string > > | StringVectorPtr |
Public Member Functions | |
VrouterUveEntryBase (Agent *agent) | |
virtual | ~VrouterUveEntryBase () |
void | RegisterDBClients () |
void | Shutdown () |
bool | AppendVm (DBTablePartBase *part, DBEntryBase *e, StringVectorPtr l) |
void | VmWalkDone (DBTableBase *base, StringVectorPtr list) |
bool | AppendVn (DBTablePartBase *part, DBEntryBase *e, StringVectorPtr l) |
void | VnWalkDone (DBTableBase *base, StringVectorPtr list) |
bool | AppendInterface (DBTablePartBase *part, DBEntryBase *entry, StringVectorPtr intf_list, StringVectorPtr err_list, StringVectorPtr nova_if_list, StringVectorPtr unmanaged_list) |
void | InterfaceWalkDone (DBTableBase *base, StringVectorPtr if_l, StringVectorPtr err_if_l, StringVectorPtr nova_if_l, StringVectorPtr unmanaged_list) |
virtual bool | SendVrouterMsg () |
void | SendVrouterProuterAssociation (const std::vector< std::string > &list) |
bool | TimerExpiry () |
Static Public Attributes | |
static const uint8_t | bandwidth_mod_1min = 2 |
static const uint8_t | bandwidth_mod_5min = 10 |
Protected Member Functions | |
virtual void | DispatchVrouterStatsMsg (const VrouterStatsAgent &uve) |
virtual void | DispatchComputeCpuStateMsg (const ComputeCpuState &ccs) |
Protected Attributes | |
Agent * | agent_ |
PhysicalInterfaceSet | phy_intf_set_ |
VrouterStatsAgent | prev_stats_ |
VrouterAgent | prev_vrouter_ |
uint8_t | cpu_stats_count_ |
bool | do_vn_walk_ |
bool | do_vm_walk_ |
bool | do_interface_walk_ |
DBTable::DBTableWalkRef | vn_walk_ref_ |
DBTable::DBTableWalkRef | vm_walk_ref_ |
DBTable::DBTableWalkRef | interface_walk_ref_ |
Private Member Functions | |
virtual void | DispatchVrouterMsg (const VrouterAgent &uve) |
void | BuildAndSendComputeCpuStateMsg (const CpuLoadInfo &info) |
void | PhysicalDeviceNotify (DBTablePartBase *partition, DBEntryBase *e) |
void | InterfaceNotify (DBTablePartBase *partition, DBEntryBase *e) |
void | VmNotify (DBTablePartBase *partition, DBEntryBase *e) |
void | VnNotify (DBTablePartBase *partition, DBEntryBase *e) |
bool | StartVnWalk () |
bool | StartVmWalk () |
bool | StartInterfaceWalk () |
void | StartTimer () |
bool | Run () |
std::string | GetMacAddress (const MacAddress &mac) const |
void | SubnetToStringList (VirtualGatewayConfig::SubnetList &l1, std::vector< std::string > &l2) |
void | BuildAgentConfig (VrouterAgent &vrouter_agent) |
void | AppendInterfaceInternal (const VmInterface *port, StringVectorPtr intf_list, StringVectorPtr err_if_list) |
PhysicalDevice * | VmiToPhysicalDevice (const VmInterface *port) |
PhysicalDevice * | InterfaceToPhysicalDevice (Interface *intf) |
DISALLOW_COPY_AND_ASSIGN (VrouterUveEntryBase) | |
Definition at line 21 of file vrouter_uve_entry_base.h.
typedef std::set<const Interface *> VrouterUveEntryBase::PhysicalInterfaceSet |
Definition at line 38 of file vrouter_uve_entry_base.h.
typedef boost::shared_ptr<std::vector<std::string> > VrouterUveEntryBase::StringVectorPtr |
Definition at line 39 of file vrouter_uve_entry_base.h.
VrouterUveEntryBase::VrouterUveEntryBase | ( | Agent * | agent | ) |
|
virtual |
Definition at line 42 of file vrouter_uve_entry_base.cc.
bool VrouterUveEntryBase::AppendInterface | ( | DBTablePartBase * | part, |
DBEntryBase * | entry, | ||
StringVectorPtr | intf_list, | ||
StringVectorPtr | err_list, | ||
StringVectorPtr | nova_if_list, | ||
StringVectorPtr | unmanaged_list | ||
) |
|
private |
bool VrouterUveEntryBase::AppendVm | ( | DBTablePartBase * | part, |
DBEntryBase * | e, | ||
StringVectorPtr | l | ||
) |
bool VrouterUveEntryBase::AppendVn | ( | DBTablePartBase * | part, |
DBEntryBase * | e, | ||
StringVectorPtr | l | ||
) |
|
private |
|
private |
|
private |
|
protectedvirtual |
Definition at line 905 of file vrouter_uve_entry_base.cc.
|
privatevirtual |
Definition at line 150 of file vrouter_uve_entry_base.cc.
|
protectedvirtual |
Definition at line 901 of file vrouter_uve_entry_base.cc.
|
private |
|
private |
|
private |
void VrouterUveEntryBase::InterfaceWalkDone | ( | DBTableBase * | base, |
StringVectorPtr | if_l, | ||
StringVectorPtr | err_if_l, | ||
StringVectorPtr | nova_if_l, | ||
StringVectorPtr | unmanaged_list | ||
) |
|
private |
void VrouterUveEntryBase::RegisterDBClients | ( | ) |
|
private |
|
virtual |
Reimplemented in VrouterUveEntry.
Definition at line 627 of file vrouter_uve_entry_base.cc.
void VrouterUveEntryBase::SendVrouterProuterAssociation | ( | const std::vector< std::string > & | list | ) |
Definition at line 884 of file vrouter_uve_entry_base.cc.
void VrouterUveEntryBase::Shutdown | ( | void | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
bool VrouterUveEntryBase::TimerExpiry | ( | ) |
|
private |
|
private |
void VrouterUveEntryBase::VmWalkDone | ( | DBTableBase * | base, |
StringVectorPtr | list | ||
) |
|
private |
void VrouterUveEntryBase::VnWalkDone | ( | DBTableBase * | base, |
StringVectorPtr | list | ||
) |
|
protected |
Definition at line 63 of file vrouter_uve_entry_base.h.
|
static |
Definition at line 36 of file vrouter_uve_entry_base.h.
|
static |
Definition at line 37 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 67 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 70 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 69 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 68 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 73 of file vrouter_uve_entry_base.h.
|
private |
Definition at line 104 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 64 of file vrouter_uve_entry_base.h.
|
private |
Definition at line 105 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 65 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 66 of file vrouter_uve_entry_base.h.
|
private |
Definition at line 106 of file vrouter_uve_entry_base.h.
|
private |
Definition at line 103 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 72 of file vrouter_uve_entry_base.h.
|
private |
Definition at line 102 of file vrouter_uve_entry_base.h.
|
protected |
Definition at line 71 of file vrouter_uve_entry_base.h.