summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/nat_static.hpp
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2017-12-20 08:49:51 -0800
committerNeale Ranns <neale.ranns@cisco.com>2018-01-02 00:47:16 -0800
commit041fa507c085010d55d18088321faa64d345bb88 (patch)
tree86de7e132d5052bf4ddd6c302502797c05bd2cf2 /src/vpp-api/vom/nat_static.hpp
parentb795bd0c5cadfc6734ee8b2355cbc3965be0a1c1 (diff)
VOM: NAT updates
Change-Id: I112afaa1f2ccd2ee62a436c73802afaea9b44779 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/nat_static.hpp')
-rw-r--r--src/vpp-api/vom/nat_static.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vpp-api/vom/nat_static.hpp b/src/vpp-api/vom/nat_static.hpp
index 1560968a6ed..4c2dab15325 100644
--- a/src/vpp-api/vom/nat_static.hpp
+++ b/src/vpp-api/vom/nat_static.hpp
@@ -60,6 +60,16 @@ public:
~nat_static();
/**
+ * Comparison operator - for UT
+ */
+ bool operator==(const nat_static& n) const;
+
+ /**
+ * Return the object's key
+ */
+ const key_t key() const;
+
+ /**
* Return the matching 'singular instance'
*/
std::shared_ptr<nat_static> singular() const;
@@ -67,7 +77,7 @@ public:
/**
* Find the instnace of the bridge_domain domain in the OM
*/
- static std::shared_ptr<nat_static> find(const nat_static& temp);
+ static std::shared_ptr<nat_static> find(const key_t& key);
/**
* Dump all bridge_domain-doamin into the stream provided