FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
geneve.api
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 SUSE LLC.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 option version = "2.1.0";
17 
18 import "vnet/interface_types.api";
19 import "vnet/ethernet/ethernet_types.api";
20 import "vnet/ip/ip_types.api";
21 
22 define geneve_add_del_tunnel
23 {
24  option deprecated;
27  bool is_add;
28  vl_api_address_t local_address;
29  vl_api_address_t remote_address;
30  vl_api_interface_index_t mcast_sw_if_index;
34  option vat_help="src <ip-addr> { dst <ip-addr> | group <mcast-ip-addr> { <intfc> | mcast_sw_if_index <nn> } } vni <vni> [encap-vrf-id <nn>] [decap-next <l2|nn>] [del]";
35 };
36 
37 define geneve_add_del_tunnel_reply
38 {
41  vl_api_interface_index_t sw_if_index;
42 };
43 
44 define geneve_add_del_tunnel2
45 {
48  bool is_add;
49  vl_api_address_t local_address;
50  vl_api_address_t remote_address;
51  vl_api_interface_index_t mcast_sw_if_index;
55  bool l3_mode;
56 };
57 
58 define geneve_add_del_tunnel2_reply
59 {
62  vl_api_interface_index_t sw_if_index;
63 };
64 
65 define geneve_tunnel_dump
66 {
69  vl_api_interface_index_t sw_if_index;
70  option vat_help="[<intfc> | sw_if_index <nn>]";
71 };
72 
73 define geneve_tunnel_details
74 {
76  vl_api_interface_index_t sw_if_index;
77  vl_api_address_t src_address;
78  vl_api_address_t dst_address;
79  vl_api_interface_index_t mcast_sw_if_index;
83 };
84 
85 /** \brief Interface set geneve-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-geneve-bypass, else ipv4-geneve-bypass
90  @param enable - if non-zero enable, else disable
91 */
92 autoreply define sw_interface_set_geneve_bypass
93 {
96  vl_api_interface_index_t sw_if_index;
97  bool is_ipv6;
98  bool enable;
99  option vat_help="<intfc> | sw_if_index <id> [ip4 | ip6] [enable | disable]";
100 };
vl_api_sw_interface_set_geneve_bypass_t::enable
bool enable
Definition: geneve.api:98
vl_api_sw_interface_set_geneve_bypass_t::client_index
u32 client_index
Definition: geneve.api:94
vl_api_geneve_add_del_tunnel_t::encap_vrf_id
u32 encap_vrf_id
Definition: geneve.api:31
vl_api_geneve_tunnel_details_t::dst_address
vl_api_address_t dst_address
Definition: geneve.api:78
vl_api_geneve_add_del_tunnel2_t::remote_address
vl_api_address_t remote_address
Definition: geneve.api:50
vl_api_geneve_add_del_tunnel2_t::client_index
u32 client_index
Definition: geneve.api:46
vl_api_geneve_add_del_tunnel_reply_t::retval
i32 retval
Definition: geneve.api:40
vl_api_geneve_add_del_tunnel2_reply_t::context
u32 context
Definition: geneve.api:60
vl_api_geneve_tunnel_dump_t::context
u32 context
Definition: geneve.api:68
vl_api_geneve_add_del_tunnel_reply_t::context
u32 context
Definition: geneve.api:39
vl_api_geneve_tunnel_details_t::encap_vrf_id
u32 encap_vrf_id
Definition: geneve.api:80
vl_api_geneve_tunnel_dump_t::vat_help
option vat_help
Definition: geneve.api:70
vl_api_geneve_tunnel_dump_t
Definition: geneve.api:65
vl_api_geneve_add_del_tunnel2_t::l3_mode
bool l3_mode
Definition: geneve.api:55
vl_api_geneve_add_del_tunnel_t::local_address
vl_api_address_t local_address
Definition: geneve.api:28
i32
signed int i32
Definition: types.h:77
vl_api_geneve_tunnel_details_t
Definition: geneve.api:73
vl_api_geneve_add_del_tunnel_t::remote_address
vl_api_address_t remote_address
Definition: geneve.api:29
vl_api_geneve_add_del_tunnel_t
Definition: geneve.api:22
vl_api_geneve_add_del_tunnel2_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: geneve.api:62
vl_api_geneve_add_del_tunnel2_t::vni
u32 vni
Definition: geneve.api:54
vl_api_sw_interface_set_geneve_bypass_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: geneve.api:96
vl_api_geneve_add_del_tunnel_t::vat_help
option vat_help
Definition: geneve.api:34
vl_api_sw_interface_set_geneve_bypass_t
Interface set geneve-bypass request.
Definition: geneve.api:92
vl_api_geneve_tunnel_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: geneve.api:69
vl_api_geneve_add_del_tunnel_t::deprecated
option deprecated
Definition: geneve.api:24
vl_api_geneve_add_del_tunnel2_t
Definition: geneve.api:44
vl_api_geneve_add_del_tunnel2_t::context
u32 context
Definition: geneve.api:47
vl_api_geneve_add_del_tunnel2_t::mcast_sw_if_index
vl_api_interface_index_t mcast_sw_if_index
Definition: geneve.api:51
vl_api_sw_interface_set_geneve_bypass_t::vat_help
option vat_help
Definition: geneve.api:99
vl_api_geneve_tunnel_details_t::vni
u32 vni
Definition: geneve.api:82
vl_api_geneve_add_del_tunnel_t::mcast_sw_if_index
vl_api_interface_index_t mcast_sw_if_index
Definition: geneve.api:30
vl_api_geneve_add_del_tunnel_reply_t
Definition: geneve.api:37
vl_api_geneve_add_del_tunnel2_reply_t::retval
i32 retval
Definition: geneve.api:61
vl_api_sw_interface_set_geneve_bypass_t::context
u32 context
Definition: geneve.api:95
vl_api_geneve_add_del_tunnel_t::is_add
bool is_add
Definition: geneve.api:27
vl_api_geneve_add_del_tunnel2_t::encap_vrf_id
u32 encap_vrf_id
Definition: geneve.api:52
vl_api_geneve_add_del_tunnel2_reply_t
Definition: geneve.api:58
u32
unsigned int u32
Definition: types.h:88
vl_api_sw_interface_set_geneve_bypass_t::is_ipv6
bool is_ipv6
Definition: geneve.api:97
vl_api_geneve_add_del_tunnel_t::vni
u32 vni
Definition: geneve.api:33
vl_api_geneve_tunnel_details_t::src_address
vl_api_address_t src_address
Definition: geneve.api:77
vl_api_geneve_tunnel_details_t::context
u32 context
Definition: geneve.api:75
vl_api_geneve_add_del_tunnel_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: geneve.api:41
vl_api_geneve_tunnel_details_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: geneve.api:76
vl_api_geneve_add_del_tunnel2_t::decap_next_index
u32 decap_next_index
Definition: geneve.api:53
version
option version
Definition: geneve.api:16
vl_api_geneve_tunnel_details_t::decap_next_index
u32 decap_next_index
Definition: geneve.api:81
vl_api_geneve_tunnel_dump_t::client_index
u32 client_index
Definition: geneve.api:67
vl_api_geneve_add_del_tunnel_t::decap_next_index
u32 decap_next_index
Definition: geneve.api:32
vl_api_geneve_add_del_tunnel2_t::is_add
bool is_add
Definition: geneve.api:48
vl_api_geneve_tunnel_details_t::mcast_sw_if_index
vl_api_interface_index_t mcast_sw_if_index
Definition: geneve.api:79
vl_api_geneve_add_del_tunnel2_t::local_address
vl_api_address_t local_address
Definition: geneve.api:49
vl_api_geneve_add_del_tunnel_t::context
u32 context
Definition: geneve.api:26
vl_api_geneve_add_del_tunnel_t::client_index
u32 client_index
Definition: geneve.api:25