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 add or delete locator_set
17 @param client_index - opaque cookie to identify the sender
18 @param context - sender context, to match reply w/ request
19 @param is_add - add address if non-zero, else delete
20 @param locator_set_name - locator name
21 @param locator_num - number of locators
22 @param locators - LISP locator records
23 Structure of one locator record is as follows:
31 define lisp_add_del_locator_set
36 u8 locator_set_name[64];
41 /** \brief Reply for locator_set add/del
42 @param context - returned sender context, to match reply w/ request
43 @param retval - return code
44 @param ls_index - locator set index
46 define lisp_add_del_locator_set_reply
53 /** \brief add or delete locator for locator_set
54 @param client_index - opaque cookie to identify the sender
55 @param context - sender context, to match reply w/ request
56 @param is_add - add address if non-zero, else delete
57 @param locator_set_name - name of locator_set to add/del locator
58 @param sw_if_index - index of the interface
59 @param priority - priority of the lisp locator
60 @param weight - weight of the lisp locator
62 define lisp_add_del_locator
67 u8 locator_set_name[64];
73 /** \brief Reply for locator add/del
74 @param context - returned sender context, to match reply w/ request
75 @param retval - return code
77 define lisp_add_del_locator_reply
83 /** \brief add or delete lisp eid-table
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
91 @param eid - EID can be ip4, ip6 or mac
92 @param prefix_len - prefix len
93 @param locator_set_name - name of locator_set to add/del eid-table
94 @param vni - virtual network instance
99 @param key - secret key
101 define lisp_add_del_local_eid
109 u8 locator_set_name[64];
115 /** \brief Reply for local_eid add/del
116 @param context - returned sender context, to match reply w/ request
117 @param retval - return code
119 define lisp_add_del_local_eid_reply
125 /** \brief Add/delete map server
126 @param client_index - opaque cookie to identify the sender
127 @param context - sender context, to match reply w/ request
128 @param is_add - add address if non-zero; delete otherwise
129 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
130 @param ip_address - map server IP address
132 define lisp_add_del_map_server
141 /** \brief Reply for lisp_add_del_map_server
142 @param context - returned sender context, to match reply w/ request
143 @param retval - return code
145 define lisp_add_del_map_server_reply
151 /** \brief add or delete map-resolver
152 @param client_index - opaque cookie to identify the sender
153 @param context - sender context, to match reply w/ request
154 @param is_add - add address if non-zero, else delete
155 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
156 @param ip_address - array of address bytes
158 define lisp_add_del_map_resolver
167 /** \brief Reply for map_resolver add/del
168 @param context - returned sender context, to match reply w/ request
169 @param retval - return code
171 define lisp_add_del_map_resolver_reply
177 /** \brief enable or disable LISP feature
178 @param client_index - opaque cookie to identify the sender
179 @param context - sender context, to match reply w/ request
180 @param is_en - enable protocol if non-zero, else disable
182 define lisp_enable_disable
189 /** \brief Reply for gpe enable/disable
190 @param context - returned sender context, to match reply w/ request
191 @param retval - return code
193 define lisp_enable_disable_reply
199 /** \brief configure or disable LISP PITR node
200 @param client_index - opaque cookie to identify the sender
201 @param context - sender context, to match reply w/ request
202 @param ls_name - locator set name
203 @param is_add - add locator set if non-zero, else disable pitr
205 define lisp_pitr_set_locator_set
213 /** \brief Reply for lisp_pitr_set_locator_set
214 @param context - returned sender context, to match reply w/ request
215 @param retval - return code
217 define lisp_pitr_set_locator_set_reply
223 /** \brief Get state of LISP RLOC probing
224 @param client_index - opaque cookie to identify the sender
225 @param context - sender context, to match reply w/ request
227 define show_lisp_rloc_probe_state
233 /** \brief Reply for show_lisp_rloc_probe_state
234 @param context - returned sender context, to match reply w/ request
235 @param retval - return code
236 @param is_enabled - state of RLOC probing
238 define show_lisp_rloc_probe_state_reply
245 /** \brief enable/disable LISP RLOC probing
246 @param client_index - opaque cookie to identify the sender
247 @param context - sender context, to match reply w/ request
248 @param is_enable - enable if non-zero; disable otherwise
250 define lisp_rloc_probe_enable_disable
257 /** \brief Reply for lisp_rloc_probe_enable_disable
258 @param context - returned sender context, to match reply w/ request
259 @param retval - return code
261 define lisp_rloc_probe_enable_disable_reply
267 /** \brief enable/disable LISP map-register
268 @param client_index - opaque cookie to identify the sender
269 @param context - sender context, to match reply w/ request
270 @param is_enable - enable if non-zero; disable otherwise
272 define lisp_map_register_enable_disable
279 /** \brief Reply for lisp_map_register_enable_disable
280 @param context - returned sender context, to match reply w/ request
281 @param retval - return code
283 define lisp_map_register_enable_disable_reply
289 /** \brief Get state of LISP map-register
290 @param client_index - opaque cookie to identify the sender
291 @param context - sender context, to match reply w/ request
293 define show_lisp_map_register_state
299 /** \brief Reply for show_lisp_map_register_state
300 @param context - returned sender context, to match reply w/ request
301 @param retval - return code
303 define show_lisp_map_register_state_reply
310 /** \brief set LISP map-request mode. Based on configuration VPP will send
311 src/dest or just normal destination map requests.
312 @param client_index - opaque cookie to identify the sender
313 @param context - sender context, to match reply w/ request
314 @param mode - new map-request mode. Supported values are:
316 1 - source/destaination
318 define lisp_map_request_mode
325 /** \brief Reply for lisp_map_request_mode
326 @param context - returned sender context, to match reply w/ request
327 @param retval - return code
329 define lisp_map_request_mode_reply
335 /** \brief Request for LISP map-request mode
336 @param client_index - opaque cookie to identify the sender
337 @param context - sender context, to match reply w/ request
339 define show_lisp_map_request_mode
345 /** \brief Reply for show_lisp_map_request_mode
346 @param context - returned sender context, to match reply w/ request
347 @param retval - return code
348 @param mode - map-request mode
350 define show_lisp_map_request_mode_reply
357 /** \brief add or delete remote static mapping
358 @param client_index - opaque cookie to identify the sender
359 @param context - sender context, to match reply w/ request
360 @param is_add - add address if non-zero, else delete
361 @param is_src_dst - flag indicating src/dst based routing policy
362 @param del_all - if set, delete all remote mappings
363 @param vni - virtual network instance
364 @param action - negative map-reply action
369 @param deid - dst EID
370 @param seid - src EID, valid only if is_src_dst is enabled
371 @param rloc_num - number of remote locators
372 @param rlocs - remote locator records
373 Structure of remote locator:
382 define lisp_add_del_remote_mapping
400 /** \brief Reply for lisp_add_del_remote_mapping
401 @param context - returned sender context, to match reply w/ request
402 @param retval - return code
404 define lisp_add_del_remote_mapping_reply
410 /** \brief add or delete LISP adjacency adjacency
411 @param client_index - opaque cookie to identify the sender
412 @param context - sender context, to match reply w/ request
413 @param is_add - add address if non-zero, else delete
414 @param vni - virtual network instance
419 @param reid - remote EID
420 @param leid - local EID
422 define lisp_add_del_adjacency
435 /** \brief Reply for lisp_add_del_adjacency
436 @param context - returned sender context, to match reply w/ request
437 @param retval - return code
439 define lisp_add_del_adjacency_reply
445 /** \brief add or delete map request itr rlocs
446 @param client_index - opaque cookie to identify the sender
447 @param context - sender context, to match reply w/ request
448 @param is_add - add address if non-zero, else delete
449 @param locator_set_name - locator set name
451 define lisp_add_del_map_request_itr_rlocs
456 u8 locator_set_name[64];
459 /** \brief Reply for lisp_add_del_map_request_itr_rlocs
460 @param context - returned sender context, to match reply w/ request
461 @param retval - return code
464 define lisp_add_del_map_request_itr_rlocs_reply
470 /** \brief map/unmap vni/bd_index to vrf
471 @param client_index - opaque cookie to identify the sender
472 @param context - sender context, to match reply w/ request
473 @param is_add - add or delete mapping
474 @param dp_table - virtual network id/bridge domain index
477 define lisp_eid_table_add_del_map
487 /** \brief Reply for lisp_eid_table_add_del_map
488 @param context - returned sender context, to match reply w/ request
489 @param retval - return code
491 define lisp_eid_table_add_del_map_reply
497 /** \brief Request for map lisp locator status
498 @param client_index - opaque cookie to identify the sender
499 @param context - sender context, to match reply w/ request
500 @param locator_set_index - index of locator_set
501 @param ls_name - locator set name
502 @param is_index_set - flag indicating whether ls_name or ls_index is set
504 define lisp_locator_dump
513 /** \brief LISP locator_set status
514 @param local - if is set, then locator is local
515 @param locator_set_name - name of the locator_set
516 @param sw_if_index - sw_if_index of the locator
517 @param priority - locator priority
518 @param weight - locator weight
520 define lisp_locator_details
531 /** \brief LISP locator_set status
532 @param context - sender context, to match reply w/ request
533 @param ls_index - locator set index
534 @param ls_name - name of the locator set
536 define lisp_locator_set_details
543 /** \brief Request for locator_set summary status
544 @param client_index - opaque cookie to identify the sender
545 @param context - sender context, to match reply w/ request
546 @param filter - filter type
549 1: local locator sets
550 2: remote locator sets
552 define lisp_locator_set_dump
559 /** \brief Dump lisp eid-table
560 @param client_index - opaque cookie to identify the sender
561 @param context - sender context, to match reply w/ request
562 @param locator_set_index - index of locator_set, if ~0 then the mapping
564 @param action - negative map request action
565 @param is_local - local if non-zero, else remote
570 @param is_src_dst - EID is type of source/destination
571 @param eid - EID can be ip4, ip6 or mac
572 @param eid_prefix_len - prefix length
573 @param seid - source EID can be ip4, ip6 or mac
574 @param seid_prefix_len - source prefix length
575 @param vni - virtual network instance
576 @param ttl - time to live
577 @param authoritative - authoritative
582 @param key - secret key
585 define lisp_eid_table_details
588 u32 locator_set_index;
604 /** \brief Request for eid table summary status
605 @param client_index - opaque cookie to identify the sender
606 @param context - sender context, to match reply w/ request
607 @param eid_set - if non-zero request info about specific mapping
608 @param vni - virtual network instance; valid only if eid_set != 0
609 @param prefix_length - prefix length if EID is IP address;
610 valid only if eid_set != 0
611 @param eid_type - EID type; valid only if eid_set != 0
615 2: EID is ethernet address
616 @param eid - endpoint identifier
617 @param filter - filter type;
623 define lisp_eid_table_dump
635 /** \brief LISP adjacency
640 @param reid - remote EID
641 @param leid - local EID
642 @param reid_prefix_len - remote EID IP prefix length
643 @param leid_prefix_len - local EID IP prefix length
645 typeonly manual_print manual_endian define lisp_adjacency
654 /** \brief LISP adjacency reply
655 @param count - number of adjacencies
656 @param adjacencies - array of adjacencies
658 manual_endian manual_print define lisp_adjacencies_get_reply
663 vl_api_lisp_adjacency_t adjacencies[count];
666 /** \brief Request for LISP adjacencies
667 @param client_index - opaque cookie to identify the sender
668 @param context - sender context, to match reply w/ request
669 @param vni - filter adjacencies by VNI
671 define lisp_adjacencies_get
678 /** \brief Shows relationship between vni and vrf/bd
679 @param dp_table - VRF index or bridge domain index
680 @param vni - vitual network instance
682 define lisp_eid_table_map_details
689 /** \brief Request for lisp_eid_table_map_details
690 @param client_index - opaque cookie to identify the sender
691 @param context - sender context, to match reply w/ request
692 @param is_l2 - if set dump vni/bd mappings else vni/vrf
694 define lisp_eid_table_map_dump
701 /** \brief Dumps all VNIs used in mappings
702 @param client_index - opaque cookie to identify the sender
703 @param context - sender context, to match reply w/ request
705 define lisp_eid_table_vni_dump
711 /** \brief reply to lisp_eid_table_vni_dump
712 @param client_index - opaque cookie to identify the sender
713 @param context - sender context, to match reply w/ request
714 @param vni - virtual network instance
716 define lisp_eid_table_vni_details
723 /** \brief LISP map resolver status
724 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
725 @param ip_address - array of address bytes
727 define lisp_map_resolver_details
734 /** \brief Request for map resolver summary status
735 @param client_index - opaque cookie to identify the sender
736 @param context - sender context, to match reply w/ request
738 define lisp_map_resolver_dump
744 /** \brief LISP map server details
745 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
746 @param ip_address - array of address bytes
748 define lisp_map_server_details
755 /** \brief Request for map server summary status
756 @param client_index - opaque cookie to identify the sender
757 @param context - sender context, to match reply w/ request
759 define lisp_map_server_dump
765 /** \brief Request for lisp-gpe protocol status
766 @param client_index - opaque cookie to identify the sender
767 @param context - sender context, to match reply w/ request
769 define show_lisp_status
775 /** \brief Status of lisp, enable or disable
776 @param context - sender context, to match reply w/ request
777 @param feature_status - lisp enable if non-zero, else disable
778 @param gpe_status - lisp enable if non-zero, else disable
780 define show_lisp_status_reply
788 /** \brief Get LISP map request itr rlocs status
789 @param context - sender context, to match reply w/ request
790 @param locator_set_name - name of the locator_set
792 define lisp_get_map_request_itr_rlocs
798 /** \brief Request for map request itr rlocs summary status
800 define lisp_get_map_request_itr_rlocs_reply
804 u8 locator_set_name[64];
807 /** \brief Request for lisp pitr status
808 @param client_index - opaque cookie to identify the sender
809 @param context - sender context, to match reply w/ request
811 define show_lisp_pitr
817 /** \brief Status of lisp pitr, enable or disable
818 @param context - sender context, to match reply w/ request
819 @param status - lisp pitr enable if non-zero, else disable
820 @param locator_set_name - name of the locator_set
822 define show_lisp_pitr_reply
827 u8 locator_set_name[64];
832 * eval: (c-set-style "gnu")