summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/nat_binding.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_binding.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_binding.hpp')
-rw-r--r--src/vpp-api/vom/nat_binding.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/vpp-api/vom/nat_binding.hpp b/src/vpp-api/vom/nat_binding.hpp
index 77612502680..a99d23af601 100644
--- a/src/vpp-api/vom/nat_binding.hpp
+++ b/src/vpp-api/vom/nat_binding.hpp
@@ -54,6 +54,8 @@ public:
* Deny Zone
*/
const static zone_t OUTSIDE;
+
+ const static zone_t& from_vpp(u8 is_inside);
};
/**
@@ -86,6 +88,16 @@ public:
~nat_binding();
/**
+ * Comparison operator - for UT
+ */
+ bool operator==(const nat_binding& n) const;
+
+ /**
+ * Return the binding's key
+ */
+ const key_t key() const;
+
+ /**
* Return the 'singular instance' of the L2 config that matches this
* object
*/
@@ -97,6 +109,11 @@ public:
std::string to_string() const;
/**
+ * Static function to find the bridge_domain in the model
+ */
+ static std::shared_ptr<nat_binding> find(const key_t& key);
+
+ /**
* Dump all nat_bindings into the stream provided
*/
static void dump(std::ostream& os);