lisp: API cleanup
[vpp.git] / src / vnet / lisp-cp / one.api
1 /*
2  * Copyright (c) 2015-2017 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:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
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.
14  */
15
16 option version = "2.0.0";
17
18 import "vnet/interface_types.api";
19 import "vnet/lisp-cp/lisp_types.api";
20
21 /** \brief add or delete locator_set
22     @param client_index - opaque cookie to identify the sender
23     @param context - sender context, to match reply w/ request
24     @param is_add - add address if non-zero, else delete
25     @param locator_set_name - locator name
26     @param locator_num - number of locators
27     @param locators - locator records
28 */
29 manual_endian manual_print define one_add_del_locator_set
30 {
31   u32 client_index;
32   u32 context;
33   bool is_add [default=true];
34   string locator_set_name[64];
35   u32 locator_num;
36   vl_api_local_locator_t locators[locator_num];
37 };
38
39 /** \brief Reply for locator_set add/del
40     @param context - returned sender context, to match reply w/ request
41     @param retval - return code
42     @param ls_index - locator set index
43 */
44 define one_add_del_locator_set_reply
45 {
46   u32 context;
47   i32 retval;
48   u32 ls_index;
49 };
50
51 /** \brief add or delete locator for locator set
52     @param client_index - opaque cookie to identify the sender
53     @param context - sender context, to match reply w/ request
54     @param is_add - add address if non-zero, else delete
55     @param locator_set_name - name of locator_set to add/del locator
56     @param sw_if_index - index of the interface
57     @param priority - priority of the locator
58     @param weight - weight of the locator
59 */
60 autoreply define one_add_del_locator
61 {
62   u32 client_index;
63   u32 context;
64   bool is_add [default=true];
65   string locator_set_name[64];
66   vl_api_interface_index_t sw_if_index;
67   u8 priority;
68   u8 weight;
69 };
70
71
72 /** \brief add or delete ONE eid-table
73     @param client_index - opaque cookie to identify the sender
74     @param context - sender context, to match reply w/ request
75     @param is_add - add address if non-zero, else delete
76     @param eid - endpoint identifier
77     @param locator_set_name - name of locator_set to add/del eid-table
78     @param vni - virtual network instance
79     @param key - secret key
80 */
81 autoreply define one_add_del_local_eid
82 {
83   u32 client_index;
84   u32 context;
85   bool is_add [default=true];
86   vl_api_eid_t eid;
87   string locator_set_name[64];
88   u32 vni;
89   vl_api_hmac_key_t key;
90 };
91
92 /** \brief Set TTL for map register messages
93     @param client_index - opaque cookie to identify the sender
94     @param context - sender context, to match reply w/ request
95     @param ttl - time to live
96 */
97 autoreply define one_map_register_set_ttl
98 {
99   u32 client_index;
100   u32 context;
101   u32 ttl;
102 };
103
104 /** \brief Get TTL for map register messages
105     @param client_index - opaque cookie to identify the sender
106     @param context - sender context, to match reply w/ request
107 */
108 define show_one_map_register_ttl
109 {
110   u32 client_index;
111   u32 context;
112 };
113
114 /** \brief Contains current TTL for map register messages
115     @param client_index - opaque cookie to identify the sender
116     @param retval - return code
117     @param ttl - time to live
118 */
119 define show_one_map_register_ttl_reply
120 {
121   u32 context;
122   i32 retval;
123   u32 ttl;
124 };
125
126 /** \brief Add/delete map server
127     @param client_index - opaque cookie to identify the sender
128     @param context - sender context, to match reply w/ request
129     @param is_add - add address if non-zero; delete otherwise
130     @param is_ipv6 - if non-zero the address is ipv6, else ipv4
131     @param ip_address - map server IP address
132 */
133 autoreply define one_add_del_map_server
134 {
135   u32 client_index;
136   u32 context;
137   bool is_add [default=true];
138   vl_api_address_t ip_address;
139 };
140
141 /** \brief add or delete map-resolver
142     @param client_index - opaque cookie to identify the sender
143     @param context - sender context, to match reply w/ request
144     @param is_add - add address if non-zero, else delete
145     @param is_ipv6 - if non-zero the address is ipv6, else ipv4
146     @param ip_address - array of address bytes
147 */
148 autoreply define one_add_del_map_resolver
149 {
150   u32 client_index;
151   u32 context;
152   bool is_add [default=true];
153   vl_api_address_t ip_address;
154 };
155
156 /** \brief enable or disable ONE feature
157     @param client_index - opaque cookie to identify the sender
158     @param context - sender context, to match reply w/ request
159     @param is_enable - enable protocol if non-zero, else disable
160 */
161 autoreply define one_enable_disable
162 {
163   u32 client_index;
164   u32 context;
165   bool is_enable [default=true];
166 };
167
168 /** \brief configure or delete ONE NSH mapping
169     @param client_index - opaque cookie to identify the sender
170     @param context - sender context, to match reply w/ request
171     @param ls_name - locator set name
172     @param is_add - add locator set if non-zero; delete otherwise
173 */
174 autoreply define one_nsh_set_locator_set
175 {
176   u32 client_index;
177   u32 context;
178   bool is_add [default=true];
179   string ls_name[64];
180 };
181
182 /** \brief configure or disable ONE PITR node
183     @param client_index - opaque cookie to identify the sender
184     @param context - sender context, to match reply w/ request
185     @param ls_name - locator set name
186     @param is_add - add locator set if non-zero, else disable pitr
187 */
188 autoreply define one_pitr_set_locator_set
189 {
190   u32 client_index;
191   u32 context;
192   bool is_add [default=true];
193   string ls_name[64];
194 };
195
196 /** \brief configure or disable use of PETR
197     @param client_index - opaque cookie to identify the sender
198     @param context - sender context, to match reply w/ request
199     @param is_ip4 - Address is IPv4 if set and IPv6 otherwise
200     @param address - PETR IP address
201     @param is_add - add locator set if non-zero, else disable PETR
202 */
203 autoreply define one_use_petr
204 {
205   u32 client_index;
206   u32 context;
207   vl_api_address_t ip_address;
208   bool is_add [default=true];
209 };
210
211 /** \brief Request for ONE PETR status
212     @param client_index - opaque cookie to identify the sender
213     @param context - sender context, to match reply w/ request
214 */
215 define show_one_use_petr
216 {
217   u32 client_index;
218   u32 context;
219 };
220
221 /** \brief ONE PETR status, enable or disable
222     @param context - sender context, to match reply w/ request
223     @param enable - ONE PETR enable if non-zero, else disable
224     @param is_ip4 - Address is IPv4 if non-zero, else IPv6
225     @param address - PETR IP address
226 */
227 define show_one_use_petr_reply
228 {
229   u32 context;
230   i32 retval;
231   bool status;
232   vl_api_address_t ip_address;
233 };
234
235 /** \brief Get state of ONE RLOC probing
236     @param client_index - opaque cookie to identify the sender
237     @param context - sender context, to match reply w/ request
238 */
239 define show_one_rloc_probe_state
240 {
241   u32 client_index;
242   u32 context;
243 };
244
245 /** \brief Reply for show_one_rloc_probe_state
246     @param context - returned sender context, to match reply w/ request
247     @param retval - return code
248     @param is_enable - state of RLOC probing
249 */
250 define show_one_rloc_probe_state_reply
251 {
252   u32 context;
253   i32 retval;
254   bool is_enable;
255 };
256
257 /** \brief enable/disable ONE RLOC probing
258     @param client_index - opaque cookie to identify the sender
259     @param context - sender context, to match reply w/ request
260     @param is_enable - enable if non-zero; disable otherwise
261 */
262 autoreply define one_rloc_probe_enable_disable
263 {
264   u32 client_index;
265   u32 context;
266   bool is_enable [default=true];
267 };
268
269 /** \brief enable/disable ONE map-register
270     @param client_index - opaque cookie to identify the sender
271     @param context - sender context, to match reply w/ request
272     @param is_enable - enable if non-zero; disable otherwise
273 */
274 autoreply define one_map_register_enable_disable
275 {
276   u32 client_index;
277   u32 context;
278   bool is_enable [default=true];
279 };
280
281 /** \brief Get state of ONE map-register
282     @param client_index - opaque cookie to identify the sender
283     @param context - sender context, to match reply w/ request
284 */
285 define show_one_map_register_state
286 {
287   u32 client_index;
288   u32 context;
289 };
290
291 /** \brief Reply for show_one_map_register_state
292     @param context - returned sender context, to match reply w/ request
293     @param retval - return code
294 */
295 define show_one_map_register_state_reply
296 {
297   u32 context;
298   i32 retval;
299   bool is_enable;
300 };
301
302 enum one_map_mode
303 {
304         ONE_MAP_MODE_API_DST_ONLY = 0,
305         ONE_MAP_MODE_API_SRC_DST = 1,
306 };
307
308 /** \brief set ONE map-request mode. Based on configuration VPP will send
309       src/dest or just normal destination map requests.
310     @param client_index - opaque cookie to identify the sender
311     @param context - sender context, to match reply w/ request
312     @param mode - new map-request mode. Supported values are:
313       0 - destination only
314       1 - source/destination
315 */
316 autoreply define one_map_request_mode
317 {
318   u32 client_index;
319   u32 context;
320   vl_api_one_map_mode_t mode;
321 };
322
323 /** \brief Request for ONE map-request mode
324     @param client_index - opaque cookie to identify the sender
325     @param context - sender context, to match reply w/ request
326 */
327 define show_one_map_request_mode
328 {
329   u32 client_index;
330   u32 context;
331 };
332
333 /** \brief Reply for show_one_map_request_mode
334     @param context - returned sender context, to match reply w/ request
335     @param retval - return code
336     @param mode - map-request mode
337 */
338 define show_one_map_request_mode_reply
339 {
340   u32 context;
341   i32 retval;
342   vl_api_one_map_mode_t mode;
343 };
344
345 /** \brief add or delete remote static mapping
346     @param client_index - opaque cookie to identify the sender
347     @param context - sender context, to match reply w/ request
348     @param is_add - add address if non-zero, else delete
349     @param is_src_dst - flag indicating src/dst based routing policy
350     @param del_all - if set, delete all remote mappings
351     @param vni - virtual network instance
352     @param action - negative map-reply action
353     @param deid - dst EID
354     @param seid - src EID, valid only if is_src_dst is enabled
355     @param rloc_num - number of remote locators
356     @param rlocs - remote locator records
357 */
358 autoreply manual_print manual_endian define one_add_del_remote_mapping
359 {
360   u32 client_index;
361   u32 context;
362   bool is_add [default=true];
363   bool is_src_dst;
364   bool del_all;
365   u32 vni;
366   u8 action;
367   vl_api_eid_t deid;
368   vl_api_eid_t seid;
369   u32 rloc_num;
370   vl_api_remote_locator_t rlocs[rloc_num];
371 };
372
373 typedef one_l2_arp_entry
374 {
375   vl_api_mac_address_t mac;
376   vl_api_ip4_address_t ip4;
377 };
378
379 /** \brief Add/delete L2 ARP entries
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 if non-zero; delete otherwise
383     @param bd - bridge domain
384     @param entry - ARP entry
385 */
386 autoreply define one_add_del_l2_arp_entry
387 {
388   u32 client_index;
389   u32 context;
390   bool is_add [default=true];
391   u32 bd;
392   vl_api_one_l2_arp_entry_t entry;
393 };
394
395 /** \brief Request for L2 ARP entries from specified bridge domain
396     @param client_index - opaque cookie to identify the sender
397     @param context - sender context, to match reply w/ request
398     @param bd - bridge domain
399 */
400 define one_l2_arp_entries_get
401 {
402   u32 client_index;
403   u32 context;
404   u32 bd;
405 };
406
407 /** \brief Reply with L2 ARP entries from specified bridge domain
408     @param context - sender context, to match reply w/ request
409     @param retval - error code
410     @param count - number of elements in the list
411     @param vl_api_one_arp_entry_t - list of entries
412 */
413 manual_print manual_endian define one_l2_arp_entries_get_reply
414 {
415   u32 context;
416   i32 retval;
417   u32 count;
418   vl_api_one_l2_arp_entry_t entries[count];
419 };
420
421 typedef one_ndp_entry
422 {
423   vl_api_mac_address_t mac;
424   vl_api_ip6_address_t ip6;
425 };
426
427
428 autoreply define one_add_del_ndp_entry
429 {
430   u32 client_index;
431   u32 context;
432   bool is_add [default=true];
433   u32 bd;
434   vl_api_one_ndp_entry_t entry;
435 };
436
437 define one_ndp_entries_get
438 {
439   u32 client_index;
440   u32 context;
441   u32 bd;
442 };
443
444 manual_print manual_endian define one_ndp_entries_get_reply
445 {
446   u32 context;
447   i32 retval;
448   u32 count;
449   vl_api_one_ndp_entry_t entries[count];
450 };
451
452 /** \brief Set ONE transport protocol
453     @param client_index - opaque cookie to identify the sender
454     @param context - sender context, to match reply w/ request
455     @param protocol - supported values:
456       1: UDP based LISP (default)
457       2: binary API
458 */
459 autoreply define one_set_transport_protocol
460 {
461   u32 client_index;
462   u32 context;
463   u8 protocol;
464 };
465
466 define one_get_transport_protocol
467 {
468   u32 client_index;
469   u32 context;
470 };
471
472 define one_get_transport_protocol_reply
473 {
474   u32 context;
475   i32 retval;
476   u8 protocol;
477 };
478
479 /** \brief Request for list of bridge domains used by neighbor discovery
480     @param client_index - opaque cookie to identify the sender
481     @param context - sender context, to match reply w/ request
482 */
483 define one_ndp_bd_get
484 {
485   u32 client_index;
486   u32 context;
487 };
488
489 /** \brief Reply with list of bridge domains used by neighbor discovery
490     @param context - sender context, to match reply w/ request
491     @param count - number of elements in the list
492     @param bridge_domains - list of BDs
493 */
494 manual_print manual_endian define one_ndp_bd_get_reply
495 {
496   u32 context;
497   i32 retval;
498   u32 count;
499   u32 bridge_domains[count];
500 };
501
502 /** \brief Request for list of bridge domains used by L2 ARP table
503     @param client_index - opaque cookie to identify the sender
504     @param context - sender context, to match reply w/ request
505 */
506 define one_l2_arp_bd_get
507 {
508   u32 client_index;
509   u32 context;
510 };
511
512 /** \brief Reply with list of bridge domains used by L2 ARP table
513     @param context - sender context, to match reply w/ request
514     @param count - number of elements in the list
515     @param bridge_domains - list of BDs
516 */
517 manual_print manual_endian define one_l2_arp_bd_get_reply
518 {
519   u32 context;
520   i32 retval;
521   u32 count;
522   u32 bridge_domains[count];
523 };
524
525 /** \brief add or delete ONE adjacency adjacency
526     @param client_index - opaque cookie to identify the sender
527     @param context - sender context, to match reply w/ request
528     @param is_add - add address if non-zero, else delete
529     @param vni - virtual network instance
530     @param reid - remote EID
531     @param leid - local EID
532 */
533 autoreply define one_add_del_adjacency
534 {
535   u32 client_index;
536   u32 context;
537   u8 is_add;
538   u32 vni;
539   vl_api_eid_t reid;
540   vl_api_eid_t leid;
541 };
542
543 /** \brief add or delete map request itr rlocs
544     @param client_index - opaque cookie to identify the sender
545     @param context - sender context, to match reply w/ request
546     @param is_add - add address if non-zero, else delete
547     @param locator_set_name - locator set name
548 */
549 autoreply define one_add_del_map_request_itr_rlocs
550 {
551   u32 client_index;
552   u32 context;
553   bool is_add [default=true];
554   string locator_set_name[64];
555 };
556
557 /** \brief map/unmap vni/bd_index to vrf
558     @param client_index - opaque cookie to identify the sender
559     @param context - sender context, to match reply w/ request
560     @param is_add - add or delete mapping
561     @param dp_table - virtual network id/bridge domain index
562     @param vrf - vrf
563     @param is_l2 - is l2
564 */
565 autoreply define one_eid_table_add_del_map
566 {
567   u32 client_index;
568   u32 context;
569   bool is_add [default=true];
570   u32 vni;
571   u32 dp_table;
572   bool is_l2;
573 };
574
575 /** \brief Request for map one locator status
576     @param client_index - opaque cookie to identify the sender
577     @param context - sender context, to match reply w/ request
578     @param locator_set_index - index of locator_set
579     @param ls_name - locator set name
580     @param is_index_set - flag indicating whether ls_name or ls_index is set
581  */
582 define one_locator_dump
583 {
584   u32 client_index;
585   u32 context;
586   u32 ls_index;
587   string ls_name[64];
588   bool is_index_set;
589 };
590
591 /** \brief ONE locator_set status
592     @param local - if is set, then locator is local
593     @param locator_set_name - name of the locator_set
594     @param sw_if_index - sw_if_index of the locator
595     @param priority - locator priority
596     @param weight - locator weight
597   */
598 define one_locator_details
599 {
600   u32 context;
601   u8 local;
602   vl_api_interface_index_t sw_if_index;
603   vl_api_address_t ip_address;
604   u8 priority;
605   u8 weight;
606 };
607
608 /** \brief ONE locator_set status
609     @param context - sender context, to match reply w/ request
610     @param ls_index - locator set index
611     @param ls_name - name of the locator set
612  */
613 define one_locator_set_details
614 {
615   u32 context;
616   u32 ls_index;
617   string ls_name[64];
618 };
619
620 enum one_filter
621 {
622         ONE_FILTER_API_ALL = 0,
623         ONE_FILTER_API_LOCAL = 1,
624         ONE_FILTER_API_REMOTE = 2,
625 };
626
627 /** \brief Request for locator_set summary status
628     @param client_index - opaque cookie to identify the sender
629     @param context - sender context, to match reply w/ request
630     @param filter - filter type
631       Supported values:
632         0: all locator sets
633         1: local locator sets
634         2: remote locator sets
635  */
636 define one_locator_set_dump
637 {
638   u32 client_index;
639   u32 context;
640   vl_api_one_filter_t filter;
641 };
642
643 /** \brief Dump ONE eid-table
644     @param context - sender context, to match reply w/ request
645     @param locator_set_index - index of locator_set, if ~0 then the mapping
646                                 is negative
647     @param action - negative map request action
648     @param is_local - local if non-zero, else remote
649     @param is_src_dst - EID is type of source/destination
650     @param deid - dst EID
651     @param seid - src EID
652     @param vni - virtual network instance
653     @param ttl - time to live
654     @param authoritative - authoritative
655     @param key - secret key
656 */
657
658 // FIXME: action, authoritative
659
660 define one_eid_table_details
661 {
662   u32 context;
663   u32 locator_set_index;
664   u8 action;
665   bool is_local;
666   bool is_src_dst;
667   u32 vni;
668   vl_api_eid_t deid;
669   vl_api_eid_t seid;
670   u32 ttl;
671   u8 authoritative;
672   vl_api_hmac_key_t key;
673 };
674
675 /** \brief Request for eid table summary status
676     @param client_index - opaque cookie to identify the sender
677     @param context - sender context, to match reply w/ request
678     @param eid_set - if non-zero request info about specific mapping
679     @param vni - virtual network instance; valid only if eid_set != 0
680     @param eid - endpoint identifier
681     @param filter - filter type;
682       Support values:
683         0: all eid
684         1: local eid
685         2: remote eid
686  */
687 define one_eid_table_dump
688 {
689   u32 client_index;
690   u32 context;
691   bool eid_set;
692   u32 vni;
693   vl_api_eid_t eid;
694   vl_api_one_filter_t filter;
695 };
696
697 /** \brief ONE adjacency
698     @param reid - remote EID
699     @param leid - local EID
700   */
701 typedef one_adjacency
702 {
703   vl_api_eid_t reid;
704   vl_api_eid_t leid;
705 };
706
707 /** \brief ONE adjacency reply
708     @param count - number of adjacencies
709     @param adjacencies - array of adjacencies
710   */
711 manual_endian manual_print define one_adjacencies_get_reply
712 {
713   u32 context;
714   i32 retval;
715   u32 count;
716   vl_api_one_adjacency_t adjacencies[count];
717 };
718
719 /** \brief Request for ONE adjacencies
720     @param client_index - opaque cookie to identify the sender
721     @param context - sender context, to match reply w/ request
722     @param vni - filter adjacencies by VNI
723  */
724 define one_adjacencies_get
725 {
726   u32 client_index;
727   u32 context;
728   u32 vni;
729 };
730
731 /** \brief Shows relationship between vni and vrf/bd
732     @param dp_table - VRF index or bridge domain index
733     @param vni - virtual network instance
734   */
735 define one_eid_table_map_details
736 {
737   u32 context;
738   u32 vni;
739   u32 dp_table;
740 };
741
742 /** \brief Request for one_eid_table_map_details
743     @param client_index - opaque cookie to identify the sender
744     @param context - sender context, to match reply w/ request
745     @param is_l2 - if set dump vni/bd mappings else vni/vrf
746  */
747 define one_eid_table_map_dump
748 {
749   u32 client_index;
750   u32 context;
751   bool is_l2;
752 };
753
754 /** \brief Dumps all VNIs used in mappings
755     @param client_index - opaque cookie to identify the sender
756     @param context - sender context, to match reply w/ request
757   */
758 define one_eid_table_vni_dump
759 {
760   u32 client_index;
761   u32 context;
762 };
763
764 /** \brief reply to one_eid_table_vni_dump
765     @param context - sender context, to match reply w/ request
766     @param vni - virtual network instance
767  */
768 define one_eid_table_vni_details
769 {
770   u32 context;
771   u32 vni;
772 };
773
774 /** \brief ONE map resolver status
775     @param is_ipv6 - if non-zero the address is ipv6, else ipv4
776     @param ip_address - array of address bytes
777  */
778 define one_map_resolver_details
779 {
780   u32 context;
781   vl_api_address_t ip_address;
782 };
783
784 /** \brief Request for map resolver summary status
785     @param client_index - opaque cookie to identify the sender
786     @param context - sender context, to match reply w/ request
787  */
788 define one_map_resolver_dump
789 {
790   u32 client_index;
791   u32 context;
792 };
793
794 /** \brief ONE map server details
795     @param is_ipv6 - if non-zero the address is ipv6, else ipv4
796     @param ip_address - array of address bytes
797  */
798 define one_map_server_details
799 {
800   u32 context;
801   vl_api_address_t ip_address;
802 };
803
804 /** \brief Request for map server summary status
805     @param client_index - opaque cookie to identify the sender
806     @param context - sender context, to match reply w/ request
807  */
808 define one_map_server_dump
809 {
810   u32 client_index;
811   u32 context;
812 };
813
814 /** \brief Request for ONE status
815     @param client_index - opaque cookie to identify the sender
816     @param context - sender context, to match reply w/ request
817 */
818 define show_one_status
819 {
820   u32 client_index;
821   u32 context;
822 };
823
824 /** \brief ONE status
825     @param context - sender context, to match reply w/ request
826     @param feature_status - enabled if non-zero, else disabled
827     @param gpe_status - enabled if non-zero, else disabled
828 */
829 define show_one_status_reply
830 {
831   u32 context;
832   i32 retval;
833   bool feature_status;
834   bool gpe_status;
835 };
836
837 /** \brief Get ONE map request itr rlocs status
838     @param context - sender context, to match reply w/ request
839     @param locator_set_name - name of the locator_set
840  */
841 define one_get_map_request_itr_rlocs
842 {
843   u32 client_index;
844   u32 context;
845 };
846
847 /** \brief Request for map request itr rlocs summary status
848  */
849 define one_get_map_request_itr_rlocs_reply
850 {
851   u32 context;
852   i32 retval;
853   string locator_set_name[64];
854 };
855
856 /** \brief Request for ONE NSH mapping
857     @param client_index - opaque cookie to identify the sender
858     @param context - sender context, to match reply w/ request
859 */
860 define show_one_nsh_mapping
861 {
862   u32 client_index;
863   u32 context;
864 };
865
866 /** \brief Reply for ONE NSH mapping
867     @param context - sender context, to match reply w/ request
868     @param is_set - is ONE NSH mapping set
869     @param locator_set_name - name of the locator_set if NSH mapping is set
870 */
871 define show_one_nsh_mapping_reply
872 {
873   u32 context;
874   i32 retval;
875   bool is_set;
876   string locator_set_name[64];
877 };
878
879 /** \brief Request for ONE PITR status
880     @param client_index - opaque cookie to identify the sender
881     @param context - sender context, to match reply w/ request
882 */
883 define show_one_pitr
884 {
885   u32 client_index;
886   u32 context;
887 };
888
889 /** \brief Status of ONE PITR, enable or disable
890     @param context - sender context, to match reply w/ request
891     @param status - ONE PITR enable if non-zero, else disable
892     @param locator_set_name -  name of the locator_set
893 */
894 define show_one_pitr_reply
895 {
896   u32 context;
897   i32 retval;
898   bool status;
899   string locator_set_name[64];
900 };
901
902 define one_stats_dump
903 {
904   u32 client_index;
905   u32 context;
906 };
907
908 define one_stats_details
909 {
910   u32 context;
911   u32 vni;
912   vl_api_eid_t deid;
913   vl_api_eid_t seid;
914   vl_api_address_t rloc;
915   vl_api_address_t lloc;
916
917   u32 pkt_count;
918   u32 bytes;
919 };
920
921 autoreply define one_stats_flush
922 {
923   u32 client_index;
924   u32 context;
925 };
926
927 autoreply define one_stats_enable_disable
928 {
929   u32 client_index;
930   u32 context;
931   bool is_enable [default=true];
932 };
933
934 define show_one_stats_enable_disable
935 {
936   u32 client_index;
937   u32 context;
938 };
939
940 define show_one_stats_enable_disable_reply
941 {
942   u32 context;
943   i32 retval;
944   bool is_enable;
945 };
946
947 autoreply define one_map_register_fallback_threshold
948 {
949   u32 client_index;
950   u32 context;
951   u32 value;
952 };
953
954 define show_one_map_register_fallback_threshold
955 {
956   u32 client_index;
957   u32 context;
958 };
959
960 define show_one_map_register_fallback_threshold_reply
961 {
962   u32 context;
963   i32 retval;
964   u32 value;
965 };
966
967 autoreply define one_enable_disable_xtr_mode
968 {
969   u32 client_index;
970   u32 context;
971   bool is_enable [default=true];
972 };
973
974 define one_show_xtr_mode
975 {
976   u32 client_index;
977   u32 context;
978 };
979
980 define one_show_xtr_mode_reply
981 {
982   u32 context;
983   i32 retval;
984   bool is_enable;
985 };
986
987 autoreply define one_enable_disable_petr_mode
988 {
989   u32 client_index;
990   u32 context;
991   bool is_enable [default=true];
992 };
993
994 define one_show_petr_mode
995 {
996   u32 client_index;
997   u32 context;
998 };
999
1000 define one_show_petr_mode_reply
1001 {
1002   u32 context;
1003   i32 retval;
1004   bool is_enable;
1005 };
1006
1007 autoreply define one_enable_disable_pitr_mode
1008 {
1009   u32 client_index;
1010   u32 context;
1011   bool is_enable [default=true];
1012 };
1013
1014 define one_show_pitr_mode
1015 {
1016   u32 client_index;
1017   u32 context;
1018 };
1019
1020 define one_show_pitr_mode_reply
1021 {
1022   u32 context;
1023   i32 retval;
1024   bool is_enable;
1025 };
1026
1027 /*
1028  * Local Variables:
1029  * eval: (c-set-style "gnu")
1030  * End:
1031  */