aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cnat/cnat.api
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2021-02-25 12:06:11 +0100
committerFlorin Coras <florin.coras@gmail.com>2021-02-26 01:55:07 +0000
commitcc9a1a0d39f22f653801f5d08bfe4892325254b5 (patch)
treec19e3ebea400c7cba3009d8e31097e2c40dfad88 /src/plugins/cnat/cnat.api
parent4d237874e5c9922330c62ac1b003a9a171c1bc3b (diff)
cnat: add input feature node
This allows to configure nat on a per-interface basis. Special care must be taken to ensure the configuration remains consistent. Type: feature Change-Id: I352b2dce182e09d30813ce958333bb1ff37d9b4e Signed-off-by: Aloys Augustin <aloaugus@cisco.com> Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat.api')
-rw-r--r--src/plugins/cnat/cnat.api11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat.api b/src/plugins/cnat/cnat.api
index 2b79e0d1b8b..a5df8b1e578 100644
--- a/src/plugins/cnat/cnat.api
+++ b/src/plugins/cnat/cnat.api
@@ -167,6 +167,17 @@ autoreply define cnat_add_del_snat_prefix
vl_api_prefix_t prefix;
};
+enum cnat_snat_policies:u32
+{
+ CNAT_SNAT_POLICY_NONE = 1,
+};
+
+autoreply define cnat_set_snat_policy
+{
+ u32 client_index;
+ u32 context;
+ vl_api_cnat_snat_policies_t policy;
+};
/*
* fd.io coding-style-patch-verification: ON
*