OpenSDN source code
linux_bridge.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_bridge_h
7 #define vnsw_agent_ksync_linux_bridge_h
8 
9 /**************************************************************************
10  * Implements KSyncVxlanBridgeObject for Linux
11  **************************************************************************/
13 public:
16 
17  // Allocates an entry of type KSyncLinuxBridgeEntry from DBEntry of type
18  // VxLanId
20  // Allocate and initialize an entry of type KSyncLinuxBridgeEntry
21  KSyncEntry *Alloc(const KSyncEntry *entry, uint32_t index);
22 private:
24 };
25 
26 /**************************************************************************
27  * Implements KSyncVxlanBridgeEntry for Linux
28  **************************************************************************/
30 public:
33  const KSyncLinuxBridgeEntry *entry);
34  virtual ~KSyncLinuxBridgeEntry() { }
35 
36  const std::string name() const { return name_; }
37  const std::string vxlan_port_name() const { return vxlan_port_name_; }
38 
39  // Creates a VxLanBridge and a Vxlan-Port
40  bool Add();
41  // Deletes the Vxlan Port and Vxlan Bridge
42  bool Delete();
43 private:
44  // Name of the Linux Vxlan Bridge created
45  std::string name_;
46  // Name of the Linux Vxlan port created
47  std::string vxlan_port_name_;
49 };
50 #endif // vnsw_agent_ksync_linux_bridge_h
const std::string name() const
Definition: linux_bridge.h:36
std::string vxlan_port_name_
Definition: linux_bridge.h:47
KSyncLinuxBridgeEntry(KSyncLinuxBridgeObject *obj, const VxLanId *vxlan)
Definition: linux_vxlan.cc:56
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxBridgeEntry)
const std::string vxlan_port_name() const
Definition: linux_bridge.h:37
virtual ~KSyncLinuxBridgeEntry()
Definition: linux_bridge.h:34
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxBridgeObject)
KSyncEntry * DBToKSyncEntry(const DBEntry *e)
Definition: linux_vxlan.cc:134
KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
Definition: linux_vxlan.cc:127
KSyncLinuxBridgeObject(KSyncLinuxVxlan *ksync)
Definition: linux_vxlan.cc:123
virtual ~KSyncLinuxBridgeObject()
Definition: linux_bridge.h:15
KSyncVxlan * ksync() const
Definition: vxlan.h:14