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

#include <contrail_init_common.h>

Inheritance diagram for ContrailInitCommon:
Collaboration diagram for ContrailInitCommon:

Public Member Functions

 ContrailInitCommon ()
 
virtual ~ContrailInitCommon ()
 
void ProcessOptions (const std::string &config_file, const std::string &program_name)
 
void ProcessComputeAddress (AgentParam *param)
 
int Start ()
 
void CreateModules ()
 
void RegisterDBClients ()
 
void InitModules ()
 
void CreateVrf ()
 
void CreateInterfaces ()
 
virtual void InitDone ()
 
void IoShutdown ()
 
void FlushFlows ()
 
void ServicesShutdown ()
 
virtual void ModulesShutdown ()
 
void PktShutdown ()
 
bool ksync_enable () const
 
bool services_enable () const
 
bool packet_enable () const
 
bool create_vhost () const
 
bool uve_enable () const
 
bool vgw_enable () const
 
bool router_id_dep_enable () const
 
void set_ksync_enable (bool flag)
 
void set_services_enable (bool flag)
 
void set_packet_enable (bool flag)
 
void set_create_vhost (bool flag)
 
void set_uve_enable (bool flag)
 
void set_vgw_enable (bool flag)
 
void set_router_id_dep_enable (bool flag)
 
- Public Member Functions inherited from AgentInit
 AgentInit ()
 
virtual ~AgentInit ()
 
Agentagent () const
 
AgentParamagent_param () const
 
void set_agent_param (AgentParam *param)
 
void InitPlatform ()
 
virtual void FactoryInit ()=0
 
virtual std::string InstanceId ()
 
virtual std::string ModuleName ()
 
virtual int ModuleType ()
 
virtual std::string AgentName ()
 
virtual bool InitBase ()
 
virtual bool Init ()
 
virtual void InitLoggingBase ()
 
virtual void InitLogging ()
 
virtual void InitCollectorBase ()
 
virtual void InitCollector ()
 
virtual void CreateModulesBase ()
 
virtual void CreateDBTablesBase ()
 
virtual void CreateDBTables ()
 
virtual void RegisterDBClientsBase ()
 
virtual void InitModulesBase ()
 
virtual void CreatePeersBase ()
 
virtual void CreatePeers ()
 
virtual void CreateVrfBase ()
 
virtual void CreateNextHopsBase ()
 
virtual void CreateNextHops ()
 
virtual void CreateInterfacesBase ()
 
virtual void ConnectToControllerBase ()
 
virtual void ConnectToController ()
 
virtual void InitDoneBase ()
 
void CreateResourceManager ()
 
void SetResourceManagerReady ()
 
virtual void Shutdown ()
 
void IoShutdownBase ()
 
virtual void FlushFlowsBase ()
 
virtual void VgwShutdownBase ()
 
virtual void VgwShutdown ()
 
virtual void DeleteRoutesBase ()
 
virtual void DeleteRoutes ()
 
virtual void DeleteDBEntriesBase ()
 
virtual void DeleteDBEntries ()
 
virtual void ServicesShutdownBase ()
 
virtual void PktShutdownBase ()
 
virtual void ProfileShutdownBase ()
 
virtual void ModulesShutdownBase ()
 
virtual void UveShutdownBase ()
 
virtual void UveShutdown ()
 
virtual void StatsCollectorShutdownBase ()
 
virtual void StatsCollectorShutdown ()
 
virtual void FlowStatsCollectorShutdownBase ()
 
virtual void FlowStatsCollectorShutdown ()
 
virtual void KSyncShutdownBase ()
 
virtual void KSyncShutdown ()
 
virtual void WaitForIdle ()=0
 
void WaitForDBEmpty ()
 
void DeleteVhost ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (ContrailInitCommon)
 

Private Attributes

bool create_vhost_
 
bool ksync_enable_
 
bool services_enable_
 
bool packet_enable_
 
bool uve_enable_
 
bool vgw_enable_
 
bool router_id_dep_enable_
 
std::unique_ptr< KSyncksync_
 
std::unique_ptr< AgentUveBaseuve_
 
std::unique_ptr< DiagTablediag_table_
 
std::unique_ptr< ServicesModuleservices_
 
std::unique_ptr< PktModulepkt_
 
std::unique_ptr< VirtualGatewayvgw_
 
std::unique_ptr
< MacLearningModule
mac_learning_module_
 

Detailed Description

Definition at line 16 of file contrail_init_common.h.

Constructor & Destructor Documentation

ContrailInitCommon::ContrailInitCommon ( )

Definition at line 31 of file contrail_init_common.cc.

ContrailInitCommon::~ContrailInitCommon ( )
virtual

Definition at line 36 of file contrail_init_common.cc.

Member Function Documentation

bool ContrailInitCommon::create_vhost ( ) const
inline

Definition at line 44 of file contrail_init_common.h.

void ContrailInitCommon::CreateInterfaces ( )
virtual

Reimplemented from AgentInit.

Definition at line 177 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::CreateModules ( )
virtual

Reimplemented from AgentInit.

Definition at line 59 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::CreateVrf ( )
virtual

Reimplemented from AgentInit.

