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:
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 = "1.1.0";
18 /** \brief Create or delete a VXLAN tunnel
19 @param client_index - opaque cookie to identify the sender
20 @param context - sender context, to match reply w/ request
21 @param is_add - Use 1 to create the tunnel, 0 to remove it
22 @param is_ipv6 - Use 0 for IPv4, 1 for IPv6
23 @param instance - optional unique custom device instance, else ~0.
24 @param src_address - Source IP address
25 @param dst_address - Destination IP address, can be multicast
26 @param mcast_sw_if_index - Interface for multicast destination
27 @param encap_vrf_id - Encap route table FIB index
28 @param decap_next_index - Name of decap next graph node
29 @param vni - The VXLAN Network Identifier, uint24
31 define vxlan_add_del_tunnel
37 u32 instance; /* If non-~0, specifies a custom dev instance */
40 u32 mcast_sw_if_index;
46 define vxlan_add_del_tunnel_reply
53 define vxlan_tunnel_dump
60 define vxlan_tunnel_details
67 u32 mcast_sw_if_index;
74 /** \brief Interface set vxlan-bypass request
75 @param client_index - opaque cookie to identify the sender
76 @param context - sender context, to match reply w/ request
77 @param sw_if_index - interface used to reach neighbor
78 @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass
79 @param enable - if non-zero enable, else disable
81 autoreply define sw_interface_set_vxlan_bypass
90 /** \brief Offload vxlan rx request
91 @param client_index - opaque cookie to identify the sender
92 @param context - sender context, to match reply w/ request
93 @param hw_if_index - rx hw interface
94 @param sw_if_index - vxlan interface to offload
95 @param enable - if non-zero enable, else disable
97 autoreply define vxlan_offload_rx