OpenSDN source code
|
#include <vgw.h>
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 | |
Agent * | agent_ |
DBTableBase::ListenerId | listener_id_ |
VirtualGatewayConfigTable * | vgw_config_table_ |
VirtualGateway::VirtualGateway | ( | Agent * | agent | ) |
void VirtualGateway::CreateInterface | ( | const std::string & | interface_name, |
const std::string & | vrf_name, | ||
Interface::Transport | transport | ||
) |
void VirtualGateway::CreateInterfaces | ( | Interface::Transport | transport | ) |
void VirtualGateway::CreateVrf | ( | ) |
void VirtualGateway::CreateVrf | ( | const std::string & | vrf_name | ) |
void VirtualGateway::DeleteInterface | ( | const std::string & | interface_name | ) |
void VirtualGateway::DeleteVrf | ( | const std::string & | vrf_name | ) |
|
private |
void VirtualGateway::InterfaceNotify | ( | DBTablePartBase * | partition, |
DBEntryBase * | entry | ||
) |
void VirtualGateway::RegisterDBClients | ( | ) |
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 | ||
) |
|
private |
void VirtualGateway::Shutdown | ( | void | ) |
void VirtualGateway::SubnetUpdate | ( | const VirtualGatewayConfig & | vgw, |
const VirtualGatewayConfig::SubnetList & | add_list, | ||
const VirtualGatewayConfig::SubnetList & | del_list | ||
) |
|
private |
|
private |
|
private |