OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
linux_port.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_port_h
6 #define vnsw_agent_ksync_linux_port_h
7 
8 /**************************************************************************
9  * Implements KSyncVxlanPortObject for Linux
10  **************************************************************************/
12 public:
14  virtual ~KSyncLinuxPortObject() { }
15 
16  // Allocates an entry of type KSyncLinuxPortEntry from DBEntry of type
17  // Interface
18  virtual KSyncEntry *DBToKSyncEntry(const DBEntry *e);
19 
20  // Allocate and initialize an entry of type KSyncLinuxPortEntry
21  virtual KSyncEntry *Alloc(const KSyncEntry *entry, uint32_t index);
22 
23 private:
25 };
26 
27 /**************************************************************************
28  * Implements KSyncVxlanPortEntry for Linux
29  **************************************************************************/
31 public:
32  KSyncLinuxPortEntry(KSyncLinuxPortObject *obj, const Interface *intrface);
34  const KSyncLinuxPortEntry *entry);
35  virtual ~KSyncLinuxPortEntry() { }
36 
37  // Adds port to the bridge
38  bool Add();
39  // Handle change to the port. If there is change in bridge, removes port
40  // from old bridge and adds to new bridge
41  bool Change();
42  // Deletes port from the bridge
43  bool Delete();
44 private:
47 };
48 #endif // vnsw_agent_ksync_linux_port_h
KSyncVxlan * ksync() const
virtual ~KSyncLinuxPortEntry()
Definition: linux_port.h:35
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxPortEntry)
KSyncLinuxPortEntry(KSyncLinuxPortObject *obj, const Interface *intrface)
Definition: linux_vxlan.cc:141
virtual KSyncEntry * DBToKSyncEntry(const DBEntry *e)
Definition: linux_vxlan.cc:202
KSyncLinuxPortObject(KSyncLinuxVxlan *ksync)
Definition: linux_vxlan.cc:191
DISALLOW_COPY_AND_ASSIGN(KSyncLinuxPortObject)
virtual ~KSyncLinuxPortObject()
Definition: linux_port.h:14
virtual KSyncEntry * Alloc(const KSyncEntry *entry, uint32_t index)
Definition: linux_vxlan.cc:195
const KSyncLinuxBridgeEntry * old_bridge_
Definition: linux_port.h:45