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 configure or disable use of PETR
224 @param client_index - opaque cookie to identify the sender
225 @param context - sender context, to match reply w/ request
226 @param is_ip4 - Address is IPv4 if set and IPv6 otherwise
227 @param address - PETR IP address
228 @param is_add - add locator set if non-zero, else disable pitr
239 /** \brief Reply for lisp_pitr_set_locator_set
240 @param context - returned sender context, to match reply w/ request
241 @param retval - return code
243 define lisp_use_petr_reply
249 /** \brief Request for LISP PETR status
250 @param client_index - opaque cookie to identify the sender
251 @param context - sender context, to match reply w/ request
253 define show_lisp_use_petr
259 /** \brief LISP PETR status, enable or disable
260 @param context - sender context, to match reply w/ request
261 @param status - LISP PETR enable if non-zero, else disable
262 @param is_ip4 - Address is IPv4 if non-zero, else IPv6
263 @param address - PETR IP address
265 define show_lisp_use_petr_reply
274 /** \brief Get state of LISP RLOC probing
275 @param client_index - opaque cookie to identify the sender
276 @param context - sender context, to match reply w/ request
278 define show_lisp_rloc_probe_state
284 /** \brief Reply for show_lisp_rloc_probe_state
285 @param context - returned sender context, to match reply w/ request
286 @param retval - return code
287 @param is_enabled - state of RLOC probing
289 define show_lisp_rloc_probe_state_reply
296 /** \brief enable/disable LISP RLOC probing
297 @param client_index - opaque cookie to identify the sender
298 @param context - sender context, to match reply w/ request
299 @param is_enable - enable if non-zero; disable otherwise
301 define lisp_rloc_probe_enable_disable
308 /** \brief Reply for lisp_rloc_probe_enable_disable
309 @param context - returned sender context, to match reply w/ request
310 @param retval - return code
312 define lisp_rloc_probe_enable_disable_reply
318 /** \brief enable/disable LISP map-register
319 @param client_index - opaque cookie to identify the sender
320 @param context - sender context, to match reply w/ request
321 @param is_enable - enable if non-zero; disable otherwise
323 define lisp_map_register_enable_disable
330 /** \brief Reply for lisp_map_register_enable_disable
331 @param context - returned sender context, to match reply w/ request
332 @param retval - return code
334 define lisp_map_register_enable_disable_reply
340 /** \brief Get state of LISP map-register
341 @param client_index - opaque cookie to identify the sender
342 @param context - sender context, to match reply w/ request
344 define show_lisp_map_register_state
350 /** \brief Reply for show_lisp_map_register_state
351 @param context - returned sender context, to match reply w/ request
352 @param retval - return code
354 define show_lisp_map_register_state_reply
361 /** \brief set LISP map-request mode. Based on configuration VPP will send
362 src/dest or just normal destination map requests.
363 @param client_index - opaque cookie to identify the sender
364 @param context - sender context, to match reply w/ request
365 @param mode - new map-request mode. Supported values are:
367 1 - source/destaination
369 define lisp_map_request_mode
376 /** \brief Reply for lisp_map_request_mode
377 @param context - returned sender context, to match reply w/ request
378 @param retval - return code
380 define lisp_map_request_mode_reply
386 /** \brief Request for LISP map-request mode
387 @param client_index - opaque cookie to identify the sender
388 @param context - sender context, to match reply w/ request
390 define show_lisp_map_request_mode
396 /** \brief Reply for show_lisp_map_request_mode
397 @param context - returned sender context, to match reply w/ request
398 @param retval - return code
399 @param mode - map-request mode
401 define show_lisp_map_request_mode_reply
408 /** \brief add or delete remote static mapping
409 @param client_index - opaque cookie to identify the sender
410 @param context - sender context, to match reply w/ request
411 @param is_add - add address if non-zero, else delete
412 @param is_src_dst - flag indicating src/dst based routing policy
413 @param del_all - if set, delete all remote mappings
414 @param vni - virtual network instance
415 @param action - negative map-reply action
420 @param deid - dst EID
421 @param seid - src EID, valid only if is_src_dst is enabled
422 @param rloc_num - number of remote locators
423 @param rlocs - remote locator records
424 Structure of remote locator:
433 define lisp_add_del_remote_mapping
451 /** \brief Reply for lisp_add_del_remote_mapping
452 @param context - returned sender context, to match reply w/ request
453 @param retval - return code
455 define lisp_add_del_remote_mapping_reply
461 /** \brief add or delete LISP adjacency adjacency
462 @param client_index - opaque cookie to identify the sender
463 @param context - sender context, to match reply w/ request
464 @param is_add - add address if non-zero, else delete
465 @param vni - virtual network instance
470 @param reid - remote EID
471 @param leid - local EID
473 define lisp_add_del_adjacency
486 /** \brief Reply for lisp_add_del_adjacency
487 @param context - returned sender context, to match reply w/ request
488 @param retval - return code
490 define lisp_add_del_adjacency_reply
496 /** \brief add or delete map request itr rlocs
497 @param client_index - opaque cookie to identify the sender
498 @param context - sender context, to match reply w/ request
499 @param is_add - add address if non-zero, else delete
500 @param locator_set_name - locator set name
502 define lisp_add_del_map_request_itr_rlocs
507 u8 locator_set_name[64];
510 /** \brief Reply for lisp_add_del_map_request_itr_rlocs
511 @param context - returned sender context, to match reply w/ request
512 @param retval - return code
515 define lisp_add_del_map_request_itr_rlocs_reply
521 /** \brief map/unmap vni/bd_index to vrf
522 @param client_index - opaque cookie to identify the sender
523 @param context - sender context, to match reply w/ request
524 @param is_add - add or delete mapping
525 @param dp_table - virtual network id/bridge domain index
528 define lisp_eid_table_add_del_map
538 /** \brief Reply for lisp_eid_table_add_del_map
539 @param context - returned sender context, to match reply w/ request
540 @param retval - return code
542 define lisp_eid_table_add_del_map_reply
548 /** \brief Request for map lisp locator status
549 @param client_index - opaque cookie to identify the sender
550 @param context - sender context, to match reply w/ request
551 @param locator_set_index - index of locator_set
552 @param ls_name - locator set name
553 @param is_index_set - flag indicating whether ls_name or ls_index is set
555 define lisp_locator_dump
564 /** \brief LISP locator_set status
565 @param local - if is set, then locator is local
566 @param locator_set_name - name of the locator_set
567 @param sw_if_index - sw_if_index of the locator
568 @param priority - locator priority
569 @param weight - locator weight
571 define lisp_locator_details
582 /** \brief LISP locator_set status
583 @param context - sender context, to match reply w/ request
584 @param ls_index - locator set index
585 @param ls_name - name of the locator set
587 define lisp_locator_set_details
594 /** \brief Request for locator_set summary status
595 @param client_index - opaque cookie to identify the sender
596 @param context - sender context, to match reply w/ request
597 @param filter - filter type
600 1: local locator sets
601 2: remote locator sets
603 define lisp_locator_set_dump
610 /** \brief Dump lisp eid-table
611 @param client_index - opaque cookie to identify the sender
612 @param context - sender context, to match reply w/ request
613 @param locator_set_index - index of locator_set, if ~0 then the mapping
615 @param action - negative map request action
616 @param is_local - local if non-zero, else remote
621 @param is_src_dst - EID is type of source/destination
622 @param eid - EID can be ip4, ip6 or mac
623 @param eid_prefix_len - prefix length
624 @param seid - source EID can be ip4, ip6 or mac
625 @param seid_prefix_len - source prefix length
626 @param vni - virtual network instance
627 @param ttl - time to live
628 @param authoritative - authoritative
633 @param key - secret key
636 define lisp_eid_table_details
639 u32 locator_set_index;
655 /** \brief Request for eid table summary status
656 @param client_index - opaque cookie to identify the sender
657 @param context - sender context, to match reply w/ request
658 @param eid_set - if non-zero request info about specific mapping
659 @param vni - virtual network instance; valid only if eid_set != 0
660 @param prefix_length - prefix length if EID is IP address;
661 valid only if eid_set != 0
662 @param eid_type - EID type; valid only if eid_set != 0
666 2: EID is ethernet address
667 @param eid - endpoint identifier
668 @param filter - filter type;
674 define lisp_eid_table_dump
686 /** \brief LISP adjacency
691 @param reid - remote EID
692 @param leid - local EID
693 @param reid_prefix_len - remote EID IP prefix length
694 @param leid_prefix_len - local EID IP prefix length
696 typeonly manual_print manual_endian define lisp_adjacency
705 /** \brief LISP adjacency reply
706 @param count - number of adjacencies
707 @param adjacencies - array of adjacencies
709 manual_endian manual_print define lisp_adjacencies_get_reply
714 vl_api_lisp_adjacency_t adjacencies[count];
717 /** \brief Request for LISP adjacencies
718 @param client_index - opaque cookie to identify the sender
719 @param context - sender context, to match reply w/ request
720 @param vni - filter adjacencies by VNI
722 define lisp_adjacencies_get
729 /** \brief Shows relationship between vni and vrf/bd
730 @param dp_table - VRF index or bridge domain index
731 @param vni - vitual network instance
733 define lisp_eid_table_map_details
740 /** \brief Request for lisp_eid_table_map_details
741 @param client_index - opaque cookie to identify the sender
742 @param context - sender context, to match reply w/ request
743 @param is_l2 - if set dump vni/bd mappings else vni/vrf
745 define lisp_eid_table_map_dump
752 /** \brief Dumps all VNIs used in mappings
753 @param client_index - opaque cookie to identify the sender
754 @param context - sender context, to match reply w/ request
756 define lisp_eid_table_vni_dump
762 /** \brief reply to lisp_eid_table_vni_dump
763 @param client_index - opaque cookie to identify the sender
764 @param context - sender context, to match reply w/ request
765 @param vni - virtual network instance
767 define lisp_eid_table_vni_details
774 /** \brief LISP map resolver status
775 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
776 @param ip_address - array of address bytes
778 define lisp_map_resolver_details
785 /** \brief Request for map resolver summary status
786 @param client_index - opaque cookie to identify the sender
787 @param context - sender context, to match reply w/ request
789 define lisp_map_resolver_dump
795 /** \brief LISP map server details
796 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
797 @param ip_address - array of address bytes
799 define lisp_map_server_details
806 /** \brief Request for map server summary status
807 @param client_index - opaque cookie to identify the sender
808 @param context - sender context, to match reply w/ request
810 define lisp_map_server_dump
816 /** \brief Request for lisp-gpe protocol status
817 @param client_index - opaque cookie to identify the sender
818 @param context - sender context, to match reply w/ request
820 define show_lisp_status
826 /** \brief Status of lisp, enable or disable
827 @param context - sender context, to match reply w/ request
828 @param feature_status - lisp enable if non-zero, else disable
829 @param gpe_status - lisp enable if non-zero, else disable
831 define show_lisp_status_reply
839 /** \brief Get LISP map request itr rlocs status
840 @param context - sender context, to match reply w/ request
841 @param locator_set_name - name of the locator_set
843 define lisp_get_map_request_itr_rlocs
849 /** \brief Request for map request itr rlocs summary status
851 define lisp_get_map_request_itr_rlocs_reply
855 u8 locator_set_name[64];
858 /** \brief Request for lisp pitr status
859 @param client_index - opaque cookie to identify the sender
860 @param context - sender context, to match reply w/ request
862 define show_lisp_pitr
868 /** \brief Status of lisp pitr, enable or disable
869 @param context - sender context, to match reply w/ request
870 @param status - lisp pitr enable if non-zero, else disable
871 @param locator_set_name - name of the locator_set
873 define show_lisp_pitr_reply
878 u8 locator_set_name[64];
883 * eval: (c-set-style "gnu")