summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat44-ed/nat44_ed.api
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2021-02-26 09:31:21 +0100
committerOle Tr�an <otroan@employees.org>2021-02-26 13:15:05 +0000
commite7a80a98bc1deba86a41cf66280101766e04a310 (patch)
treea23ae691e8e36bc62e623b417cbd2daac6f7f811 /src/plugins/nat/nat44-ed/nat44_ed.api
parentedb1716461113913b4dd08493f6445df3398e664 (diff)
nat: NAT44ED fail if using old plugin option
Fail if obsolete flag is used. Type: fix Change-Id: Id7000de9c82fa2c22692104b2fc1d463e5961f39 Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat44-ed/nat44_ed.api')
-rw-r--r--src/plugins/nat/nat44-ed/nat44_ed.api24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/plugins/nat/nat44-ed/nat44_ed.api b/src/plugins/nat/nat44-ed/nat44_ed.api
index 6a2d44a6b9c..4028aa71d7b 100644
--- a/src/plugins/nat/nat44-ed/nat44_ed.api
+++ b/src/plugins/nat/nat44-ed/nat44_ed.api
@@ -56,6 +56,7 @@ enum nat44_config_flags : u8
NAT44_IS_OUT2IN_DPO
*/
autoreply define nat44_plugin_enable_disable {
+ option deprecated;
u32 client_index;
u32 context;
u32 inside_vrf;
@@ -69,6 +70,29 @@ autoreply define nat44_plugin_enable_disable {
vl_api_nat44_config_flags_t flags;
};
+/** \brief Enable/disable NAT44ED plugin
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param inside_vrf - inside vrf id
+ @param outside_vrf - outside vrf id
+ @param sessions - maximum number of sessions per thread
+ @param session_memory - overwrite hash allocation parameter
+ @param enable - true if enable, false if disable
+ @param flags - flag NAT44_IS_STATIC_MAPPING_ONLY,
+ NAT44_IS_CONNECTION_TRACKING
+*/
+autoreply define nat44_ed_plugin_enable_disable {
+ option in_progress;
+ u32 client_index;
+ u32 context;
+ u32 inside_vrf;
+ u32 outside_vrf;
+ u32 sessions;
+ u32 session_memory;
+ bool enable;
+ vl_api_nat44_config_flags_t flags;
+};
+
/** \brief Control ping from client to api server request
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request