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 = "2.0.0";
18 import "vnet/interface_types.api";
19 import "vnet/lisp-cp/lisp_types.api";
21 /** \brief GPE locator structure
22 @param is_ip4 - whether addr is IPv4 or v6
23 @param weight - locator weight
24 @param addr - IPv4/6 address
29 vl_api_address_t addr;
32 /** \brief add or delete GPE tunnel
33 @param client_index - opaque cookie to identify the sender
34 @param context - sender context, to match reply w/ request
35 @param is_add - add address if non-zero, else delete
40 @param rmt_eid - remote eid
41 @param lcl_eid - local eid
42 @param rmt_len - remote prefix len
43 @param lcl_len - local prefix len
44 @param vni - virtual network identifier
45 @param dp_table - vrf/bridge domain id
46 @param action - negative action when 0 locators configured
47 @param loc_num - number of locators
48 @param locs - array of remote locators
50 manual_print manual_endian define gpe_add_del_fwd_entry
54 bool is_add [default=true];
61 vl_api_gpe_locator_t locs[loc_num];
64 define gpe_add_del_fwd_entry_reply
71 /** \brief enable or disable gpe protocol
72 @param client_index - opaque cookie to identify the sender
73 @param context - sender context, to match reply w/ request
74 @param is_enable [default=true] - enable protocol if non-zero, else disable
76 autoreply define gpe_enable_disable
80 bool is_enable [default=true];
83 /** \brief add or delete gpe_iface
84 @param client_index - opaque cookie to identify the sender
85 @param context - sender context, to match reply w/ request
86 @param is_add - add address if non-zero, else delete
88 autoreply define gpe_add_del_iface
92 bool is_add [default=true];
98 define gpe_fwd_entry_vnis_get
104 manual_print manual_endian define gpe_fwd_entry_vnis_get_reply
112 define gpe_fwd_entries_get
119 typedef gpe_fwd_entry
129 manual_print manual_endian define gpe_fwd_entries_get_reply
134 vl_api_gpe_fwd_entry_t entries[count];
137 define gpe_fwd_entry_path_dump
144 manual_endian manual_print define gpe_fwd_entry_path_details
147 vl_api_gpe_locator_t lcl_loc;
148 vl_api_gpe_locator_t rmt_loc;
151 /** \brief Set GPE encapsulation mode
152 @param client_index - opaque cookie to identify the sender
153 @param context - sender context, to match reply w/ request
154 @param mode - LISP (value 0) or VXLAN (value 1)
156 autoreply define gpe_set_encap_mode
163 /** \brief get GPE encapsulation mode
164 @param client_index - opaque cookie to identify the sender
165 @param context - sender context, to match reply w/ request
166 @param mode - LISP (value 0) or VXLAN (value 1)
168 define gpe_get_encap_mode
174 /** \brief Reply for set_encap_mode
175 @param context - returned sender context, to match reply w/ request
176 @param retval - return code
177 @param encap_mode - GPE encapsulation mode
179 define gpe_get_encap_mode_reply
183 /* FIXME: gpe encap enum */
187 /** \brief Add native fwd rpath
188 @param context - returned sender context, to match reply w/ request
189 @param retval - return code
190 @param is_add - flag to indicate add or del
191 @param table_id - table id for route path
192 @param nh_sw_if_index - next-hop sw_if_index (~0 if not set)
193 @param is_ip4 - flag to indicate if nh is ip4
194 @param nh_addr - next hop ip address
196 autoreply define gpe_add_del_native_fwd_rpath
200 bool is_add [default=true];
202 vl_api_interface_index_t nh_sw_if_index;
203 vl_api_address_t nh_addr;
206 /** \brief get GPE native fwd rpath
207 @param client_index - opaque cookie to identify the sender
208 @param context - sender context, to match reply w/ request
210 define gpe_native_fwd_rpaths_get
217 /** \brief Reply for get native fwd rpath
218 @param context - returned sender context, to match reply w/ request
219 @param retval - return code
220 @param table_id - table id for route path
221 @param nh_sw_if_index - next-hop sw_if_index (~0 if not set)
222 @param nh_addr - next hop address
224 typedef gpe_native_fwd_rpath
227 vl_api_interface_index_t nh_sw_if_index;
228 vl_api_address_t nh_addr;
231 manual_print manual_endian define gpe_native_fwd_rpaths_get_reply
236 vl_api_gpe_native_fwd_rpath_t entries[count];
241 * eval: (c-set-style "gnu")