Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
Jon Loeliger | 3d460bd | 2018-02-01 16:36:12 -0600 | [diff] [blame] | 16 | option version = "1.1.0"; |
| 17 | |
| 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 |
| 30 | */ |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 31 | |
| 32 | define vxlan_add_del_tunnel |
Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 33 | { |
| 34 | u32 client_index; |
| 35 | u32 context; |
| 36 | u8 is_add; |
| 37 | u8 is_ipv6; |
Jon Loeliger | 3d460bd | 2018-02-01 16:36:12 -0600 | [diff] [blame] | 38 | u32 instance; /* If non-~0, specifies a custom dev instance */ |
Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 39 | u8 src_address[16]; |
| 40 | u8 dst_address[16]; |
| 41 | u32 mcast_sw_if_index; |
| 42 | u32 encap_vrf_id; |
| 43 | u32 decap_next_index; |
| 44 | u32 vni; |
| 45 | }; |
| 46 | |
| 47 | define vxlan_add_del_tunnel_reply |
| 48 | { |
| 49 | u32 context; |
| 50 | i32 retval; |
| 51 | u32 sw_if_index; |
| 52 | }; |
| 53 | |
| 54 | define vxlan_tunnel_dump |
| 55 | { |
| 56 | u32 client_index; |
| 57 | u32 context; |
| 58 | u32 sw_if_index; |
| 59 | }; |
| 60 | |
| 61 | define vxlan_tunnel_details |
| 62 | { |
| 63 | u32 context; |
| 64 | u32 sw_if_index; |
Jon Loeliger | 3d460bd | 2018-02-01 16:36:12 -0600 | [diff] [blame] | 65 | u32 instance; |
Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 66 | u8 src_address[16]; |
| 67 | u8 dst_address[16]; |
| 68 | u32 mcast_sw_if_index; |
| 69 | u32 encap_vrf_id; |
| 70 | u32 decap_next_index; |
| 71 | u32 vni; |
| 72 | u8 is_ipv6; |
| 73 | }; |
| 74 | |
| 75 | /** \brief Interface set vxlan-bypass request |
| 76 | @param client_index - opaque cookie to identify the sender |
| 77 | @param context - sender context, to match reply w/ request |
| 78 | @param sw_if_index - interface used to reach neighbor |
| 79 | @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass |
| 80 | @param enable - if non-zero enable, else disable |
| 81 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 82 | autoreply define sw_interface_set_vxlan_bypass |
Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 83 | { |
| 84 | u32 client_index; |
| 85 | u32 context; |
| 86 | u32 sw_if_index; |
| 87 | u8 is_ipv6; |
| 88 | u8 enable; |
| 89 | }; |