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

This state tracks all virtual machine interfaces (VmInterface) attached to a Logical Router (LR). The state establishes link between VmInterfaces connected to a LR as router's ports on behalf of bridge virtual networks (VirtualNetwork). More...

#include <vxlan_routing_manager.h>

Inheritance diagram for VxlanRoutingVnState:
Collaboration diagram for VxlanRoutingVnState:

Public Types

typedef std::set< const
VmInterface * > 
VmiList
 A typedef for a set of pointers to VmInterface. More...
 
typedef VmiList::iterator VmiListIter
 A typedef for the iterator of VxlanRoutingVnState::VmiList. More...
 

Public Member Functions

 VxlanRoutingVnState (VxlanRoutingManager *mgr)
 Constructs new instance using VxlanRoutingManager. More...
 
virtual ~VxlanRoutingVnState ()
 Destroys a VxlanRoutingVnState object. More...
 
void AddVmi (const VnEntry *vn, const VmInterface *vmi)
 Adds a VmInterface (LR port) to a Logical Router and connects the given VirtualNetwork (to which the VmInterface belongs to) to the LR. More...
 
void DeleteVmi (const VnEntry *vn, const VmInterface *vmi)
 Deletes the VmInterface from set of connected interfaces and disconnects the given VirtualNetwork from the Logical Router. More...
 
boost::uuids::uuid logical_router_uuid () const
 Returns the UUID of the Logical Router. More...
 
- Public Member Functions inherited from DBState
virtual ~DBState ()
 

Public Attributes

std::set< const VmInterface * > vmi_list_
 A list of VmInterface (router's ports) connected to a Logical Router (LR) More...
 
bool is_routing_vn_
 Returns true when state is associated with a routing VirtualNetwork. More...
 
boost::uuids::uuid logical_router_uuid_
 A UUID of the Logical Router. More...
 
VrfEntryRef vrf_ref_
 Holds a reference to a VrfEntry when VirtualNetwork's reference stored in VrfGet() is null. More...
 
VxlanRoutingManagermgr_
 A pointer to the instance of VxlanRoutingManager. More...
 

Detailed Description

This state tracks all virtual machine interfaces (VmInterface) attached to a Logical Router (LR). The state establishes link between VmInterfaces connected to a LR as router's ports on behalf of bridge virtual networks (VirtualNetwork).

Definition at line 155 of file vxlan_routing_manager.h.

Member Typedef Documentation

typedef std::set<const VmInterface *> VxlanRoutingVnState::VmiList

A typedef for a set of pointers to VmInterface.

Definition at line 158 of file vxlan_routing_manager.h.

typedef VmiList::iterator VxlanRoutingVnState::VmiListIter

A typedef for the iterator of VxlanRoutingVnState::VmiList.

Definition at line 161 of file vxlan_routing_manager.h.

Constructor & Destructor Documentation

VxlanRoutingVnState::VxlanRoutingVnState ( VxlanRoutingManager mgr)

Constructs new instance using VxlanRoutingManager.

Definition at line 50 of file vxlan_routing_manager.cc.

VxlanRoutingVnState::~VxlanRoutingVnState ( )
virtual

Destroys a VxlanRoutingVnState object.

Definition at line 55 of file vxlan_routing_manager.cc.

Member Function Documentation

void VxlanRoutingVnState::AddVmi ( const VnEntry vn,
const VmInterface vmi 
)

Adds a VmInterface (LR port) to a Logical Router and connects the given VirtualNetwork (to which the VmInterface belongs to) to the LR.

Definition at line 58 of file vxlan_routing_manager.cc.

Here is the call graph for this function:

void VxlanRoutingVnState::DeleteVmi ( const VnEntry vn,
const VmInterface vmi 
)

Deletes the VmInterface from set of connected interfaces and disconnects the given VirtualNetwork from the Logical Router.

Definition at line 76 of file vxlan_routing_manager.cc.

Here is the call graph for this function:

boost::uuids::uuid VxlanRoutingVnState::logical_router_uuid ( ) const

Returns the UUID of the Logical Router.

Definition at line 92 of file vxlan_routing_manager.cc.

Member Data Documentation

bool VxlanRoutingVnState::is_routing_vn_

Returns true when state is associated with a routing VirtualNetwork.

Definition at line 187 of file vxlan_routing_manager.h.

boost::uuids::uuid VxlanRoutingVnState::logical_router_uuid_

A UUID of the Logical Router.

Definition at line 190 of file vxlan_routing_manager.h.

VxlanRoutingManager* VxlanRoutingVnState::mgr_

A pointer to the instance of VxlanRoutingManager.

Definition at line 197 of file vxlan_routing_manager.h.

std::set<const VmInterface *> VxlanRoutingVnState::vmi_list_

A list of VmInterface (router's ports) connected to a Logical Router (LR)

Definition at line 183 of file vxlan_routing_manager.h.

VrfEntryRef VxlanRoutingVnState::vrf_ref_

Holds a reference to a VrfEntry when VirtualNetwork's reference stored in VrfGet() is null.

Definition at line 194 of file vxlan_routing_manager.h.


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