blob: 5fad670b9dbbea3ad89f5db626b4de8c3b26908c [file] [log] [blame]
Marco Varleseb598f1d2017-09-19 14:25:28 +02001/*
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
Jakub Grajciar2d3282e2019-10-01 12:04:56 +020016option version = "2.0.0";
17
18import "vnet/interface_types.api";
19import "vnet/ethernet/ethernet_types.api";
20import "vnet/ip/ip_types.api";
Marco Varlese556033a2017-10-17 10:33:07 +020021
22define geneve_add_del_tunnel
Marco Varleseb598f1d2017-09-19 14:25:28 +020023{
24 u32 client_index;
25 u32 context;
Jakub Grajciar2d3282e2019-10-01 12:04:56 +020026 bool is_add;
27 vl_api_address_t local_address;
28 vl_api_address_t remote_address;
29 vl_api_interface_index_t mcast_sw_if_index;
Marco Varleseb598f1d2017-09-19 14:25:28 +020030 u32 encap_vrf_id;
31 u32 decap_next_index;
32 u32 vni;
33};
34
35define geneve_add_del_tunnel_reply
36{
37 u32 context;
38 i32 retval;
Jakub Grajciar2d3282e2019-10-01 12:04:56 +020039 vl_api_interface_index_t sw_if_index;
Marco Varleseb598f1d2017-09-19 14:25:28 +020040};
41
42define geneve_tunnel_dump
43{
44 u32 client_index;
45 u32 context;
Jakub Grajciar2d3282e2019-10-01 12:04:56 +020046 vl_api_interface_index_t sw_if_index;
Marco Varleseb598f1d2017-09-19 14:25:28 +020047};
48
49define geneve_tunnel_details
50{
51 u32 context;
Jakub Grajciar2d3282e2019-10-01 12:04:56 +020052 vl_api_interface_index_t sw_if_index;
53 vl_api_address_t src_address;
54 vl_api_address_t dst_address;
55 vl_api_interface_index_t mcast_sw_if_index;
Marco Varleseb598f1d2017-09-19 14:25:28 +020056 u32 encap_vrf_id;
57 u32 decap_next_index;
58 u32 vni;
Marco Varleseb598f1d2017-09-19 14:25:28 +020059};
60
61/** \brief Interface set geneve-bypass request
62 @param client_index - opaque cookie to identify the sender
63 @param context - sender context, to match reply w/ request
64 @param sw_if_index - interface used to reach neighbor
65 @param is_ipv6 - if non-zero, enable ipv6-geneve-bypass, else ipv4-geneve-bypass
66 @param enable - if non-zero enable, else disable
67*/
68autoreply define sw_interface_set_geneve_bypass
69{
70 u32 client_index;
71 u32 context;
Jakub Grajciar2d3282e2019-10-01 12:04:56 +020072 vl_api_interface_index_t sw_if_index;
73 bool is_ipv6;
74 bool enable;
Marco Varleseb598f1d2017-09-19 14:25:28 +020075};