OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
physical_locator_ovsdb.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_PHYSICAL_LOCATOR_OVSDB_H_
6 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_PHYSICAL_LOCATOR_OVSDB_H_
7 
8 #include <ovsdb_entry.h>
9 #include <ovsdb_object.h>
10 
11 namespace OVSDB {
13 public:
15  virtual ~PhysicalLocatorTable();
16 
17  void OvsdbNotify(OvsdbClientIdl::Op, struct ovsdb_idl_row *);
18  KSyncEntry *Alloc(const KSyncEntry *key, uint32_t index);
19 
20 private:
22 };
23 
25 public:
27  const std::string &dip_str);
28  virtual ~PhysicalLocatorEntry();
29 
30  bool IsLess(const KSyncEntry&) const;
31  std::string ToString() const {return "Physical Locator";}
33  bool AcquireCreateRequest(KSyncEntry *creator);
34  void ReleaseCreateRequest(KSyncEntry *creator);
35 private:
36 
37  friend class PhysicalLocatorTable;
38  std::string dip_;
39  // KSync Entry trying to create physical locator
42 };
43 }; // namespace OVSDB
44 
45 #endif // SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_PHYSICAL_LOCATOR_OVSDB_H_
46 
void OvsdbNotify(OvsdbClientIdl::Op, struct ovsdb_idl_row *)
bool IsLess(const KSyncEntry &) const
PhysicalLocatorTable(OvsdbClientIdl *idl)
bool AcquireCreateRequest(KSyncEntry *creator)
PhysicalLocatorEntry(PhysicalLocatorTable *table, const std::string &dip_str)
DISALLOW_COPY_AND_ASSIGN(PhysicalLocatorEntry)
DISALLOW_COPY_AND_ASSIGN(PhysicalLocatorTable)
void ReleaseCreateRequest(KSyncEntry *creator)
KSyncEntry * Alloc(const KSyncEntry *key, uint32_t index)