FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vxlan_gbp.api
Go to the documentation of this file.
1 /* Hey Emacs use -*- mode: C -*- */
2 /*
3  * Copyright (c) 2018 Cisco and/or its affiliates.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 option version = "1.1.1";
18 import "vnet/ip/ip_types.api";
19 import "vnet/interface_types.api";
20 
22 {
25 };
26 
27 /** \brief Definition of a VXLAN GBP tunnel
28  @param instance - optional unique custom device instance, else ~0.
29  @param src - Source IP address
30  @param dst - Destination IP address, can be multicast
31  @param mcast_sw_if_index - Interface for multicast destination
32  @param encap_table_id - Encap route table
33  @param vni - The VXLAN Network Identifier, uint24
34  @param sw_ifindex - Ignored in add message, set in details
35 */
36 typedef vxlan_gbp_tunnel
37 {
38  u32 instance;
39  vl_api_address_t src;
40  vl_api_address_t dst;
41  vl_api_interface_index_t mcast_sw_if_index;
44  vl_api_interface_index_t sw_if_index;
45  vl_api_vxlan_gbp_api_tunnel_mode_t mode;
46 };
47 
48 /** \brief Create or delete a VXLAN-GBP tunnel
49  @param client_index - opaque cookie to identify the sender
50  @param context - sender context, to match reply w/ request
51  @param is_add - Use 1 to create the tunnel, 0 to remove it
52 */
53 define vxlan_gbp_tunnel_add_del
54 {
57  bool is_add [default=true];
58  vl_api_vxlan_gbp_tunnel_t tunnel;
59  option in_progress;
60 };
61 
62 define vxlan_gbp_tunnel_add_del_reply
63 {
66  vl_api_interface_index_t sw_if_index;
67  option in_progress;
68 };
69 
70 define vxlan_gbp_tunnel_dump
71 {
74  vl_api_interface_index_t sw_if_index [default=0xffffffff];
75  option in_progress;
76 };
77 
78 define vxlan_gbp_tunnel_details
79 {
81  vl_api_vxlan_gbp_tunnel_t tunnel;
82  option in_progress;
83 };
84 
85 /** \brief Interface set vxlan-bypass request
86  @param client_index - opaque cookie to identify the sender
87  @param context - sender context, to match reply w/ request
88  @param sw_if_index - interface used to reach neighbor
89  @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass
90  @param enable - if non-zero enable, else disable
91 */
92 autoreply define sw_interface_set_vxlan_gbp_bypass
93 {
96  vl_api_interface_index_t sw_if_index;
97  bool is_ipv6;
98  bool enable [default=true];
99  option in_progress;
100 };
src
vl_api_address_t src
Definition: vxlan_gbp.api:39
vl_api_vxlan_gbp_tunnel_details_t::context
u32 context
Definition: vxlan_gbp.api:80
vl_api_vxlan_gbp_tunnel_add_del_t::tunnel
vl_api_vxlan_gbp_tunnel_t tunnel
Definition: vxlan_gbp.api:58
vl_api_vxlan_gbp_tunnel_details_t
Definition: vxlan_gbp.api:78
vni
u32 vni
Definition: vxlan_gbp.api:43
encap_table_id
u32 encap_table_id
Definition: vxlan_gbp.api:42
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan_gbp.api:44
VXLAN_GBP_API_TUNNEL_MODE_L3
@ VXLAN_GBP_API_TUNNEL_MODE_L3
Definition: vxlan_gbp.api:24
vl_api_sw_interface_set_vxlan_gbp_bypass_t::in_progress
option in_progress
Definition: vxlan_gbp.api:99
vl_api_vxlan_gbp_tunnel_add_del_t
Create or delete a VXLAN-GBP tunnel.
Definition: vxlan_gbp.api:53
vl_api_vxlan_gbp_tunnel_add_del_t::is_add
bool is_add[default=true]
Definition: vxlan_gbp.api:57
vl_api_vxlan_gbp_tunnel_dump_t
Definition: vxlan_gbp.api:70
vl_api_sw_interface_set_vxlan_gbp_bypass_t::enable
bool enable[default=true]
Definition: vxlan_gbp.api:98
i32
signed int i32
Definition: types.h:77
vl_api_vxlan_gbp_tunnel_add_del_reply_t
Definition: vxlan_gbp.api:62
vl_api_vxlan_gbp_tunnel_dump_t::context
u32 context
Definition: vxlan_gbp.api:73
vl_api_vxlan_gbp_tunnel_add_del_reply_t::context
u32 context
Definition: vxlan_gbp.api:64
vl_api_vxlan_gbp_tunnel_add_del_t::client_index
u32 client_index
Definition: vxlan_gbp.api:55
vxlan_gbp_api_tunnel_mode
vxlan_gbp_api_tunnel_mode
Definition: vxlan_gbp.api:21
vl_api_vxlan_gbp_tunnel_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: vxlan_gbp.api:74
vl_api_vxlan_gbp_tunnel_add_del_t::in_progress
option in_progress
Definition: vxlan_gbp.api:59
version
option version
Definition: vxlan_gbp.api:17
dst
vl_api_address_t dst
Definition: vxlan_gbp.api:40
mcast_sw_if_index
vl_api_interface_index_t mcast_sw_if_index
Definition: vxlan_gbp.api:41
vl_api_vxlan_gbp_tunnel_add_del_reply_t::in_progress
option in_progress
Definition: vxlan_gbp.api:67
vl_api_vxlan_gbp_tunnel_add_del_reply_t::retval
i32 retval
Definition: vxlan_gbp.api:65
vl_api_sw_interface_set_vxlan_gbp_bypass_t
Interface set vxlan-bypass request.
Definition: vxlan_gbp.api:92
vl_api_sw_interface_set_vxlan_gbp_bypass_t::context
u32 context
Definition: vxlan_gbp.api:95
mode
vl_api_vxlan_gbp_api_tunnel_mode_t mode
Definition: vxlan_gbp.api:45
u32
unsigned int u32
Definition: types.h:88
vl_api_sw_interface_set_vxlan_gbp_bypass_t::client_index
u32 client_index
Definition: vxlan_gbp.api:94
vl_api_vxlan_gbp_tunnel_details_t::tunnel
vl_api_vxlan_gbp_tunnel_t tunnel
Definition: vxlan_gbp.api:81
vxlan_gbp_tunnel
typedef vxlan_gbp_tunnel
Definition of a VXLAN GBP tunnel.
Definition: vxlan_gbp.api:37
instance
u32 instance
Definition: gre.api:51
vl_api_vxlan_gbp_tunnel_dump_t::client_index
u32 client_index
Definition: vxlan_gbp.api:72
vl_api_sw_interface_set_vxlan_gbp_bypass_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan_gbp.api:96
vl_api_vxlan_gbp_tunnel_add_del_t::context
u32 context
Definition: vxlan_gbp.api:56
vl_api_vxlan_gbp_tunnel_details_t::in_progress
option in_progress
Definition: vxlan_gbp.api:82
VXLAN_GBP_API_TUNNEL_MODE_L2
@ VXLAN_GBP_API_TUNNEL_MODE_L2
Definition: vxlan_gbp.api:23
vl_api_sw_interface_set_vxlan_gbp_bypass_t::is_ipv6
bool is_ipv6
Definition: vxlan_gbp.api:97
vl_api_vxlan_gbp_tunnel_add_del_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan_gbp.api:66
vl_api_vxlan_gbp_tunnel_dump_t::in_progress
option in_progress
Definition: vxlan_gbp.api:75