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-gpe protocol
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_gpe_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_gpe_enable_disable_reply
199 /** \brief enable or disable LISP feature
200 @param client_index - opaque cookie to identify the sender
201 @param context - sender context, to match reply w/ request
202 @param is_en - enable protocol if non-zero, else disable
204 define lisp_enable_disable
211 /** \brief Reply for gpe enable/disable
212 @param context - returned sender context, to match reply w/ request
213 @param retval - return code
215 define lisp_enable_disable_reply
221 /** \brief configure or disable LISP PITR node
222 @param client_index - opaque cookie to identify the sender
223 @param context - sender context, to match reply w/ request
224 @param ls_name - locator set name
225 @param is_add - add locator set if non-zero, else disable pitr
227 define lisp_pitr_set_locator_set
235 /** \brief Reply for lisp_pitr_set_locator_set
236 @param context - returned sender context, to match reply w/ request
237 @param retval - return code
239 define lisp_pitr_set_locator_set_reply
245 /** \brief Get state of LISP RLOC probing
246 @param client_index - opaque cookie to identify the sender
247 @param context - sender context, to match reply w/ request
249 define show_lisp_rloc_probe_state
255 /** \brief Reply for show_lisp_rloc_probe_state
256 @param context - returned sender context, to match reply w/ request
257 @param retval - return code
258 @param is_enabled - state of RLOC probing
260 define show_lisp_rloc_probe_state_reply
267 /** \brief enable/disable LISP RLOC probing
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_rloc_probe_enable_disable
279 /** \brief Reply for lisp_rloc_probe_enable_disable
280 @param context - returned sender context, to match reply w/ request
281 @param retval - return code
283 define lisp_rloc_probe_enable_disable_reply
289 /** \brief enable/disable LISP map-register
290 @param client_index - opaque cookie to identify the sender
291 @param context - sender context, to match reply w/ request
292 @param is_enable - enable if non-zero; disable otherwise
294 define lisp_map_register_enable_disable
301 /** \brief Reply for lisp_map_register_enable_disable
302 @param context - returned sender context, to match reply w/ request
303 @param retval - return code
305 define lisp_map_register_enable_disable_reply
311 /** \brief Get state of LISP map-register
312 @param client_index - opaque cookie to identify the sender
313 @param context - sender context, to match reply w/ request
315 define show_lisp_map_register_state
321 /** \brief Reply for show_lisp_map_register_state
322 @param context - returned sender context, to match reply w/ request
323 @param retval - return code
325 define show_lisp_map_register_state_reply
332 /** \brief set LISP map-request mode. Based on configuration VPP will send
333 src/dest or just normal destination map requests.
334 @param client_index - opaque cookie to identify the sender
335 @param context - sender context, to match reply w/ request
336 @param mode - new map-request mode. Supported values are:
338 1 - source/destaination
340 define lisp_map_request_mode
347 /** \brief Reply for lisp_map_request_mode
348 @param context - returned sender context, to match reply w/ request
349 @param retval - return code
351 define lisp_map_request_mode_reply
357 /** \brief Request for LISP map-request mode
358 @param client_index - opaque cookie to identify the sender
359 @param context - sender context, to match reply w/ request
361 define show_lisp_map_request_mode
367 /** \brief Reply for show_lisp_map_request_mode
368 @param context - returned sender context, to match reply w/ request
369 @param retval - return code
370 @param mode - map-request mode
372 define show_lisp_map_request_mode_reply
379 /** \brief add or delete remote static mapping
380 @param client_index - opaque cookie to identify the sender
381 @param context - sender context, to match reply w/ request
382 @param is_add - add address if non-zero, else delete
383 @param is_src_dst - flag indicating src/dst based routing policy
384 @param del_all - if set, delete all remote mappings
385 @param vni - virtual network instance
386 @param action - negative map-reply action
391 @param deid - dst EID
392 @param seid - src EID, valid only if is_src_dst is enabled
393 @param rloc_num - number of remote locators
394 @param rlocs - remote locator records
395 Structure of remote locator:
404 define lisp_add_del_remote_mapping
422 /** \brief Reply for lisp_add_del_remote_mapping
423 @param context - returned sender context, to match reply w/ request
424 @param retval - return code
426 define lisp_add_del_remote_mapping_reply
432 /** \brief add or delete LISP adjacency adjacency
433 @param client_index - opaque cookie to identify the sender
434 @param context - sender context, to match reply w/ request
435 @param is_add - add address if non-zero, else delete
436 @param vni - virtual network instance
441 @param reid - remote EID
442 @param leid - local EID
444 define lisp_add_del_adjacency
457 /** \brief Reply for lisp_add_del_adjacency
458 @param context - returned sender context, to match reply w/ request
459 @param retval - return code
461 define lisp_add_del_adjacency_reply
467 /** \brief add or delete map request itr rlocs
468 @param client_index - opaque cookie to identify the sender
469 @param context - sender context, to match reply w/ request
470 @param is_add - add address if non-zero, else delete
471 @param locator_set_name - locator set name
473 define lisp_add_del_map_request_itr_rlocs
478 u8 locator_set_name[64];
481 /** \brief Reply for lisp_add_del_map_request_itr_rlocs
482 @param context - returned sender context, to match reply w/ request
483 @param retval - return code
486 define lisp_add_del_map_request_itr_rlocs_reply
492 /** \brief map/unmap vni/bd_index to vrf
493 @param client_index - opaque cookie to identify the sender
494 @param context - sender context, to match reply w/ request
495 @param is_add - add or delete mapping
496 @param dp_table - virtual network id/bridge domain index
499 define lisp_eid_table_add_del_map
509 /** \brief Reply for lisp_eid_table_add_del_map
510 @param context - returned sender context, to match reply w/ request
511 @param retval - return code
513 define lisp_eid_table_add_del_map_reply
519 /** \brief Request for map lisp locator status
520 @param client_index - opaque cookie to identify the sender
521 @param context - sender context, to match reply w/ request
522 @param locator_set_index - index of locator_set
523 @param ls_name - locator set name
524 @param is_index_set - flag indicating whether ls_name or ls_index is set
526 define lisp_locator_dump
535 /** \brief LISP locator_set status
536 @param local - if is set, then locator is local
537 @param locator_set_name - name of the locator_set
538 @param sw_if_index - sw_if_index of the locator
539 @param priority - locator priority
540 @param weight - locator weight
542 define lisp_locator_details
553 /** \brief LISP locator_set status
554 @param context - sender context, to match reply w/ request
555 @param ls_index - locator set index
556 @param ls_name - name of the locator set
558 define lisp_locator_set_details
565 /** \brief Request for locator_set summary status
566 @param client_index - opaque cookie to identify the sender
567 @param context - sender context, to match reply w/ request
568 @param filter - filter type
571 1: local locator sets
572 2: remote locator sets
574 define lisp_locator_set_dump
581 /** \brief Dump lisp eid-table
582 @param client_index - opaque cookie to identify the sender
583 @param context - sender context, to match reply w/ request
584 @param locator_set_index - index of locator_set, if ~0 then the mapping
586 @param action - negative map request action
587 @param is_local - local if non-zero, else remote
592 @param is_src_dst - EID is type of source/destination
593 @param eid - EID can be ip4, ip6 or mac
594 @param eid_prefix_len - prefix length
595 @param seid - source EID can be ip4, ip6 or mac
596 @param seid_prefix_len - source prefix length
597 @param vni - virtual network instance
598 @param ttl - time to live
599 @param authoritative - authoritative
604 @param key - secret key
607 define lisp_eid_table_details
610 u32 locator_set_index;
626 /** \brief Request for eid table summary status
627 @param client_index - opaque cookie to identify the sender
628 @param context - sender context, to match reply w/ request
629 @param eid_set - if non-zero request info about specific mapping
630 @param vni - virtual network instance; valid only if eid_set != 0
631 @param prefix_length - prefix length if EID is IP address;
632 valid only if eid_set != 0
633 @param eid_type - EID type; valid only if eid_set != 0
637 2: EID is ethernet address
638 @param eid - endpoint identifier
639 @param filter - filter type;
645 define lisp_eid_table_dump
657 /** \brief LISP adjacency
662 @param reid - remote EID
663 @param leid - local EID
664 @param reid_prefix_len - remote EID IP prefix length
665 @param leid_prefix_len - local EID IP prefix length
667 typeonly manual_print manual_endian define lisp_adjacency
676 /** \brief LISP adjacency reply
677 @param count - number of adjacencies
678 @param adjacencies - array of adjacencies
680 manual_endian manual_print define lisp_adjacencies_get_reply
685 vl_api_lisp_adjacency_t adjacencies[count];
688 /** \brief Request for LISP adjacencies
689 @param client_index - opaque cookie to identify the sender
690 @param context - sender context, to match reply w/ request
691 @param vni - filter adjacencies by VNI
693 define lisp_adjacencies_get
700 /** \brief Shows relationship between vni and vrf/bd
701 @param dp_table - VRF index or bridge domain index
702 @param vni - vitual network instance
704 define lisp_eid_table_map_details
711 /** \brief Request for lisp_eid_table_map_details
712 @param client_index - opaque cookie to identify the sender
713 @param context - sender context, to match reply w/ request
714 @param is_l2 - if set dump vni/bd mappings else vni/vrf
716 define lisp_eid_table_map_dump
723 /** \brief Dumps all VNIs used in mappings
724 @param client_index - opaque cookie to identify the sender
725 @param context - sender context, to match reply w/ request
727 define lisp_eid_table_vni_dump
733 /** \brief reply to lisp_eid_table_vni_dump
734 @param client_index - opaque cookie to identify the sender
735 @param context - sender context, to match reply w/ request
736 @param vni - virtual network instance
738 define lisp_eid_table_vni_details
745 /** \brief LISP map resolver status
746 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
747 @param ip_address - array of address bytes
749 define lisp_map_resolver_details
756 /** \brief Request for map resolver summary status
757 @param client_index - opaque cookie to identify the sender
758 @param context - sender context, to match reply w/ request
760 define lisp_map_resolver_dump
766 /** \brief LISP map server details
767 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
768 @param ip_address - array of address bytes
770 define lisp_map_server_details
777 /** \brief Request for map server summary status
778 @param client_index - opaque cookie to identify the sender
779 @param context - sender context, to match reply w/ request
781 define lisp_map_server_dump
787 /** \brief Request for lisp-gpe protocol status
788 @param client_index - opaque cookie to identify the sender
789 @param context - sender context, to match reply w/ request
791 define show_lisp_status
797 /** \brief Status of lisp, enable or disable
798 @param context - sender context, to match reply w/ request
799 @param feature_status - lisp enable if non-zero, else disable
800 @param gpe_status - lisp enable if non-zero, else disable
802 define show_lisp_status_reply
810 /** \brief Get LISP map request itr rlocs status
811 @param context - sender context, to match reply w/ request
812 @param locator_set_name - name of the locator_set
814 define lisp_get_map_request_itr_rlocs
820 /** \brief Request for map request itr rlocs summary status
822 define lisp_get_map_request_itr_rlocs_reply
826 u8 locator_set_name[64];
829 /** \brief Request for lisp pitr status
830 @param client_index - opaque cookie to identify the sender
831 @param context - sender context, to match reply w/ request
833 define show_lisp_pitr
839 /** \brief Status of lisp pitr, enable or disable
840 @param context - sender context, to match reply w/ request
841 @param status - lisp pitr enable if non-zero, else disable
842 @param locator_set_name - name of the locator_set
844 define show_lisp_pitr_reply
849 u8 locator_set_name[64];
854 * eval: (c-set-style "gnu")