OpenSDN source code
operdb_init.cc
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 #include <cmn/agent_factory.h>
7 #include <cmn/agent_cmn.h>
8 #include <init/agent_param.h>
9 #include <db/db.h>
10 #include <base/task_trigger.h>
11 #include <sandesh/sandesh_types.h>
12 #include <sandesh/sandesh_constants.h>
13 #include <sandesh/sandesh.h>
14 #include <sandesh/sandesh_trace.h>
15 #include <cfg/cfg_init.h>
16 #include <oper/route_common.h>
17 #include <oper/operdb_init.h>
18 #include <oper/metadata_ip.h>
19 #include <oper/interface_common.h>
20 #include <oper/health_check.h>
21 #include <oper/nexthop.h>
22 #include <oper/vrf.h>
23 #include <oper/mpls.h>
24 #include <oper/vm.h>
25 #include <oper/vn.h>
26 #include <oper/sg.h>
27 #include <oper/tag.h>
28 #include <oper/mirror_table.h>
29 #include <oper/vrf_assign.h>
30 #include <oper/vxlan.h>
31 #include <oper/multicast_policy.h>
32 #include <oper/multicast.h>
33 #include <oper/global_vrouter.h>
34 #include <oper/path_preference.h>
35 #include <oper/tsn_elector.h>
37 #include <filter/acl.h>
38 #include <filter/policy_set.h>
40 #include <base/task_trigger.h>
41 #include <oper/instance_manager.h>
42 #include <oper/physical_device.h>
44 #include <oper/config_manager.h>
45 #include <oper/agent_profile.h>
46 #include <oper/agent_sandesh.h>
47 #include <oper/vrouter.h>
48 #include <oper/bgp_as_service.h>
49 #include <oper/bgp_router.h>
52 #include <oper/forwarding_class.h>
53 #include <oper/qos_config.h>
54 #include <oper/qos_queue.h>
55 #include <oper/global_qos_config.h>
57 #include <oper/bridge_domain.h>
60 #include <oper/route_leak.h>
61 #include <oper/crypt_tunnel.h>
62 #include <oper/hbf.h>
63 
64 using boost::assign::map_list_of;
65 using boost::assign::list_of;
66 
68  1000));
69 
70 template<typename T>
71 T *DBTableCreate(DB *db, Agent *agent, OperDB *oper,
72  const std::string &db_name) {
73  DB::RegisterFactory(db_name, &T::CreateTable);
74  T *table = static_cast<T *>(db->CreateTable(db_name));
75  assert(table);
76  table->set_agent(agent);
77  return table;
78 }
79 
83  DB::RegisterFactory("db.crypttunnel.0",
84  boost::bind(&CryptTunnelTable::CreateTable,
85  agent_, _1, _2));
86  DB::RegisterFactory("uc.route.0",
88  DB::RegisterFactory("uc.route.3",
90  DB::RegisterFactory("mc.route.0",
94  DB::RegisterFactory("uc.route6.0",
103  DB::RegisterFactory("db.mirror_table.0", &MirrorTable::CreateTable);
106  DB::RegisterFactory("db.service-instance.0",
108  DB::RegisterFactory("db.physical_devices.0",
110  DB::RegisterFactory("db.healthcheck.0",
111  boost::bind(&HealthCheckTable::CreateTable,
112  agent_, _1, _2));
113  DB::RegisterFactory("db.qos_queue.0",
114  boost::bind(&QosQueueTable::CreateTable,
115  agent_, _1, _2));
116  DB::RegisterFactory("db.forwardingclass.0",
118  agent_, _1, _2));
119  DB::RegisterFactory("db.qos_config.0",
121  agent_, _1, _2));
122  DB::RegisterFactory("db.bridge_domain.0",
123  boost::bind(&BridgeDomainTable::CreateTable,
124  agent_, _1, _2));
125  DB::RegisterFactory("db.security_logging_object.0",
127  agent_, _1, _2));
129  DB::RegisterFactory("db.multicast_policy.0",
131 
132  InterfaceTable *intf_table;
133  intf_table = static_cast<InterfaceTable *>(db->CreateTable("db.interface.0"));
134  assert(intf_table);
135  agent_->set_interface_table(intf_table);
136  intf_table->Init(this);
137  intf_table->set_agent(agent_);
138 
139  // Allocate Range to be used for MetaDataIPAllocator
144 
145  HealthCheckTable *hc_table;
146  hc_table =
147  static_cast<HealthCheckTable *>(db->CreateTable("db.healthcheck.0"));
148  assert(hc_table);
149  agent_->set_health_check_table(hc_table);
150 
151  CryptTunnelTable *crypt_tunnel_table;
152  crypt_tunnel_table = static_cast<CryptTunnelTable *>(db->CreateTable("db.crypttunnel.0"));
153  assert(crypt_tunnel_table);
154  agent_->set_crypt_tunnel_table(crypt_tunnel_table);
155 
156  NextHopTable *nh_table;
157  nh_table = static_cast<NextHopTable *>(db->CreateTable("db.nexthop.0"));
158  assert(nh_table);
159  agent_->set_nexthop_table(nh_table);
160  nh_table->set_agent(agent_);
161 
162  VrfTable *vrf_table;
163  vrf_table = static_cast<VrfTable *>(db->CreateTable("db.vrf.0"));
164  assert(vrf_table);
165  agent_->set_vrf_table(vrf_table);
166  vrf_table->set_agent(agent_);
167 
168  VmTable *vm_table;
169  vm_table = static_cast<VmTable *>(db->CreateTable("db.vm.0"));
170  assert(vm_table);
171  agent_->set_vm_table(vm_table);
172  vm_table->set_agent(agent_);
173 
174  SgTable *sg_table;
175  sg_table = static_cast<SgTable *>(db->CreateTable("db.sg.0"));
176  assert(sg_table);
177  agent_->set_sg_table(sg_table);
178  sg_table->set_agent(agent_);
179 
180  TagTable *tag_table;
181  tag_table = static_cast<TagTable *>(db->CreateTable("db.tag.0"));
182  assert(tag_table);
183  agent_->set_tag_table(tag_table);
184  tag_table->set_agent(agent_);
185 
186  VnTable *vn_table;
187  vn_table = static_cast<VnTable *>(db->CreateTable("db.vn.0"));
188  assert(vn_table);
189  agent_->set_vn_table(vn_table);
190  vn_table->set_agent(agent_);
191 
192  MplsTable *mpls_table;
193  mpls_table = static_cast<MplsTable *>(db->CreateTable("db.mpls.0"));
194  assert(mpls_table);
195  agent_->set_mpls_table(mpls_table);
196  mpls_table->set_agent(agent_);
197  mpls_table->ReserveLabel(0, MplsTable::kStartLabel - 1);
198 
199  AclTable *acl_table;
200  acl_table = static_cast<AclTable *>(db->CreateTable("db.acl.0"));
201  assert(acl_table);
202  agent_->set_acl_table(acl_table);
203  acl_table->set_agent(agent_);
204 
205  MirrorTable *mirror_table;
206  mirror_table = static_cast<MirrorTable *>
207  (db->CreateTable("db.mirror_table.0"));
208  assert(mirror_table);
209  agent_->set_mirror_table(mirror_table);
210  mirror_table->set_agent(agent_);
211  mirror_table->Initialize();
212 
213  VrfAssignTable *vassign_table = static_cast<VrfAssignTable *>
214  (db->CreateTable("db.vrf_assign.0"));
215  assert(vassign_table);
216  agent_->set_vrf_assign_table(vassign_table);
217  vassign_table->set_agent(agent_);
218 
219  PolicySetTable *policy_set =
220  static_cast<PolicySetTable *>(db->CreateTable("db.policy_set.0"));
221  assert(policy_set);
222  agent_->set_policy_set_table(policy_set);
223  policy_set->set_agent(agent_);
224 
225  domain_config_.reset(new DomainConfig(agent_));
226 
227  VxLanTable *vxlan_table;
228  vxlan_table = static_cast<VxLanTable *>(db->CreateTable("db.vxlan.0"));
229  assert(vxlan_table);
230  agent_->set_vxlan_table(vxlan_table);
231  vxlan_table->set_agent(agent_);
232  vxlan_table->Initialize();
233 
234  QosQueueTable *qos_queue_table;
235  qos_queue_table =
236  static_cast<QosQueueTable *>(db->CreateTable("db.qos_queue.0"));
237  agent_->set_qos_queue_table(qos_queue_table);
238 
239  ForwardingClassTable *forwarding_class_table;
240  forwarding_class_table = static_cast<ForwardingClassTable *>(
241  db->CreateTable("db.forwardingclass.0"));
242  agent_->set_forwarding_class_table(forwarding_class_table);
243 
244  SecurityLoggingObjectTable *slo_table;
245  slo_table = static_cast<SecurityLoggingObjectTable *>(
246  db->CreateTable("db.security_logging_object.0"));
247  agent_->set_slo_table(slo_table);
248 
249  AgentQosConfigTable *qos_config_table;
250  qos_config_table =
251  static_cast<AgentQosConfigTable *>(db->CreateTable("db.qos_config.0"));
252  agent_->set_qos_config_table(qos_config_table);
253 
254  BridgeDomainTable *bd_table;
255  bd_table =
256  static_cast<BridgeDomainTable *>(db->CreateTable("db.bridge_domain.0"));
257  assert(bd_table);
258  agent_->set_bridge_domain_table(bd_table);
259 
260  MulticastPolicyTable *mp_table;
261  mp_table = static_cast<MulticastPolicyTable *>(
262  db->CreateTable("db.multicast_policy.0"));
263  assert(mp_table);
264  agent_->set_mp_table(mp_table);
265  mp_table->set_agent(agent_);
266 
267  acl_table->ListenerInit();
268 
270  std::unique_ptr<AgentRouteWalkerManager>(new AgentRouteWalkerManager(agent_));
271  multicast_ = std::unique_ptr<MulticastHandler>(new MulticastHandler(agent_));
272  global_vrouter_ = std::unique_ptr<GlobalVrouter> (new GlobalVrouter(agent_));
274  std::unique_ptr<PathPreferenceModule>(new PathPreferenceModule(agent_));
275  route_preference_module_->Init();
276 
277  ServiceInstanceTable *si_table =
278  static_cast<ServiceInstanceTable *>(
279  db->CreateTable("db.service-instance.0"));
281  si_table->Initialize(agent_->cfg()->cfg_graph(), dependency_manager_.get());
282  si_table->set_agent(agent_);
283 
284  PhysicalDeviceTable *dev_table =
285  DBTableCreate<PhysicalDeviceTable>(db, agent_, this,
286  "db.physical_devices.0");
287  agent_->set_physical_device_table(dev_table);
288 
289  PhysicalDeviceVnTable *dev_vn_table =
290  DBTableCreate<PhysicalDeviceVnTable>(db, agent_, this,
291  "db.physical_device_vn.0");
292  agent_->set_physical_device_vn_table(dev_vn_table);
293  profile_.reset(new AgentProfile(agent_, true));
294 
295  bgp_as_a_service_ = std::unique_ptr<BgpAsAService>(new BgpAsAService(agent_));
297  std::unique_ptr<BgpRouterConfig> (new BgpRouterConfig(agent_));
298 
299  vrouter_ = std::unique_ptr<VRouter> (new VRouter(agent_));
301  std::unique_ptr<GlobalQosConfig>(new GlobalQosConfig(agent_));
303  std::unique_ptr<GlobalSystemConfig>(new GlobalSystemConfig(agent_));
304  network_ipam_ = std::unique_ptr<OperNetworkIpam>
305  (new OperNetworkIpam(agent_, domain_config_.get()));
306  virtual_dns_ = std::unique_ptr<OperVirtualDns>
307  (new OperVirtualDns(agent_, domain_config_.get()));
308  tsn_elector_ = std::unique_ptr<TsnElector>(new TsnElector(agent_));
309  vxlan_routing_manager_= std::unique_ptr<VxlanRoutingManager>
311  hbf_handler_= std::unique_ptr<HBFHandler>
312  (new HBFHandler(agent_));
313 }
314 
315 void OperDB::Init() {
316  dependency_manager_->Initialize(agent());
317 
318  // Unit tests may not initialize the agent configuration parameters.
319  std::string netns_cmd;
320  std::string docker_cmd;
321  int netns_workers = -1;
322  int netns_timeout = -1;
323  if (agent_->params()) {
324  netns_cmd = agent_->params()->si_netns_command();
325  docker_cmd = agent_->params()->si_docker_command();
326  netns_workers = agent_->params()->si_netns_workers();
327  netns_timeout = agent_->params()->si_netns_timeout();
328  }
329  instance_manager_->Initialize(agent_->db(), netns_cmd,
330  docker_cmd, netns_workers, netns_timeout);
331  if (nexthop_manager_.get()) {
332  nexthop_manager_->Initialize(agent_->db());
333  }
334 
335  if (agent_sandesh_manager_.get()) {
336  agent_sandesh_manager_->Init();
337  }
338 
339  agent_->config_manager()->Init();
340  domain_config_->Init();
341 }
342 
344  profile_->InitDone();
345 }
346 
351 
352  multicast_.get()->Register();
353  global_vrouter_.get()->CreateDBClients();
355  tsn_elector_.get()->Register();
356  vxlan_routing_manager_.get()->Register();
357  hbf_handler_.get()->Register();
358 }
359 
361  : agent_(agent),
362  dependency_manager_(
364  agent->db(), agent->cfg()->cfg_graph())),
365  instance_manager_(
366  AgentStaticObjectFactory::Create<InstanceManager>(agent)) {
367  if (agent_->params() &&
368  agent_->params()->nexthop_server_endpoint().length() > 0) {
371  }
372 
374 }
375 
377 }
378 
381  instance_manager_->Terminate();
382  if (nexthop_manager_.get()) {
383  nexthop_manager_->Terminate();
384  }
385  dependency_manager_->Terminate();
386  global_vrouter_.reset();
387 
388  bgp_router_config_.reset();
389 
390  global_qos_config_.reset();
391  global_system_config_.reset();
392 
393  route_preference_module_->Shutdown();
394  multicast_->Shutdown();
395  multicast_->Terminate();
396  route_walk_manager_->Shutdown();
397  tsn_elector_->Shutdown();
398  vxlan_routing_manager_->Shutdown();
399  hbf_handler_->Terminate();
400 
401  if (agent_sandesh_manager_.get()) {
402  agent_sandesh_manager_->Shutdown();
403  }
404 #if 0
406  agent_->nexthop_table()->Clear();
407  agent_->vrf_table()->Clear();
408  agent_->vn_table()->Clear();
409  agent_->sg_table()->Clear();
410  agent_->vm_table()->Clear();
411  agent_->mpls_table()->Clear();
412  agent_->acl_table()->Clear();
413  agent_->mirror_table()->Clear();
415  agent_->vxlan_table()->Clear();
417  agent_->mp_table()->Clear();
418 #endif
419 
420  route_preference_module_->Shutdown();
421  domain_config_->Terminate();
422  if (vrouter_.get()) {
423  vrouter_->Shutdown();
424  vrouter_.reset();
425  }
426  if (agent()->mirror_table()) {
427  agent()->mirror_table()->Shutdown();
428  }
429 
430  if (agent()->vxlan_table()) {
431  agent()->vxlan_table()->Shutdown();
432  }
433 
434  //route_walk_manager_.reset();
435  profile_.reset();
436  route_leak_manager_.reset();
437  vxlan_routing_manager_.reset();
438  hbf_handler_.reset();
439 }
440 
443 }
Definition: acl.h:147
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: acl.cc:275
void ListenerInit()
Definition: acl.cc:269
DBGraph * cfg_graph() const
Definition: cfg_init.h:166
virtual void Clear()
Definition: agent_db.cc:216
void set_agent(Agent *agent)
Definition: agent_db.h:215
std::string si_netns_command() const
Definition: agent_param.h:272
std::string nexthop_server_endpoint() const
Definition: agent_param.h:283
const int si_netns_timeout() const
Definition: agent_param.h:275
const int si_netns_workers() const
Definition: agent_param.h:274
std::string si_docker_command() const
Definition: agent_param.h:273
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
Definition: qos_config.cc:283
Definition: agent.h:361
InterfaceTable * interface_table() const
Definition: agent.h:468
ConfigManager * config_manager() const
Definition: agent.cc:893
void set_vm_table(VmTable *table)
Definition: agent.h:494
void set_physical_device_table(PhysicalDeviceTable *table)
Definition: agent.h:634
VmTable * vm_table() const
Definition: agent.h:493
void set_qos_queue_table(QosQueueTable *table)
Definition: agent.h:568
void set_crypt_tunnel_table(CryptTunnelTable *table)
Definition: agent.h:484
OperDB * oper_db() const
Definition: agent.cc:1017
void set_vxlan_table(VxLanTable *table)
Definition: agent.h:539
void set_sg_table(SgTable *table)
Definition: agent.h:504
void set_bridge_domain_table(BridgeDomainTable *table)
Definition: agent.cc:949
AgentParam * params() const
Definition: agent.h:1227
void set_metadata_ip6_allocator(MetaDataIpAllocator *allocator)
Definition: agent.cc:965
void set_qos_config_table(AgentQosConfigTable *qos_config_table)
Definition: agent.h:561
void set_mpls_table(MplsTable *table)
Definition: agent.h:514
MirrorTable * mirror_table() const
Definition: agent.h:528
VrfTable * vrf_table() const
Definition: agent.h:488
EventManager * event_manager() const
Definition: agent.h:1106
AclTable * acl_table() const
Definition: agent.h:518
void set_interface_table(InterfaceTable *table)
Definition: agent.h:469
AgentConfig * cfg() const
Definition: agent.cc:869
void set_vrf_table(VrfTable *table)
Definition: agent.h:489
void set_physical_device_vn_table(PhysicalDeviceVnTable *table)
Definition: agent.h:641
void set_health_check_table(HealthCheckTable *table)
Definition: agent.cc:941
VxLanTable * vxlan_table() const
Definition: agent.h:538
void set_slo_table(SecurityLoggingObjectTable *table)
Definition: agent.h:553
void set_nexthop_table(NextHopTable *table)
Definition: agent.h:479
void set_metadata_ip_allocator(MetaDataIpAllocator *allocator)
Definition: agent.cc:957
void set_forwarding_class_table(ForwardingClassTable *table)
Definition: agent.h:546
MulticastPolicyTable * mp_table() const
Definition: agent.h:645
void set_acl_table(AclTable *table)
Definition: agent.h:519
VnTable * vn_table() const
Definition: agent.h:498
VrfAssignTable * vrf_assign_table() const
Definition: agent.h:533
void set_vrf_assign_table(VrfAssignTable *table)
Definition: agent.h:534
PhysicalDeviceTable * physical_device_table() const
Definition: agent.h:631
void set_mirror_table(MirrorTable *table)
Definition: agent.h:529
void set_tag_table(TagTable *table)
Definition: agent.h:509
DB * db() const
Definition: agent.h:1121
NextHopTable * nexthop_table() const
Definition: agent.h:478
SgTable * sg_table() const
Definition: agent.h:503
ServiceInstanceTable * service_instance_table() const
Definition: agent.h:820
void set_vn_table(VnTable *table)
Definition: agent.h:499
void set_mp_table(MulticastPolicyTable *table)
Definition: agent.h:646
void set_service_instance_table(ServiceInstanceTable *table)
Definition: agent.h:824
void set_policy_set_table(PolicySetTable *table)
Definition: agent.h:524
MplsTable * mpls_table() const
Definition: agent.h:513
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: bridge_route.cc:66
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
Definition: db.h:25
static void RegisterFactory(const std::string &prefix, CreateFunction create_fn)
Definition: db.cc:24
DBTableBase * CreateTable(const std::string &name)
Definition: db.cc:99
static DBTableBase * CreateTable(DB *db, const std::string &name)
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
Definition: hbf.h:31
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
static DBTableBase * CreateTable(DB *db, const std::string &name)
static DBTableBase * CreateTable(DB *db, const std::string &name)
void RegisterDBClients(IFMapDependencyManager *dep)
Definition: interface.cc:75
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: interface.cc:317
void Init(OperDB *oper)
Definition: interface.cc:70
virtual void Clear()
Definition: interface.cc:413
static DBTableBase * CreateTable(DB *db, const std::string &name)
void Shutdown()
void Initialize()
void ReserveLabel(uint32_t start, uint32_t end)
Definition: mpls.cc:377
void FreeReserveLabel(uint32_t start, uint32_t end)
Definition: mpls.cc:385
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: mpls.cc:243
static const uint32_t kStartLabel
Definition: mpls.h:104
static DBTableBase * CreateTable(DB *db, const std::string &name)
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: nexthop.cc:353
std::unique_ptr< OperVirtualDns > virtual_dns_
Definition: operdb_init.h:124
std::unique_ptr< BgpRouterConfig > bgp_router_config_
Definition: operdb_init.h:122
std::unique_ptr< AgentSandeshManager > agent_sandesh_manager_
Definition: operdb_init.h:115
std::unique_ptr< VxlanRoutingManager > vxlan_routing_manager_
Definition: operdb_init.h:130
void RegisterDBClients()
Definition: operdb_init.cc:347
void InitDone()
Definition: operdb_init.cc:343
std::unique_ptr< GlobalVrouter > global_vrouter_
Definition: operdb_init.h:121
std::unique_ptr< MulticastHandler > multicast_
Definition: operdb_init.h:110
Agent * agent() const
Definition: operdb_init.h:53
std::unique_ptr< OperNetworkIpam > network_ipam_
Definition: operdb_init.h:123
void DeleteRoutes()
Definition: operdb_init.cc:441
std::unique_ptr< RouteLeakManager > route_leak_manager_
Definition: operdb_init.h:128
std::unique_ptr< GlobalQosConfig > global_qos_config_
Definition: operdb_init.h:125
std::unique_ptr< InstanceManager > instance_manager_
Definition: operdb_init.h:113
std::unique_ptr< AgentRouteWalkerManager > route_walk_manager_
Definition: operdb_init.h:127
virtual ~OperDB()
Definition: operdb_init.cc:376
std::unique_ptr< AgentProfile > profile_
Definition: operdb_init.h:116
std::unique_ptr< HBFHandler > hbf_handler_
Definition: operdb_init.h:131
void Init()
Definition: operdb_init.cc:315
std::unique_ptr< BgpAsAService > bgp_as_a_service_
Definition: operdb_init.h:117
void Shutdown()
Definition: operdb_init.cc:379
void CreateDBTables(DB *)
Definition: operdb_init.cc:80
std::unique_ptr< TsnElector > tsn_elector_
Definition: operdb_init.h:129
std::unique_ptr< VRouter > vrouter_
Definition: operdb_init.h:120
std::unique_ptr< DomainConfig > domain_config_
Definition: operdb_init.h:118
std::unique_ptr< IFMapDependencyManager > dependency_manager_
Definition: operdb_init.h:112
std::unique_ptr< GlobalSystemConfig > global_system_config_
Definition: operdb_init.h:126
std::unique_ptr< NexthopManager > nexthop_manager_
Definition: operdb_init.h:114
IFMapDependencyManager * dependency_manager()
Definition: operdb_init.h:62
Agent * agent_
Definition: operdb_init.h:109
static const uint16_t max_linklocal_addresses
Definition: operdb_init.h:40
std::unique_ptr< PathPreferenceModule > route_preference_module_
Definition: operdb_init.h:111
void RegisterDBClients(IFMapDependencyManager *dep)
static DBTableBase * CreateTable(DB *db, const std::string &name)
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: policy_set.cc:262
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
Definition: qos_queue.cc:96
static DBTableBase * CreateTable(Agent *agent, DB *db, const std::string &name)
static DBTableBase * CreateTable(DB *db, const std::string &name)
void Initialize(DBGraph *graph, IFMapDependencyManager *dependency_manager)
Definition: sg.h:73
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: sg.cc:101
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: vm.h:81
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: vm.cc:194
Definition: vn.h:336
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: vn.cc:765
virtual void Clear()
Definition: vn.cc:761
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: vrf_assign.cc:71
Definition: vrf.h:272
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: vrf.cc:868
virtual void Clear()
Definition: vrf.cc:628
void DeleteRoutes()
Definition: vrf.cc:1364
void Shutdown()
Definition: vxlan.cc:44
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: vxlan.cc:323
void Initialize()
Definition: vxlan.cc:34
This class manages an operative state of VxLAN logical routers (LR) defined via Config logical-router...
SandeshTraceBufferPtr OperConfigTraceBuf(SandeshTraceBufferCreate("OperIfmap", 1000))
T * DBTableCreate(DB *db, Agent *agent, OperDB *oper, const std::string &db_name)
Definition: operdb_init.cc:71
boost::shared_ptr< TraceBuffer< SandeshTrace > > SandeshTraceBufferPtr
Definition: sandesh_trace.h:19
SandeshTraceBufferPtr SandeshTraceBufferCreate(const std::string &buf_name, size_t buf_size, bool trace_enable=true)
Definition: sandesh_trace.h:47