nat: nat66 to plugin
Type: refactor Change-Id: I8c1f0c02a4522c1f9e461ddadd59938579ec00c6 Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:
committed by
Andrew Yourtchenko
parent
c6eae9c079
commit
96068d6b94
@@ -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>
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user