OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
linux_bridge.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_ksync_linux_bridge_h
6 #define vnsw_agent_ksync_linux_bridge_h
7 
8 /**************************************************************************
9  * Implements KSyncVxlanBridgeObject for Linux
10  **************************************************************************/
12 public:
15 
16  // Allocates an entry of type KSyncLinuxBridgeEntry from DBEntry of type
17  // VxLanId
19  // Allocate and initialize an entry of type KSyncLinuxBridgeEntry
20  KSyncEntry *Alloc(const KSyncEntry *entry, uint32_t index);
21 private:
23 };
24 
25 /**************************************************************************
26  * Implements KSyncVxlanBridgeEntry for Linux
27  **************************************************************************/
29 public:
32  const KSyncLinuxBridgeEntry *entry);
33  virtual ~KSyncLinuxBridgeEntry() { }
34 
35  const std::string name() const { return name_; }
36  const std::string vxlan_port_name() const { return vxlan_port_name_; }
37 
38  // Creates a VxLanBridge and a Vxlan-Port
39  bool Add();
40  // Deletes the Vxlan Port and Vxlan Bridge
41  bool Delete();
42 private:
43  // Name of the Linux Vxlan Bridge created
44  std::string name_;
45  // Name of the Linux Vxlan port created
46  std::string vxlan_port_name_;
48 };
49 #endif // vnsw_agent_ksync_linux_bridge_h
KSyncLinuxBridgeObject(KSyncLinuxVxlan *ksync)
Definition: linux_vxlan.cc:122
KSyncLinuxBridgeEntry(KSyncLinuxBridgeObject *obj, const VxLanId *vxlan)
Definition: linux_vxlan.cc:55
virtual ~KSyncLinuxBridgeEntry()
Definition: linux_bridge.h:33
Definition: vxlan.h:14
const std::string name() const
Definition: linux_bridge.h:35
virtual ~KSyncLinuxBridgeObject()
Definition: linux_bridge.h:14
KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
Definition: linux_vxlan.cc:126
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxBridgeEntry)
KSyncEntry * DBToKSyncEntry(const DBEntry *e)
Definition: linux_vxlan.cc:133
KSyncVxlan * ksync() const
std::string vxlan_port_name_
Definition: linux_bridge.h:46
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxBridgeObject)
const std::string vxlan_port_name() const
Definition: linux_bridge.h:36