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 autoreply manual_print manual_endian define gpe_add_del_fwd_entry
60 vl_api_gpe_locator_t locs[loc_num];
63 /** \brief enable or disable gpe protocol
64 @param client_index - opaque cookie to identify the sender
65 @param context - sender context, to match reply w/ request
66 @param is_en - enable protocol if non-zero, else disable
68 autoreply define gpe_enable_disable
75 /** \brief add or delete gpe_iface
76 @param client_index - opaque cookie to identify the sender
77 @param context - sender context, to match reply w/ request
78 @param is_add - add address if non-zero, else delete
80 autoreply define gpe_add_del_iface
90 define gpe_fwd_entry_vnis_get
96 manual_print manual_endian define gpe_fwd_entry_vnis_get_reply
104 define gpe_fwd_entries_get
111 typeonly manual_print manual_endian define gpe_fwd_entry
124 manual_print manual_endian define gpe_fwd_entries_get_reply
129 vl_api_gpe_fwd_entry_t entries[count];
132 define gpe_fwd_entry_path_dump
139 manual_endian manual_print define gpe_fwd_entry_path_details
143 vl_api_gpe_locator_t lcl_loc;
144 vl_api_gpe_locator_t rmt_loc;
147 /** \brief Set GPE encapsulation mode
148 @param client_index - opaque cookie to identify the sender
149 @param context - sender context, to match reply w/ request
150 @param mode - LISP (value 0) or VXLAN (value 1)
152 autoreply define gpe_set_encap_mode
159 /** \brief get GPE encapsulation mode
160 @param client_index - opaque cookie to identify the sender
161 @param context - sender context, to match reply w/ request
162 @param mode - LISP (value 0) or VXLAN (value 1)
164 define gpe_get_encap_mode
170 /** \brief Reply for set_encap_mode
171 @param context - returned sender context, to match reply w/ request
172 @param retval - return code
173 @param encap_mode - GPE encapsulation mode
175 define gpe_get_encap_mode_reply
184 * eval: (c-set-style "gnu")