summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-12-06 13:16:21 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-12-06 14:06:00 +0000
commitbdde585342b2df23c49c9960f7eacc4eb24fdc1a (patch)
treefbf873b26bde209d2d64b1cb47c8f8fee3d1b590
parent4a7fc4cf115ec000e534d98c884dcb862a3640e5 (diff)
abf: use explicit types in api
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I9462de3d27b88539bff87c07a59987dd62fb2add
-rw-r--r--src/plugins/abf/abf.api9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/abf/abf.api b/src/plugins/abf/abf.api
index 72f4b37ce8e..e0f6aafc705 100644
--- a/src/plugins/abf/abf.api
+++ b/src/plugins/abf/abf.api
@@ -22,6 +22,7 @@
option version = "1.0.0";
import "vnet/ip/ip_types.api";
import "vnet/fib/fib_types.api";
+import "vnet/interface_types.api";
/** \brief Get the plugin version
@param client_index - opaque cookie to identify the sender
@@ -69,7 +70,7 @@ autoreply define abf_policy_add_del
{
u32 client_index;
u32 context;
- u8 is_add;
+ bool is_add;
vl_api_abf_policy_t policy;
};
@@ -99,9 +100,9 @@ define abf_policy_dump
typedef abf_itf_attach
{
u32 policy_id;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
u32 priority;
- u8 is_ipv6;
+ bool is_ipv6;
};
/** \brief Add or delete a policy attachment to an interface
@@ -110,7 +111,7 @@ autoreply define abf_itf_attach_add_del
{
u32 client_index;
u32 context;
- u8 is_add;
+ bool is_add;
vl_api_abf_itf_attach_t attach;
};