OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VRouter Class Reference

#include <vrouter.h>

Inheritance diagram for VRouter:
Collaboration diagram for VRouter:

Public Types

typedef std::set
< VRouterSubnet, VRouterSubnet
VRouterSubnetSet
 
- Public Types inherited from OperIFMapTable
typedef std::map< IFMapNode
*, IFMapDependencyManager::IFMapNodePtr
Tree
 

Public Member Functions

 VRouter (Agent *agent)
 
virtual ~VRouter ()
 
void ConfigDelete (IFMapNode *node)
 
void ConfigAddChange (IFMapNode *node)
 
void ConfigManagerEnqueue (IFMapNode *node)
 
void FillSandeshInfo (VrouterInfoResp *resp)
 
uint32_t SubnetCount () const
 
bool IsSubnetMember (const IpAddress &addr) const
 
void Shutdown ()
 
void Insert (const VRouterSubnet *rhs)
 
void Update (const VRouterSubnet *lhs, const VRouterSubnet *rhs)
 
void Remove (VRouterSubnetSet::iterator &it)
 
- Public Member Functions inherited from OperIFMapTable
 OperIFMapTable (Agent *agent)
 
virtual ~OperIFMapTable ()
 
Agentagent () const
 
OperDBoper () const
 
uint32_t Size () const
 
void ConfigEventHandler (IFMapNode *node, DBEntry *entry)
 
void ProcessConfig (IFMapNode *node)
 

Private Member Functions

void DeleteSubnetRoutes ()
 
void ClearSubnets ()
 
void DeleteRoute (const VRouterSubnet &subnet)
 
void AddRoute (const VRouterSubnet &subnet)
 
IFMapNodeFindTarget (IFMapNode *node, std::string node_type) const
 
 DISALLOW_COPY_AND_ASSIGN (VRouter)
 

Private Attributes

std::string name_
 
VRouterSubnetSet subnet_list_
 
std::string display_name_
 

Detailed Description

Definition at line 24 of file vrouter.h.

Member Typedef Documentation

Definition at line 26 of file vrouter.h.

Constructor & Destructor Documentation

VRouter::VRouter ( Agent agent)

Definition at line 43 of file vrouter.cc.

VRouter::~VRouter ( )
virtual

Definition at line 46 of file vrouter.cc.

Member Function Documentation

void VRouter::AddRoute ( const VRouterSubnet subnet)
private

Definition at line 132 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::ClearSubnets ( )
private

Definition at line 74 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::ConfigAddChange ( IFMapNode node)
virtual

Implements OperIFMapTable.

Definition at line 83 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::ConfigDelete ( IFMapNode node)
virtual

Implements OperIFMapTable.

Definition at line 59 of file vrouter.cc.

void VRouter::ConfigManagerEnqueue ( IFMapNode node)
virtual

Implements OperIFMapTable.

Definition at line 154 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::DeleteRoute ( const VRouterSubnet subnet)
private

Definition at line 139 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::DeleteSubnetRoutes ( )
private

Definition at line 124 of file vrouter.cc.

Here is the call graph for this function:

VRouter::DISALLOW_COPY_AND_ASSIGN ( VRouter  )
private
void VRouter::FillSandeshInfo ( VrouterInfoResp *  resp)

Definition at line 189 of file vrouter.cc.

IFMapNode * VRouter::FindTarget ( IFMapNode node,
std::string  node_type 
) const
private

Definition at line 63 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::Insert ( const VRouterSubnet rhs)

Definition at line 49 of file vrouter.cc.

Here is the call graph for this function:

bool VRouter::IsSubnetMember ( const IpAddress addr) const

Definition at line 159 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::Remove ( VRouterSubnetSet::iterator &  it)

Definition at line 54 of file vrouter.cc.

Here is the call graph for this function:

void VRouter::Shutdown ( )

Definition at line 182 of file vrouter.cc.

Here is the call graph for this function:

uint32_t VRouter::SubnetCount ( ) const
inline

Definition at line 34 of file vrouter.h.

void VRouter::Update ( const VRouterSubnet lhs,
const VRouterSubnet rhs 
)
inline

Definition at line 38 of file vrouter.h.

Member Data Documentation

std::string VRouter::display_name_
private

Definition at line 49 of file vrouter.h.

std::string VRouter::name_
private

Definition at line 47 of file vrouter.h.

VRouterSubnetSet VRouter::subnet_list_
private

Definition at line 48 of file vrouter.h.


The documentation for this class was generated from the following files: