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 | |
Ole Troan | 9d42087 | 2017-10-12 13:06:35 +0200 | [diff] [blame^] | 16 | option version = "1.0.0"; |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 17 | |
| 18 | define vxlan_add_del_tunnel |
Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 19 | { |
| 20 | u32 client_index; |
| 21 | u32 context; |
| 22 | u8 is_add; |
| 23 | u8 is_ipv6; |
| 24 | u8 src_address[16]; |
| 25 | u8 dst_address[16]; |
| 26 | u32 mcast_sw_if_index; |
| 27 | u32 encap_vrf_id; |
| 28 | u32 decap_next_index; |
| 29 | u32 vni; |
| 30 | }; |
| 31 | |
| 32 | define vxlan_add_del_tunnel_reply |
| 33 | { |
| 34 | u32 context; |
| 35 | i32 retval; |
| 36 | u32 sw_if_index; |
| 37 | }; |
| 38 | |
| 39 | define vxlan_tunnel_dump |
| 40 | { |
| 41 | u32 client_index; |
| 42 | u32 context; |
| 43 | u32 sw_if_index; |
| 44 | }; |
| 45 | |
| 46 | define vxlan_tunnel_details |
| 47 | { |
| 48 | u32 context; |
| 49 | u32 sw_if_index; |
| 50 | u8 src_address[16]; |
| 51 | u8 dst_address[16]; |
| 52 | u32 mcast_sw_if_index; |
| 53 | u32 encap_vrf_id; |
| 54 | u32 decap_next_index; |
| 55 | u32 vni; |
| 56 | u8 is_ipv6; |
| 57 | }; |
| 58 | |
| 59 | /** \brief Interface set vxlan-bypass request |
| 60 | @param client_index - opaque cookie to identify the sender |
| 61 | @param context - sender context, to match reply w/ request |
| 62 | @param sw_if_index - interface used to reach neighbor |
| 63 | @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass |
| 64 | @param enable - if non-zero enable, else disable |
| 65 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 66 | autoreply define sw_interface_set_vxlan_bypass |
Pavel Kotucek | adb13d6 | 2016-12-19 14:35:35 +0100 | [diff] [blame] | 67 | { |
| 68 | u32 client_index; |
| 69 | u32 context; |
| 70 | u32 sw_if_index; |
| 71 | u8 is_ipv6; |
| 72 | u8 enable; |
| 73 | }; |