summaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-07-01 13:16:16 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-07-02 13:13:27 +0000
commit96068d6b94207435f9c9619e2ce7921ebc812ade (patch)
treef7f36f8cc2dfc70730102d72b0ea254d10f84457 /extras/vom
parentc6eae9c079defa4812270945d614c4598db262d8 (diff)
nat: nat66 to plugin
Type: refactor Change-Id: I8c1f0c02a4522c1f9e461ddadd59938579ec00c6 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/nat_binding_cmds.hpp5
-rw-r--r--extras/vom/vom/nat_static_cmds.cpp13
-rw-r--r--extras/vom/vom/nat_static_cmds.hpp1
3 files changed, 9 insertions, 10 deletions
diff --git a/extras/vom/vom/nat_binding_cmds.hpp b/extras/vom/vom/nat_binding_cmds.hpp
index 9b59d0dbd2c..40507e0374b 100644
--- a/extras/vom/vom/nat_binding_cmds.hpp
+++ b/extras/vom/vom/nat_binding_cmds.hpp
@@ -21,6 +21,7 @@
#include "vom/rpc_cmd.hpp"
#include <vapi/nat.api.vapi.hpp>
+#include <vapi/nat66.api.vapi.hpp>
namespace VOM {
namespace nat_binding_cmds {
@@ -253,8 +254,8 @@ private:
/////
/**
-* A functor class that binds a NAT configuration to an input interface
-*/
+ * A functor class that binds a NAT configuration to an input interface
+ */
class bind_66_input_cmd
: public rpc_cmd<HW::item<bool>, vapi::Nat66_add_del_interface>
{
diff --git a/extras/vom/vom/nat_static_cmds.cpp b/extras/vom/vom/nat_static_cmds.cpp
index 0c4d7283ea6..7e2b05f7f1e 100644
--- a/extras/vom/vom/nat_static_cmds.cpp
+++ b/extras/vom/vom/nat_static_cmds.cpp
@@ -16,6 +16,7 @@
#include "vom/nat_static_cmds.hpp"
DEFINE_VAPI_MSG_IDS_NAT_API_JSON;
+DEFINE_VAPI_MSG_IDS_NAT66_API_JSON;
namespace VOM {
namespace nat_static_cmds {
@@ -28,8 +29,7 @@ create_44_cmd::create_44_cmd(HW::item<bool>& item,
, m_id(id)
, m_inside(inside)
, m_outside(outside)
-{
-}
+{}
bool
create_44_cmd::operator==(const create_44_cmd& other) const
@@ -77,8 +77,7 @@ delete_44_cmd::delete_44_cmd(HW::item<bool>& item,
, m_id(id)
, m_inside(inside)
, m_outside(outside)
-{
-}
+{}
bool
delete_44_cmd::operator==(const delete_44_cmd& other) const
@@ -153,8 +152,7 @@ create_66_cmd::create_66_cmd(HW::item<bool>& item,
, m_id(id)
, m_inside(inside)
, m_outside(outside)
-{
-}
+{}
bool
create_66_cmd::operator==(const create_66_cmd& other) const
@@ -198,8 +196,7 @@ delete_66_cmd::delete_66_cmd(HW::item<bool>& item,
, m_id(id)
, m_inside(inside)
, m_outside(outside)
-{
-}
+{}
bool
delete_66_cmd::operator==(const delete_66_cmd& other) const
diff --git a/extras/vom/vom/nat_static_cmds.hpp b/extras/vom/vom/nat_static_cmds.hpp
index 8d514d85771..2213ef5ae47 100644
--- a/extras/vom/vom/nat_static_cmds.hpp
+++ b/extras/vom/vom/nat_static_cmds.hpp
@@ -20,6 +20,7 @@
#include "vom/dump_cmd.hpp"
#include <vapi/nat.api.vapi.hpp>
+#include <vapi/nat66.api.vapi.hpp>
namespace VOM {
namespace nat_static_cmds {