gre: update gre.api with explicit types
Type: refactor
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
