diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2020-01-31 10:45:30 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-03-04 09:27:24 +0000 |
commit | 1c2002a317f05bd911b221d185c60aa0ba8f6ae5 (patch) | |
tree | 76b87f8c99ded388a1eb7951a81cf941eb476657 /src/vnet/vxlan-gpe/vxlan_gpe.api | |
parent | b979f5e3a6d99d5e9a37a9a086004feaa8fd15e5 (diff) |
vxlan: vxlan-gpe/vxlan-gpe.cpi API cleanup
Use consistent API types.
Type: fix
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: Ic428e35141724b47a944211b4d95c3e41796c81e
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/vnet/vxlan-gpe/vxlan_gpe.api')
-rw-r--r-- | src/vnet/vxlan-gpe/vxlan_gpe.api | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/vnet/vxlan-gpe/vxlan_gpe.api b/src/vnet/vxlan-gpe/vxlan_gpe.api index 89d37073737..35d8c642192 100644 --- a/src/vnet/vxlan-gpe/vxlan_gpe.api +++ b/src/vnet/vxlan-gpe/vxlan_gpe.api @@ -13,49 +13,51 @@ * limitations under the License. */ -option version = "1.0.0"; +option version = "2.0.0"; + +import "vnet/interface_types.api"; +import "vnet/ip/ip_types.api"; define vxlan_gpe_add_del_tunnel { u32 client_index; u32 context; - u8 is_ipv6; - u8 local[16]; - u8 remote[16]; - u32 mcast_sw_if_index; + vl_api_address_t local; + vl_api_address_t remote; + vl_api_interface_index_t mcast_sw_if_index; u32 encap_vrf_id; u32 decap_vrf_id; - u8 protocol; + vl_api_ip_proto_t protocol; u32 vni; - u8 is_add; + bool is_add [default=true]; }; define vxlan_gpe_add_del_tunnel_reply { u32 context; i32 retval; - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; }; define vxlan_gpe_tunnel_dump { u32 client_index; u32 context; - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; }; define vxlan_gpe_tunnel_details { u32 context; - u32 sw_if_index; - u8 local[16]; - u8 remote[16]; + vl_api_interface_index_t sw_if_index; + vl_api_address_t local; + vl_api_address_t remote; u32 vni; - u8 protocol; - u32 mcast_sw_if_index; + vl_api_ip_proto_t protocol; + vl_api_interface_index_t mcast_sw_if_index; u32 encap_vrf_id; u32 decap_vrf_id; - u8 is_ipv6; + bool is_ipv6; }; /** \brief Interface set vxlan-gpe-bypass request @@ -69,9 +71,9 @@ autoreply define sw_interface_set_vxlan_gpe_bypass { u32 client_index; u32 context; - u32 sw_if_index; - u8 is_ipv6; - u8 enable; + vl_api_interface_index_t sw_if_index; + bool is_ipv6; + bool enable [default=true]; }; /* |