OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mac_learning_init.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
3  */
4 
6 #include "mac_learning_mgmt.h"
7 #include "mac_learning_init.h"
8 
10  5000));
11 
13  agent_(agent), mac_learning_proto_(NULL) {
14 }
15 
17  EventManager *event = agent_->event_manager();
18  boost::asio::io_context &io = *event->io_service();
19 
22 
24 
27 }
28 
30  mac_learning_db_client_->Shutdown();
31 }
MacLearningModule(Agent *agent)
boost::asio::io_context * io_service()
Definition: event_manager.h:42
void set_mac_learning_proto(MacLearningProto *mac_learning_proto)
Definition: agent.h:1009
boost::scoped_ptr< MacLearningMgmtManager > mac_learning_mgmt_
boost::shared_ptr< TraceBuffer< SandeshTrace > > SandeshTraceBufferPtr
Definition: sandesh_trace.h:18
boost::scoped_ptr< MacLearningDBClient > mac_learning_db_client_
Definition: agent.h:358
boost::scoped_ptr< MacLearningProto > mac_learning_proto_
EventManager * event_manager() const
Definition: agent.h:1103
SandeshTraceBufferPtr MacLearningTraceBuf
SandeshTraceBufferPtr SandeshTraceBufferCreate(const std::string &buf_name, size_t buf_size, bool trace_enable=true)
Definition: sandesh_trace.h:46