OpenSDN source code
vm_interface_ksync.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 SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_VM_INTERFACE_KSYNC_H_
7 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_VM_INTERFACE_KSYNC_H_
8 
9 #include <ovsdb_entry.h>
10 #include <ovsdb_object.h>
11 
12 class VmInterface;
13 
14 namespace OVSDB {
16 public:
18  virtual ~VMInterfaceKSyncObject();
19 
20  KSyncEntry *Alloc(const KSyncEntry *key, uint32_t index);
23  const OvsdbDBEntry *ovsdb_entry);
24 
25 private:
27 };
28 
30 public:
32  const VMInterfaceKSyncEntry *key);
34  const VmInterface *entry);
37 
38  // ovs_entry ref is not valid for VM interface, override IsDataResolved
39  // to return always true
40  bool IsDataResolved() {return true;}
41  void AddMsg(struct ovsdb_idl_txn *);
42  void ChangeMsg(struct ovsdb_idl_txn *);
43  void DeleteMsg(struct ovsdb_idl_txn *);
44  bool Sync(DBEntry*);
45  bool IsLess(const KSyncEntry&) const;
46  std::string ToString() const {return "VM Interface Ksync";}
48 
49  const std::string &vn_name() const;
50 
51 private:
52  friend class VMInterfaceKSyncObject;
54  std::string vn_name_;
57 };
58 };
59 
60 #endif //SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_VM_INTERFACE_KSYNC_H_
61 
std::vector< int > SecurityGroupList
Definition: agent.h:202
OvsdbDBObject * table()
Definition: ovsdb_entry.h:97
void DeleteMsg(struct ovsdb_idl_txn *)
const std::string & vn_name() const
void AddMsg(struct ovsdb_idl_txn *)
DISALLOW_COPY_AND_ASSIGN(VMInterfaceKSyncEntry)
bool IsLess(const KSyncEntry &) const
VMInterfaceKSyncEntry(VMInterfaceKSyncObject *table, const VMInterfaceKSyncEntry *key)
void ChangeMsg(struct ovsdb_idl_txn *)
KSyncEntry * Alloc(const KSyncEntry *key, uint32_t index)
KSyncEntry * DBToKSyncEntry(const DBEntry *)
DBFilterResp OvsdbDBEntryFilter(const DBEntry *entry, const OvsdbDBEntry *ovsdb_entry)
DISALLOW_COPY_AND_ASSIGN(VMInterfaceKSyncObject)
VMInterfaceKSyncObject(OvsdbClientIdl *idl, DBTable *table)
Definition: agent.h:44
boost::uuids::uuid uuid