aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/stn/stn.api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-12-06 14:42:17 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-12-07 11:23:02 +0000
commit7929f9f5c612b22097d874001e93f5bb38e5ed4f (patch)
tree182a208e8633f40ec4205544ef08db956400ba24 /src/plugins/stn/stn.api
parent277f03f0673b4be5db0f0eb8b3ed0e63855dbac7 (diff)
stn: use explicit types in api
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ifba4ff0e0f61641ca3f5e7bb72086cb4f32f1909
Diffstat (limited to 'src/plugins/stn/stn.api')
-rw-r--r--src/plugins/stn/stn.api17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/stn/stn.api b/src/plugins/stn/stn.api
index a3753a9abf9..613d1804684 100644
--- a/src/plugins/stn/stn.api
+++ b/src/plugins/stn/stn.api
@@ -19,12 +19,13 @@
*
*/
-option version = "1.0.0";
+option version = "2.0.0";
+import "vnet/interface_types.api";
+import "vnet/ip/ip_types.api";
/** \brief Add/del STN rules
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
- @param is_ip4 - 1 if address type is IPv4
@param ip_address - STN rule IP address
@param sw_if_index - Interface index
@param is_add - 1 if add, 0 if delete
@@ -32,10 +33,9 @@ option version = "1.0.0";
autoreply manual_print define stn_add_del_rule {
u32 client_index;
u32 context;
- u8 is_ip4;
- u8 ip_address[16];
- u32 sw_if_index;
- u8 is_add;
+ vl_api_address_t ip_address;
+ vl_api_interface_index_t sw_if_index;
+ bool is_add;
};
/** \brief Dump STN rules
@@ -55,8 +55,7 @@ define stn_rules_dump {
*/
define stn_rules_details {
u32 context;
- u8 is_ip4;
- u8 ip_address[16];
- u32 sw_if_index;
+ vl_api_address_t ip_address;
+ vl_api_interface_index_t sw_if_index;
};