OpenSDN source code
linux_fdb.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef vnsw_agent_ksync_linux_fdb_h
7 #define vnsw_agent_ksync_linux_fdb_h
8 
11 
12 /**************************************************************************
13  * Implements KSyncVxlanVrfObject for Linux
14  **************************************************************************/
16 public:
18  virtual ~KSyncLinuxVrfObject();
19 
20  // Allocates a KSyncVxlanFdbObject for every VRF
22 private:
24 };
25 
26 /**************************************************************************
27  * Implements KSyncVxlanRouteObject for Linux
28  **************************************************************************/
30 public:
32  virtual ~KSyncLinuxFdbObject();
33 
34  // Allocates an entry of type KSyncLinuxFdbEntry from DBEntry of type
35  // BridgeRouteEntry
37  // Allocate and initialize an entry of type KSyncLinuxFdbEntry
38  KSyncEntry *Alloc(const KSyncEntry *entry, uint32_t index);
39 private:
41 };
42 
43 /**************************************************************************
44  * Implements KSyncVxlanFdbEntry for Linux
45  **************************************************************************/
47 public:
50  const KSyncLinuxFdbEntry *entry);
51  virtual ~KSyncLinuxFdbEntry();
52 
53  // Creates a FDB entry in Vxlan Bridge
54  // Handles FDB entries on local port as well as those reachable on tunnel
55  bool Add();
56  // Modify a FDB entry in Vxlan Bridge
57  bool Change();
58  // Modify a FDB entry from Vxlan Bridge
59  bool Delete();
60 private:
62 };
63 #endif // vnsw_agent_ksync_linux_fdb_h
Agent supports multiple route tables - Inet-unicast (IPv4/IPv6), Inet-multicast, bridge,...
Definition: agent_route.h:110
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxFdbEntry)
KSyncLinuxFdbEntry(KSyncLinuxFdbObject *obj, const BridgeRouteEntry *route)
Definition: linux_vxlan.cc:227
virtual ~KSyncLinuxFdbEntry()
Definition: linux_vxlan.cc:232
KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
Definition: linux_vxlan.cc:303
virtual ~KSyncLinuxFdbObject()
Definition: linux_vxlan.cc:300
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxFdbObject)
KSyncEntry * DBToKSyncEntry(const DBEntry *e)
Definition: linux_vxlan.cc:310
KSyncLinuxFdbObject(KSyncLinuxVrfObject *vrf, AgentRouteTable *rt_table)
Definition: linux_vxlan.cc:295
KSyncVxlanRouteObject * AllocBridgeRouteTable(const VrfEntry *entry)
Definition: linux_vxlan.cc:326
KSyncLinuxVrfObject(KSyncLinuxVxlan *ksync)
Definition: linux_vxlan.cc:318
virtual ~KSyncLinuxVrfObject()
Definition: linux_vxlan.cc:322
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxVrfObject)
KSyncVxlan * ksync() const
Definition: vrf.h:90