diff options
author | Ole Troan <ot@cisco.com> | 2019-06-07 11:02:58 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-06-07 11:15:32 +0000 |
commit | 814f15948cbcf67f9a9c9792b22ce1f182eaa20d (patch) | |
tree | 90dff5e8f6d8efb1436982acea6070bb63be9f76 /src | |
parent | 85465588b18fef9c4712f864f512e00741e2d4f2 (diff) |
gre: update gre.api with explicit types
Change-Id: I0036c216b79afb66b982b1b6a7e81f738f3b61dc
Type: refactor
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/gre/gre.api | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/vnet/gre/gre.api b/src/vnet/gre/gre.api index 841099c68cc..cb0bb736c4f 100644 --- a/src/vnet/gre/gre.api +++ b/src/vnet/gre/gre.api @@ -16,6 +16,7 @@ option version = "2.0.0"; +import "vnet/interface_types.api"; import "vnet/ip/ip_types.api"; /** \brief A GRE tunnel type @@ -42,13 +43,11 @@ typedef gre_tunnel { u32 client_index; u32 context; - u8 is_add; - u8 is_ipv6; u16 session_id; vl_api_gre_tunnel_type_t type; u32 instance; u32 outer_fib_id; - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; vl_api_address_t src; vl_api_address_t dst; }; @@ -57,7 +56,7 @@ define gre_tunnel_add_del { u32 client_index; u32 context; - u8 is_add; + bool is_add; vl_api_gre_tunnel_t tunnel; }; @@ -65,14 +64,14 @@ define gre_tunnel_add_del_reply { u32 context; i32 retval; - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; }; define gre_tunnel_dump { u32 client_index; u32 context; - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; }; define gre_tunnel_details |