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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 option version = "2.1.0";
18 import "vnet/interface_types.api";
19 import "vnet/ethernet/ethernet_types.api";
20 import "vnet/ip/ip_types.api";
22 define geneve_add_del_tunnel
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]";
37 define geneve_add_del_tunnel_reply
41 vl_api_interface_index_t sw_if_index;
44 define geneve_add_del_tunnel2
49 vl_api_address_t local_address;
50 vl_api_address_t remote_address;
51 vl_api_interface_index_t mcast_sw_if_index;
58 define geneve_add_del_tunnel2_reply
62 vl_api_interface_index_t sw_if_index;
65 define geneve_tunnel_dump
69 vl_api_interface_index_t sw_if_index;
70 option vat_help="[<intfc> | sw_if_index <nn>]";
73 define geneve_tunnel_details
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;
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
92 autoreply define sw_interface_set_geneve_bypass
96 vl_api_interface_index_t sw_if_index;
99 option vat_help="<intfc> | sw_if_index <id> [ip4 | ip6] [enable | disable]";