OpenSDN source code
linux_vxlan_agent_init.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef vnsw_linux_vlan_agent_init_hpp
7 #define vnsw_linux_vlan_agent_init_hpp
8 
9 #include <boost/program_options.hpp>
10 #include <init/agent_init.h>
11 
12 class Agent;
13 class AgentParam;
14 class KSyncVxlan;
15 class AgentUveBase;
16 
17 // The class to drive agent initialization.
18 // Defines control parameters used to enable/disable agent features
20 public:
23 
24  void ProcessOptions(const std::string &config_file,
25  const std::string &program_name);
26 
27  int Start(Logging &logging);
28 
29  // Initialization virtual methods
30  void FactoryInit();
31  void CreateModules();
32  void RegisterDBClients();
33  void InitModules();
34  void ConnectToController();
35 
36  // Shutdown virtual methods
37  void KSyncShutdown();
38  void UveShutdown();
39  void WaitForIdle();
40 
41 private:
42  std::unique_ptr<KSyncVxlan> ksync_vxlan_;
43  std::unique_ptr<AgentUveBase> uve_;
45 };
46 
47 #endif // vnsw_linux_vlan_agent_init_hpp
Definition: agent.h:361
DISALLOW_COPY_AND_ASSIGN(LinuxVxlanAgentInit)
int Start(Logging &logging)
void ProcessOptions(const std::string &config_file, const std::string &program_name)
std::unique_ptr< AgentUveBase > uve_
std::unique_ptr< KSyncVxlan > ksync_vxlan_
A class providing basic control over logging capabilities in OpenSDN control plane.
Definition: logging.h:44
string program_name(string filename)