summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/nat_static.hpp
diff options
context:
space:
mode:
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