blob: 35d8c64219203d089c1e6bfc69999eea459b0229 [file] [log] [blame]
Pavel Kotucek296b2012016-12-19 14:47:09 +01001/*
2 * Copyright (c) 2015-2016 Cisco and/or its affiliates.
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 Grajciar1c2002a2020-01-31 10:45:30 +010016option version = "2.0.0";
17
18import "vnet/interface_types.api";
19import "vnet/ip/ip_types.api";
Dave Barach0d056e52017-09-28 15:11:16 -040020
Pavel Kotucek296b2012016-12-19 14:47:09 +010021define vxlan_gpe_add_del_tunnel
22{
23 u32 client_index;
24 u32 context;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010025 vl_api_address_t local;
26 vl_api_address_t remote;
27 vl_api_interface_index_t mcast_sw_if_index;
Pavel Kotucek296b2012016-12-19 14:47:09 +010028 u32 encap_vrf_id;
29 u32 decap_vrf_id;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010030 vl_api_ip_proto_t protocol;
Pavel Kotucek296b2012016-12-19 14:47:09 +010031 u32 vni;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010032 bool is_add [default=true];
Pavel Kotucek296b2012016-12-19 14:47:09 +010033};
34
35define vxlan_gpe_add_del_tunnel_reply
36{
37 u32 context;
38 i32 retval;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010039 vl_api_interface_index_t sw_if_index;
Pavel Kotucek296b2012016-12-19 14:47:09 +010040};
41
42define vxlan_gpe_tunnel_dump
43{
44 u32 client_index;
45 u32 context;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010046 vl_api_interface_index_t sw_if_index;
Pavel Kotucek296b2012016-12-19 14:47:09 +010047};
48
49define vxlan_gpe_tunnel_details
50{
51 u32 context;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010052 vl_api_interface_index_t sw_if_index;
53 vl_api_address_t local;
54 vl_api_address_t remote;
Pavel Kotucek296b2012016-12-19 14:47:09 +010055 u32 vni;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010056 vl_api_ip_proto_t protocol;
57 vl_api_interface_index_t mcast_sw_if_index;
Pavel Kotucek296b2012016-12-19 14:47:09 +010058 u32 encap_vrf_id;
59 u32 decap_vrf_id;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010060 bool is_ipv6;
Pavel Kotucek296b2012016-12-19 14:47:09 +010061};
62
Hongjun Ni8a0a0ae2017-05-27 20:23:09 +080063/** \brief Interface set vxlan-gpe-bypass request
64 @param client_index - opaque cookie to identify the sender
65 @param context - sender context, to match reply w/ request
66 @param sw_if_index - interface used to reach neighbor
67 @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass
68 @param enable - if non-zero enable, else disable
69*/
70autoreply define sw_interface_set_vxlan_gpe_bypass
71{
72 u32 client_index;
73 u32 context;
Jakub Grajciar1c2002a2020-01-31 10:45:30 +010074 vl_api_interface_index_t sw_if_index;
75 bool is_ipv6;
76 bool enable [default=true];
Hongjun Ni8a0a0ae2017-05-27 20:23:09 +080077};
78
Pavel Kotucek296b2012016-12-19 14:47:09 +010079/*
80 * Local Variables:
81 * eval: (c-set-style "gnu")
82 * End:
Ole Troan9d420872017-10-12 13:06:35 +020083 */