Definition at line 127 of file contrail_init_common.cc.

Here is the call graph for this function:

ContrailInitCommon::DISALLOW_COPY_AND_ASSIGN ( ContrailInitCommon  )
private
void ContrailInitCommon::FlushFlows ( )
virtual

Reimplemented from AgentInit.

Definition at line 397 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::InitDone ( )
virtual

Reimplemented from AgentInit.

Reimplemented in ContrailAgentInit.

Definition at line 345 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::InitModules ( )
virtual

Reimplemented from AgentInit.

Definition at line 95 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::IoShutdown ( )
virtual

Reimplemented from AgentInit.

Definition at line 389 of file contrail_init_common.cc.

Here is the call graph for this function:

bool ContrailInitCommon::ksync_enable ( ) const
inline

Definition at line 41 of file contrail_init_common.h.

void ContrailInitCommon::ModulesShutdown ( )
virtual

Reimplemented from AgentInit.

Reimplemented in ContrailAgentInit.

Definition at line 417 of file contrail_init_common.cc.

Here is the call graph for this function:

bool ContrailInitCommon::packet_enable ( ) const
inline

Definition at line 43 of file contrail_init_common.h.

void ContrailInitCommon::PktShutdown ( )
virtual

Reimplemented from AgentInit.

Definition at line 411 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::ProcessComputeAddress ( AgentParam param)

Definition at line 147 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::ProcessOptions ( const std::string &  config_file,
const std::string &  program_name 
)
virtual

Reimplemented from AgentInit.

Definition at line 48 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::RegisterDBClients ( )
virtual

Reimplemented from AgentInit.

Definition at line 77 of file contrail_init_common.cc.

Here is the call graph for this function:

bool ContrailInitCommon::router_id_dep_enable ( ) const
inline

Definition at line 47 of file contrail_init_common.h.

bool ContrailInitCommon::services_enable ( ) const
inline

Definition at line 42 of file contrail_init_common.h.

void ContrailInitCommon::ServicesShutdown ( )
virtual

Reimplemented from AgentInit.

Definition at line 402 of file contrail_init_common.cc.

Here is the call graph for this function:

void ContrailInitCommon::set_create_vhost ( bool  flag)
inline

Definition at line 52 of file contrail_init_common.h.

void ContrailInitCommon::set_ksync_enable ( bool  flag)
inline

Definition at line 49 of file contrail_init_common.h.

void ContrailInitCommon::set_packet_enable ( bool  flag)
inline

Definition at line 51 of file contrail_init_common.h.

void ContrailInitCommon::set_router_id_dep_enable ( bool  flag)
inline

Definition at line 55 of file contrail_init_common.h.

void ContrailInitCommon::set_services_enable ( bool  flag)
inline

Definition at line 50 of file contrail_init_common.h.

void ContrailInitCommon::set_uve_enable ( bool  flag)
inline

Definition at line 53 of file contrail_init_common.h.

void ContrailInitCommon::set_vgw_enable ( bool  flag)
inline

Definition at line 54 of file contrail_init_common.h.

int ContrailInitCommon::Start ( )
virtual

Reimplemented from AgentInit.

Definition at line 52 of file contrail_init_common.cc.

Here is the call graph for this function:

bool ContrailInitCommon::uve_enable ( ) const
inline

Definition at line 45 of file contrail_init_common.h.

bool ContrailInitCommon::vgw_enable ( ) const
inline

Definition at line 46 of file contrail_init_common.h.

Member Data Documentation

bool ContrailInitCommon::create_vhost_
private

Definition at line 57 of file contrail_init_common.h.

std::unique_ptr<DiagTable> ContrailInitCommon::diag_table_
private

Definition at line 68 of file contrail_init_common.h.

std::unique_ptr<KSync> ContrailInitCommon::ksync_
private

Definition at line 65 of file contrail_init_common.h.

bool ContrailInitCommon::ksync_enable_
private

Definition at line 58 of file contrail_init_common.h.

std::unique_ptr<MacLearningModule> ContrailInitCommon::mac_learning_module_
private

Definition at line 72 of file contrail_init_common.h.

bool ContrailInitCommon::packet_enable_
private

Definition at line 60 of file contrail_init_common.h.

std::unique_ptr<PktModule> ContrailInitCommon::pkt_
private

Definition at line 70 of file contrail_init_common.h.

bool ContrailInitCommon::router_id_dep_enable_
private

Definition at line 63 of file contrail_init_common.h.

std::unique_ptr<ServicesModule> ContrailInitCommon::services_
private

Definition at line 69 of file contrail_init_common.h.

bool ContrailInitCommon::services_enable_
private

Definition at line 59 of file contrail_init_common.h.

std::unique_ptr<AgentUveBase> ContrailInitCommon::uve_
private

Definition at line 66 of file contrail_init_common.h.

bool ContrailInitCommon::uve_enable_
private

Definition at line 61 of file contrail_init_common.h.

std::unique_ptr<VirtualGateway> ContrailInitCommon::vgw_
private

Definition at line 71 of file contrail_init_common.h.

bool ContrailInitCommon::vgw_enable_
private

Definition at line 62 of file contrail_init_common.h.


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