9 boost::shared_ptr<PktInfo> info,
10 boost::asio::io_context &io):
11 ProtoHandler(agent, info, io), intf_(NULL), vrf_(NULL), table_(NULL),
18 std::string intf =
"";
32 if (vm_intf == NULL) {
33 Log(
"Ingress packet on non-VMI interface");
47 Log(
"Invalid packet on physical interface");
52 Log(
"Non PBB packet on physical interface");
69 FindInterface(
pkt_info_->agent_hdr.ifindex);
71 Log(
"Invalid interface");
85 Log(
"Mac learning table not found");
97 Log(
"Mac entry added");
void Add(MacLearningEntryPtr ptr)
void Log(std::string str)
MacLearningPartition * Find(uint32_t index)
MacLearningProtoHandler(Agent *agent, boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
MacLearningProto * mac_learning_proto() const
InterfaceTable * interface_table() const
const string & GetName() const
boost::shared_ptr< PktInfo > pkt_info_
VrfEntry * FindVrfFromId(size_t index)
SandeshTraceBufferPtr MacLearningTraceBuf
static const std::string & NullString()
VrfTable * vrf_table() const
MacLearningPartition * table_
VrfEntry * GetVrf() const
MacLearningEntryPtr entry_
const std::string & name() const
uint32_t Hash(uint32_t vrf_id, const MacAddress &mac)