From 93d84c9fc2a839cb4114dbe431a00a58f2a1b168 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Wed, 19 Jul 2017 08:06:01 -0700 Subject: SNAT: in2out translation as an output feature (VPP-903) in2out translation as an output feature on the outside interface (postrouting) Change-Id: I32c0311be09bdf102b9a0885b8b89c7588cb558f Signed-off-by: Matus Fabian --- src/plugins/snat/snat.api | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/plugins/snat/snat.api') diff --git a/src/plugins/snat/snat.api b/src/plugins/snat/snat.api index 62c9605847a..f68a5aaa146 100644 --- a/src/plugins/snat/snat.api +++ b/src/plugins/snat/snat.api @@ -96,6 +96,42 @@ define snat_interface_details { u32 sw_if_index; }; +/** \brief Enable/disbale S-NAT as an interface output feature (postrouting + in2out translation) + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_add - 1 if add, 0 if delete + @param is_inside - 1 if inside, 0 if outside + @param sw_if_index - software index of the interface +*/ +autoreply define snat_interface_add_del_output_feature { + u32 client_index; + u32 context; + u8 is_add; + u8 is_inside; + u32 sw_if_index; +}; + +/** \brief Dump interfaces with S-NAT output feature + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request +*/ +define snat_interface_output_feature_dump { + u32 client_index; + u32 context; +}; + +/** \brief S-NAT interface with output feature details response + @param context - sender context, to match reply w/ request + @param is_inside - 1 if inside, 0 if outside + @param sw_if_index - software index of the interface +*/ +define snat_interface_output_feature_details { + u32 context; + u8 is_inside; + u32 sw_if_index; +}; + /** \brief Add/delete S-NAT static mapping @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request -- cgit 1.2.3-korg