OpenSDN source code
physical_locator_ovsdb.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_PHYSICAL_LOCATOR_OVSDB_H_
7 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_PHYSICAL_LOCATOR_OVSDB_H_
8 
9 #include <ovsdb_entry.h>
10 #include <ovsdb_object.h>
11 
12 namespace OVSDB {
14 public:
16  virtual ~PhysicalLocatorTable();
17 
18  void OvsdbNotify(OvsdbClientIdl::Op, struct ovsdb_idl_row *);
19  KSyncEntry *Alloc(const KSyncEntry *key, uint32_t index);
20 
21 private:
23 };
24 
26 public:
28  const std::string &dip_str);
29  virtual ~PhysicalLocatorEntry();
30 
31  bool IsLess(const KSyncEntry&) const;
32  std::string ToString() const {return "Physical Locator";}
34  bool AcquireCreateRequest(KSyncEntry *creator);
35  void ReleaseCreateRequest(KSyncEntry *creator);
36 private:
37 
38  friend class PhysicalLocatorTable;
39  std::string dip_;
40  // KSync Entry trying to create physical locator
43 };
44 }; // namespace OVSDB
45 
46 #endif // SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_PHYSICAL_LOCATOR_OVSDB_H_
47 
bool AcquireCreateRequest(KSyncEntry *creator)
void ReleaseCreateRequest(KSyncEntry *creator)
PhysicalLocatorEntry(PhysicalLocatorTable *table, const std::string &dip_str)
DISALLOW_COPY_AND_ASSIGN(PhysicalLocatorEntry)
bool IsLess(const KSyncEntry &) const
KSyncEntry * Alloc(const KSyncEntry *key, uint32_t index)
DISALLOW_COPY_AND_ASSIGN(PhysicalLocatorTable)
void OvsdbNotify(OvsdbClientIdl::Op, struct ovsdb_idl_row *)
PhysicalLocatorTable(OvsdbClientIdl *idl)
Definition: agent.h:44