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 /** \brief GPE locator structure
17 @param is_ip4 - whether addr is IPv4 or v6
18 @param weight - locator weight
19 @param addr - IPv4/6 address
21 typeonly manual_print manual_endian define gpe_locator
28 /** \brief add or delete GPE tunnel
29 @param client_index - opaque cookie to identify the sender
30 @param context - sender context, to match reply w/ request
31 @param is_add - add address if non-zero, else delete
36 @param rmt_eid - remote eid
37 @param lcl_eid - local eid
38 @param rmt_len - remote prefix len
39 @param lcl_len - local prefix len
40 @param vni - virtual network identifier
41 @param dp_table - vrf/bridge domain id
42 @param action - negative action when 0 locators configured
43 @param loc_num - number of locators
44 @param locs - array of remote locators
46 manual_print manual_endian define gpe_add_del_fwd_entry
60 vl_api_gpe_locator_t locs[loc_num];
63 define gpe_add_del_fwd_entry_reply
70 /** \brief enable or disable gpe protocol
71 @param client_index - opaque cookie to identify the sender
72 @param context - sender context, to match reply w/ request
73 @param is_en - enable protocol if non-zero, else disable
75 autoreply define gpe_enable_disable
82 /** \brief add or delete gpe_iface
83 @param client_index - opaque cookie to identify the sender
84 @param context - sender context, to match reply w/ request
85 @param is_add - add address if non-zero, else delete
87 autoreply define gpe_add_del_iface
97 define gpe_fwd_entry_vnis_get
103 manual_print manual_endian define gpe_fwd_entry_vnis_get_reply
111 define gpe_fwd_entries_get
118 typeonly manual_print manual_endian define gpe_fwd_entry
131 manual_print manual_endian define gpe_fwd_entries_get_reply
136 vl_api_gpe_fwd_entry_t entries[count];
139 define gpe_fwd_entry_path_dump
146 manual_endian manual_print define gpe_fwd_entry_path_details
150 vl_api_gpe_locator_t lcl_loc;
151 vl_api_gpe_locator_t rmt_loc;
154 /** \brief Set GPE encapsulation mode
155 @param client_index - opaque cookie to identify the sender
156 @param context - sender context, to match reply w/ request
157 @param mode - LISP (value 0) or VXLAN (value 1)
159 autoreply define gpe_set_encap_mode
166 /** \brief get GPE encapsulation mode
167 @param client_index - opaque cookie to identify the sender
168 @param context - sender context, to match reply w/ request
169 @param mode - LISP (value 0) or VXLAN (value 1)
171 define gpe_get_encap_mode
177 /** \brief Reply for set_encap_mode
178 @param context - returned sender context, to match reply w/ request
179 @param retval - return code
180 @param encap_mode - GPE encapsulation mode
182 define gpe_get_encap_mode_reply
189 /** \brief Add native fwd rpath
190 @param context - returned sender context, to match reply w/ request
191 @param retval - return code
192 @param is_add - flag to indicate add or del
193 @param table_id - table id for route path
194 @param nh_sw_if_index - next-hop sw_if_index (~0 if not set)
195 @param is_ip4 - flag to indicate if nh is ip4
196 @param nh_addr - next hop ip address
198 autoreply define gpe_add_del_native_fwd_rpath
209 /** \brief get GPE native fwd rpath
210 @param client_index - opaque cookie to identify the sender
211 @param context - sender context, to match reply w/ request
213 define gpe_native_fwd_rpaths_get
220 /** \brief Reply for get native fwd rpath
221 @param context - returned sender context, to match reply w/ request
222 @param retval - return code
223 @param table_id - table id for route path
224 @param nh_sw_if_index - next-hop sw_if_index (~0 if not set)
225 @param nh_addr - next hop address
227 typeonly manual_print manual_endian define gpe_native_fwd_rpath
237 manual_print manual_endian define gpe_native_fwd_rpaths_get_reply
242 vl_api_gpe_native_fwd_rpath_t entries[count];
247 * eval: (c-set-style "gnu")