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

#include <vgw.h>

Collaboration diagram for VirtualGateway:

Public Member Functions

 VirtualGateway (Agent *agent)
 
 ~VirtualGateway ()
 
void InterfaceNotify (DBTablePartBase *partition, DBEntryBase *entry)
 
void Init ()
 
void Shutdown ()
 
void CreateVrf ()
 
void CreateVrf (const std::string &vrf_name)
 
void DeleteVrf (const std::string &vrf_name)
 
void CreateInterfaces (Interface::Transport transport)
 
void CreateInterface (const std::string &interface_name, const std::string &vrf_name, Interface::Transport transport)
 
void DeleteInterface (const std::string &interface_name)
 
void SubnetUpdate (const VirtualGatewayConfig &vgw, const VirtualGatewayConfig::SubnetList &add_list, const VirtualGatewayConfig::SubnetList &del_list)
 
void RouteUpdate (const VirtualGatewayConfig &vgw, const VirtualGatewayConfig::SubnetList &new_list, const VirtualGatewayConfig::SubnetList &add_list, const VirtualGatewayConfig::SubnetList &del_list, bool add_default_route)
 
void RegisterDBClients ()
 

Private Member Functions

void SubnetUpdate (const std::string &vrf, InetUnicastAgentRouteTable *rt_table, const VirtualGatewayConfig::SubnetList &add_list, const VirtualGatewayConfig::SubnetList &del_list)
 
void RouteUpdate (const VirtualGatewayConfig &vgw, uint32_t new_list_size, InetUnicastAgentRouteTable *rt_table, const VirtualGatewayConfig::SubnetList &add_list, const VirtualGatewayConfig::SubnetList &del_list, bool add_default_route, bool del_default_route)
 
 DISALLOW_COPY_AND_ASSIGN (VirtualGateway)
 

Private Attributes

Agentagent_
 
DBTableBase::ListenerId listener_id_
 
VirtualGatewayConfigTablevgw_config_table_
 

Detailed Description

Definition at line 9 of file vgw.h.

Constructor & Destructor Documentation

VirtualGateway::VirtualGateway ( Agent agent)

Definition at line 26 of file vgw.cc.

Here is the call graph for this function:

VirtualGateway::~VirtualGateway ( )
inline

Definition at line 12 of file vgw.h.

Member Function Documentation

void VirtualGateway::CreateInterface ( const std::string &  interface_name,
const std::string &  vrf_name,
Interface::Transport  transport 
)

Definition at line 134 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::CreateInterfaces ( Interface::Transport  transport)

Definition at line 122 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::CreateVrf ( )

Definition at line 101 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::CreateVrf ( const std::string &  vrf_name)

Definition at line 112 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::DeleteInterface ( const std::string &  interface_name)

Definition at line 143 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::DeleteVrf ( const std::string &  vrf_name)

Definition at line 117 of file vgw.cc.

Here is the call graph for this function:

VirtualGateway::DISALLOW_COPY_AND_ASSIGN ( VirtualGateway  )
private
void VirtualGateway::Init ( )

Definition at line 243 of file vgw.cc.

void VirtualGateway::InterfaceNotify ( DBTablePartBase partition,
DBEntryBase entry 
)

Definition at line 36 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::RegisterDBClients ( )

Definition at line 95 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::RouteUpdate ( const VirtualGatewayConfig vgw,
const VirtualGatewayConfig::SubnetList new_list,
const VirtualGatewayConfig::SubnetList add_list,
const VirtualGatewayConfig::SubnetList del_list,
bool  add_default_route 
)

Definition at line 188 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::RouteUpdate ( const VirtualGatewayConfig vgw,
uint32_t  new_list_size,
InetUnicastAgentRouteTable rt_table,
const VirtualGatewayConfig::SubnetList add_list,
const VirtualGatewayConfig::SubnetList del_list,
bool  add_default_route,
bool  del_default_route 
)
private

Definition at line 204 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::Shutdown ( void  )

Definition at line 246 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::SubnetUpdate ( const VirtualGatewayConfig vgw,
const VirtualGatewayConfig::SubnetList add_list,
const VirtualGatewayConfig::SubnetList del_list 
)

Definition at line 148 of file vgw.cc.

Here is the call graph for this function:

void VirtualGateway::SubnetUpdate ( const std::string &  vrf,
InetUnicastAgentRouteTable rt_table,
const VirtualGatewayConfig::SubnetList add_list,
const VirtualGatewayConfig::SubnetList del_list 
)
private

Definition at line 163 of file vgw.cc.

Here is the call graph for this function:

Member Data Documentation

Agent* VirtualGateway::agent_
private

Definition at line 47 of file vgw.h.

DBTableBase::ListenerId VirtualGateway::listener_id_
private

Definition at line 48 of file vgw.h.

VirtualGatewayConfigTable* VirtualGateway::vgw_config_table_
private

Definition at line 49 of file vgw.h.


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