1 /* Hey Emacs use -*- mode: C -*- */
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:
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 option version = "1.1.1";
18 import "vnet/ip/ip_types.api";
19 import "vnet/interface_types.api";
21 enum vxlan_gbp_api_tunnel_mode
23 VXLAN_GBP_API_TUNNEL_MODE_L2,
24 VXLAN_GBP_API_TUNNEL_MODE_L3,
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
36 typedef vxlan_gbp_tunnel
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;
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
53 define vxlan_gbp_tunnel_add_del
57 bool is_add [default=true];
58 vl_api_vxlan_gbp_tunnel_t tunnel;
62 define vxlan_gbp_tunnel_add_del_reply
66 vl_api_interface_index_t sw_if_index;
70 define vxlan_gbp_tunnel_dump
74 vl_api_interface_index_t sw_if_index [default=0xffffffff];
78 define vxlan_gbp_tunnel_details
81 vl_api_vxlan_gbp_tunnel_t tunnel;
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
92 autoreply define sw_interface_set_vxlan_gbp_bypass
96 vl_api_interface_index_t sw_if_index;
98 bool enable [default=true];