summaryrefslogtreecommitdiffstats
path: root/plugins/snat-plugin/snat/snat.api
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-10-24 03:30:00 -0700
committerOle Trøan <otroan@employees.org>2016-10-31 08:26:40 +0000
commit588144ab4552a5f54b692016ff0543decc28d1ea (patch)
tree058b03a4caa3e551ecaa617833d8120c28a9bef7 /plugins/snat-plugin/snat/snat.api
parent6ce685d79b1365588a92340e5c45cdbdea92d5db (diff)
VPP-459: SNAT dump API for in and out interfaces
Change-Id: Ie0cba0778b094eaafa960d3f432199e1e3b2d116 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'plugins/snat-plugin/snat/snat.api')
-rw-r--r--plugins/snat-plugin/snat/snat.api20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/snat-plugin/snat/snat.api b/plugins/snat-plugin/snat/snat.api
index b2a21cf2b64..d7d41f2000d 100644
--- a/plugins/snat-plugin/snat/snat.api
+++ b/plugins/snat-plugin/snat/snat.api
@@ -92,6 +92,26 @@ define snat_interface_add_del_feature_reply {
i32 retval;
};
+/** \brief Dump interfaces with S-NAT feature
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+*/
+define snat_interface_dump {
+ u32 client_index;
+ u32 context;
+};
+
+/** \brief S-NAT interface 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_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