blob: be3a444e263030bac0f7625dddf1d4e5474a8d03 [file] [log] [blame]
Filip Tehlar694396d2017-02-17 14:29:11 +01001/*
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
Jakub Grajciar58db6e12020-01-30 13:26:43 +010016option version = "2.0.0";
Dave Barach0d056e52017-09-28 15:11:16 -040017
Jakub Grajciar58db6e12020-01-30 13:26:43 +010018import "vnet/interface_types.api";
19import "vnet/lisp-cp/lisp_types.api";
Filip Tehlar974cdc62017-02-22 18:09:49 +010020
Filip Tehlar694396d2017-02-17 14:29:11 +010021/** \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*/
29manual_endian manual_print define one_add_del_locator_set
30{
31 u32 client_index;
32 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +010033 bool is_add [default=true];
34 string locator_set_name[64];
Filip Tehlar694396d2017-02-17 14:29:11 +010035 u32 locator_num;
Jakub Grajciar58db6e12020-01-30 13:26:43 +010036 vl_api_local_locator_t locators[locator_num];
Filip Tehlar694396d2017-02-17 14:29:11 +010037};
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*/
44define 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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -040060autoreply define one_add_del_locator
Filip Tehlar694396d2017-02-17 14:29:11 +010061{
62 u32 client_index;
63 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +010064 bool is_add [default=true];
65 string locator_set_name[64];
66 vl_api_interface_index_t sw_if_index;
Filip Tehlar694396d2017-02-17 14:29:11 +010067 u8 priority;
68 u8 weight;
69};
70
Jakub Grajciar58db6e12020-01-30 13:26:43 +010071
Filip Tehlar694396d2017-02-17 14:29:11 +010072/** \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
Onong Tayeng4ab51902020-05-13 21:25:57 +053076 @param eid - endpoint identifier
Filip Tehlar694396d2017-02-17 14:29:11 +010077 @param locator_set_name - name of locator_set to add/del eid-table
78 @param vni - virtual network instance
Filip Tehlar694396d2017-02-17 14:29:11 +010079 @param key - secret key
80*/
Dave Barach11b8dbf2017-04-24 10:46:54 -040081autoreply define one_add_del_local_eid
Filip Tehlar694396d2017-02-17 14:29:11 +010082{
83 u32 client_index;
84 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +010085 bool is_add [default=true];
86 vl_api_eid_t eid;
87 string locator_set_name[64];
Filip Tehlar694396d2017-02-17 14:29:11 +010088 u32 vni;
Jakub Grajciar58db6e12020-01-30 13:26:43 +010089 vl_api_hmac_key_t key;
Filip Tehlar694396d2017-02-17 14:29:11 +010090};
91
Filip Tehlar1e553a02017-08-02 12:45:07 +020092/** \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*/
97autoreply 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*/
108define 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*/
119define show_one_map_register_ttl_reply
120{
121 u32 context;
122 i32 retval;
123 u32 ttl;
124};
125
Filip Tehlar694396d2017-02-17 14:29:11 +0100126/** \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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400133autoreply define one_add_del_map_server
Filip Tehlar694396d2017-02-17 14:29:11 +0100134{
135 u32 client_index;
136 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100137 bool is_add [default=true];
138 vl_api_address_t ip_address;
Filip Tehlar694396d2017-02-17 14:29:11 +0100139};
140
Filip Tehlar694396d2017-02-17 14:29:11 +0100141/** \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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400148autoreply define one_add_del_map_resolver
Filip Tehlar694396d2017-02-17 14:29:11 +0100149{
150 u32 client_index;
151 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100152 bool is_add [default=true];
153 vl_api_address_t ip_address;
Filip Tehlar694396d2017-02-17 14:29:11 +0100154};
155
Filip Tehlar694396d2017-02-17 14:29:11 +0100156/** \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
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100159 @param is_enable - enable protocol if non-zero, else disable
Filip Tehlar694396d2017-02-17 14:29:11 +0100160*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400161autoreply define one_enable_disable
Filip Tehlar694396d2017-02-17 14:29:11 +0100162{
163 u32 client_index;
164 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100165 bool is_enable [default=true];
Filip Tehlar694396d2017-02-17 14:29:11 +0100166};
167
Filip Tehlaref2a5bf2017-05-30 07:14:46 +0200168/** \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*/
174autoreply define one_nsh_set_locator_set
175{
176 u32 client_index;
177 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100178 bool is_add [default=true];
179 string ls_name[64];
Filip Tehlaref2a5bf2017-05-30 07:14:46 +0200180};
181
Filip Tehlar694396d2017-02-17 14:29:11 +0100182/** \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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400188autoreply define one_pitr_set_locator_set
Filip Tehlar694396d2017-02-17 14:29:11 +0100189{
190 u32 client_index;
191 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100192 bool is_add [default=true];
193 string ls_name[64];
Filip Tehlar694396d2017-02-17 14:29:11 +0100194};
195
Filip Tehlar694396d2017-02-17 14:29:11 +0100196/** \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
Filip Tehlar67a99f82017-03-10 13:18:02 +0100201 @param is_add - add locator set if non-zero, else disable PETR
Filip Tehlar694396d2017-02-17 14:29:11 +0100202*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400203autoreply define one_use_petr
Filip Tehlar694396d2017-02-17 14:29:11 +0100204{
205 u32 client_index;
206 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100207 vl_api_address_t ip_address;
208 bool is_add [default=true];
Filip Tehlar694396d2017-02-17 14:29:11 +0100209};
210
Filip Tehlar694396d2017-02-17 14:29:11 +0100211/** \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*/
215define 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
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100223 @param enable - ONE PETR enable if non-zero, else disable
Filip Tehlar694396d2017-02-17 14:29:11 +0100224 @param is_ip4 - Address is IPv4 if non-zero, else IPv6
225 @param address - PETR IP address
226*/
227define show_one_use_petr_reply
228{
229 u32 context;
230 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100231 bool status;
232 vl_api_address_t ip_address;
Filip Tehlar694396d2017-02-17 14:29:11 +0100233};
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*/
239define 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
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100248 @param is_enable - state of RLOC probing
Filip Tehlar694396d2017-02-17 14:29:11 +0100249*/
250define show_one_rloc_probe_state_reply
251{
252 u32 context;
253 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100254 bool is_enable;
Filip Tehlar694396d2017-02-17 14:29:11 +0100255};
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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400262autoreply define one_rloc_probe_enable_disable
Filip Tehlar694396d2017-02-17 14:29:11 +0100263{
264 u32 client_index;
265 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100266 bool is_enable [default=true];
Filip Tehlar694396d2017-02-17 14:29:11 +0100267};
268
Filip Tehlar694396d2017-02-17 14:29:11 +0100269/** \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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400274autoreply define one_map_register_enable_disable
Filip Tehlar694396d2017-02-17 14:29:11 +0100275{
276 u32 client_index;
277 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100278 bool is_enable [default=true];
Filip Tehlar694396d2017-02-17 14:29:11 +0100279};
280
Filip Tehlar694396d2017-02-17 14:29:11 +0100281/** \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*/
285define 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*/
295define show_one_map_register_state_reply
296{
297 u32 context;
298 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100299 bool is_enable;
300};
301
302enum one_map_mode
303{
304 ONE_MAP_MODE_API_DST_ONLY = 0,
305 ONE_MAP_MODE_API_SRC_DST = 1,
Filip Tehlar694396d2017-02-17 14:29:11 +0100306};
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
Paul Vinciguerrabdc0e6b2018-09-22 05:32:50 -0700314 1 - source/destination
Filip Tehlar694396d2017-02-17 14:29:11 +0100315*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400316autoreply define one_map_request_mode
Filip Tehlar694396d2017-02-17 14:29:11 +0100317{
318 u32 client_index;
319 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100320 vl_api_one_map_mode_t mode;
Filip Tehlar694396d2017-02-17 14:29:11 +0100321};
322
Filip Tehlar694396d2017-02-17 14:29:11 +0100323/** \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*/
327define 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*/
338define show_one_map_request_mode_reply
339{
340 u32 context;
341 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100342 vl_api_one_map_mode_t mode;
Filip Tehlar974cdc62017-02-22 18:09:49 +0100343};
344
Filip Tehlar694396d2017-02-17 14:29:11 +0100345/** \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
Filip Tehlar694396d2017-02-17 14:29:11 +0100353 @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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400358autoreply manual_print manual_endian define one_add_del_remote_mapping
Filip Tehlar694396d2017-02-17 14:29:11 +0100359{
360 u32 client_index;
361 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100362 bool is_add [default=true];
363 bool is_src_dst;
364 bool del_all;
Filip Tehlar694396d2017-02-17 14:29:11 +0100365 u32 vni;
366 u8 action;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100367 vl_api_eid_t deid;
368 vl_api_eid_t seid;
Filip Tehlar694396d2017-02-17 14:29:11 +0100369 u32 rloc_num;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100370 vl_api_remote_locator_t rlocs[rloc_num];
371};
372
373typedef one_l2_arp_entry
374{
375 vl_api_mac_address_t mac;
376 vl_api_ip4_address_t ip4;
Filip Tehlar694396d2017-02-17 14:29:11 +0100377};
378
Filip Tehlard5a65db2017-05-17 17:21:10 +0200379/** \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
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100384 @param entry - ARP entry
Filip Tehlard5a65db2017-05-17 17:21:10 +0200385*/
386autoreply define one_add_del_l2_arp_entry
387{
388 u32 client_index;
389 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100390 bool is_add [default=true];
Filip Tehlard5a65db2017-05-17 17:21:10 +0200391 u32 bd;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100392 vl_api_one_l2_arp_entry_t entry;
Filip Tehlard5a65db2017-05-17 17:21:10 +0200393};
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*/
400define one_l2_arp_entries_get
401{
402 u32 client_index;
403 u32 context;
404 u32 bd;
405};
406
Filip Tehlard5a65db2017-05-17 17:21:10 +0200407/** \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*/
413manual_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
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100421typedef one_ndp_entry
422{
423 vl_api_mac_address_t mac;
424 vl_api_ip6_address_t ip6;
425};
426
427
Filip Tehlard6307132017-09-04 18:54:33 +0200428autoreply define one_add_del_ndp_entry
429{
430 u32 client_index;
431 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100432 bool is_add [default=true];
Filip Tehlard6307132017-09-04 18:54:33 +0200433 u32 bd;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100434 vl_api_one_ndp_entry_t entry;
Filip Tehlard6307132017-09-04 18:54:33 +0200435};
436
437define one_ndp_entries_get
438{
439 u32 client_index;
440 u32 context;
441 u32 bd;
442};
443
Filip Tehlard6307132017-09-04 18:54:33 +0200444manual_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
Paul Vinciguerrabdc0e6b2018-09-22 05:32:50 -0700455 @param protocol - supported values:
Filip Tehlard6307132017-09-04 18:54:33 +0200456 1: UDP based LISP (default)
457 2: binary API
458*/
459autoreply define one_set_transport_protocol
460{
461 u32 client_index;
462 u32 context;
463 u8 protocol;
464};
465
466define one_get_transport_protocol
467{
468 u32 client_index;
469 u32 context;
470};
471
472define 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*/
483define 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*/
494manual_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
Filip Tehlard5a65db2017-05-17 17:21:10 +0200502/** \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*/
506define 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*/
517manual_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
Filip Tehlar694396d2017-02-17 14:29:11 +0100525/** \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
Filip Tehlar694396d2017-02-17 14:29:11 +0100530 @param reid - remote EID
531 @param leid - local EID
532*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400533autoreply define one_add_del_adjacency
Filip Tehlar694396d2017-02-17 14:29:11 +0100534{
535 u32 client_index;
536 u32 context;
537 u8 is_add;
538 u32 vni;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100539 vl_api_eid_t reid;
540 vl_api_eid_t leid;
Filip Tehlar694396d2017-02-17 14:29:11 +0100541};
542
Filip Tehlar694396d2017-02-17 14:29:11 +0100543/** \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*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400549autoreply define one_add_del_map_request_itr_rlocs
Filip Tehlar694396d2017-02-17 14:29:11 +0100550{
551 u32 client_index;
552 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100553 bool is_add [default=true];
554 string locator_set_name[64];
Filip Tehlar694396d2017-02-17 14:29:11 +0100555};
556
Filip Tehlar694396d2017-02-17 14:29:11 +0100557/** \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
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100563 @param is_l2 - is l2
Filip Tehlar694396d2017-02-17 14:29:11 +0100564*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400565autoreply define one_eid_table_add_del_map
Filip Tehlar694396d2017-02-17 14:29:11 +0100566{
567 u32 client_index;
568 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100569 bool is_add [default=true];
Filip Tehlar694396d2017-02-17 14:29:11 +0100570 u32 vni;
571 u32 dp_table;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100572 bool is_l2;
Filip Tehlar694396d2017-02-17 14:29:11 +0100573};
574
Filip Tehlar694396d2017-02-17 14:29:11 +0100575/** \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 */
582define one_locator_dump
583{
584 u32 client_index;
585 u32 context;
586 u32 ls_index;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100587 string ls_name[64];
588 bool is_index_set;
Filip Tehlar694396d2017-02-17 14:29:11 +0100589};
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 */
598define one_locator_details
599{
600 u32 context;
601 u8 local;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100602 vl_api_interface_index_t sw_if_index;
603 vl_api_address_t ip_address;
Filip Tehlar694396d2017-02-17 14:29:11 +0100604 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 */
613define one_locator_set_details
614{
615 u32 context;
616 u32 ls_index;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100617 string ls_name[64];
618};
619
620enum one_filter
621{
622 ONE_FILTER_API_ALL = 0,
623 ONE_FILTER_API_LOCAL = 1,
624 ONE_FILTER_API_REMOTE = 2,
Filip Tehlar694396d2017-02-17 14:29:11 +0100625};
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 */
636define one_locator_set_dump
637{
638 u32 client_index;
639 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100640 vl_api_one_filter_t filter;
Filip Tehlar694396d2017-02-17 14:29:11 +0100641};
642
643/** \brief Dump ONE eid-table
Filip Tehlar694396d2017-02-17 14:29:11 +0100644 @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
Filip Tehlar694396d2017-02-17 14:29:11 +0100649 @param is_src_dst - EID is type of source/destination
Onong Tayeng4ab51902020-05-13 21:25:57 +0530650 @param deid - dst EID
651 @param seid - src EID
Filip Tehlar694396d2017-02-17 14:29:11 +0100652 @param vni - virtual network instance
653 @param ttl - time to live
654 @param authoritative - authoritative
Filip Tehlar694396d2017-02-17 14:29:11 +0100655 @param key - secret key
656*/
657
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100658// FIXME: action, authoritative
659
Filip Tehlar694396d2017-02-17 14:29:11 +0100660define one_eid_table_details
661{
662 u32 context;
663 u32 locator_set_index;
664 u8 action;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100665 bool is_local;
666 bool is_src_dst;
Filip Tehlar694396d2017-02-17 14:29:11 +0100667 u32 vni;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100668 vl_api_eid_t deid;
669 vl_api_eid_t seid;
Filip Tehlar694396d2017-02-17 14:29:11 +0100670 u32 ttl;
671 u8 authoritative;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100672 vl_api_hmac_key_t key;
Filip Tehlar694396d2017-02-17 14:29:11 +0100673};
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
Filip Tehlar694396d2017-02-17 14:29:11 +0100680 @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 */
687define one_eid_table_dump
688{
689 u32 client_index;
690 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100691 bool eid_set;
Filip Tehlar694396d2017-02-17 14:29:11 +0100692 u32 vni;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100693 vl_api_eid_t eid;
694 vl_api_one_filter_t filter;
Filip Tehlar694396d2017-02-17 14:29:11 +0100695};
696
697/** \brief ONE adjacency
Filip Tehlar694396d2017-02-17 14:29:11 +0100698 @param reid - remote EID
699 @param leid - local EID
Filip Tehlar694396d2017-02-17 14:29:11 +0100700 */
Paul Vinciguerrae7174822019-08-07 00:05:59 -0400701typedef one_adjacency
Filip Tehlar694396d2017-02-17 14:29:11 +0100702{
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100703 vl_api_eid_t reid;
704 vl_api_eid_t leid;
Filip Tehlar694396d2017-02-17 14:29:11 +0100705};
706
707/** \brief ONE adjacency reply
708 @param count - number of adjacencies
709 @param adjacencies - array of adjacencies
710 */
711manual_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 */
724define 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
Paul Vinciguerrabdc0e6b2018-09-22 05:32:50 -0700733 @param vni - virtual network instance
Filip Tehlar694396d2017-02-17 14:29:11 +0100734 */
735define 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 */
747define one_eid_table_map_dump
748{
749 u32 client_index;
750 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100751 bool is_l2;
Filip Tehlar694396d2017-02-17 14:29:11 +0100752};
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 */
758define one_eid_table_vni_dump
759{
760 u32 client_index;
761 u32 context;
762};
763
764/** \brief reply to one_eid_table_vni_dump
Filip Tehlar694396d2017-02-17 14:29:11 +0100765 @param context - sender context, to match reply w/ request
766 @param vni - virtual network instance
767 */
768define one_eid_table_vni_details
769{
Filip Tehlar694396d2017-02-17 14:29:11 +0100770 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 */
778define one_map_resolver_details
779{
780 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100781 vl_api_address_t ip_address;
Filip Tehlar694396d2017-02-17 14:29:11 +0100782};
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 */
788define 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 */
798define one_map_server_details
799{
800 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100801 vl_api_address_t ip_address;
Filip Tehlar694396d2017-02-17 14:29:11 +0100802};
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 */
808define 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*/
818define 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*/
829define show_one_status_reply
830{
831 u32 context;
832 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100833 bool feature_status;
834 bool gpe_status;
Filip Tehlar694396d2017-02-17 14:29:11 +0100835};
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 */
841define 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 */
849define one_get_map_request_itr_rlocs_reply
850{
851 u32 context;
852 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100853 string locator_set_name[64];
Filip Tehlar694396d2017-02-17 14:29:11 +0100854};
855
Filip Tehlaref2a5bf2017-05-30 07:14:46 +0200856/** \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*/
860define 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*/
871define show_one_nsh_mapping_reply
872{
873 u32 context;
874 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100875 bool is_set;
876 string locator_set_name[64];
Filip Tehlaref2a5bf2017-05-30 07:14:46 +0200877};
878
Filip Tehlar694396d2017-02-17 14:29:11 +0100879/** \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*/
883define 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*/
894define show_one_pitr_reply
895{
896 u32 context;
897 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100898 bool status;
899 string locator_set_name[64];
Filip Tehlar694396d2017-02-17 14:29:11 +0100900};
Filip Tehlar7eaf0e52017-03-08 08:46:51 +0100901
902define one_stats_dump
903{
904 u32 client_index;
905 u32 context;
906};
907
908define one_stats_details
909{
910 u32 context;
911 u32 vni;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100912 vl_api_eid_t deid;
913 vl_api_eid_t seid;
914 vl_api_address_t rloc;
915 vl_api_address_t lloc;
Filip Tehlar7eaf0e52017-03-08 08:46:51 +0100916
917 u32 pkt_count;
918 u32 bytes;
919};
920
Dave Barach11b8dbf2017-04-24 10:46:54 -0400921autoreply define one_stats_flush
Filip Tehlar21511912017-04-07 10:41:42 +0200922{
923 u32 client_index;
924 u32 context;
925};
926
Dave Barach11b8dbf2017-04-24 10:46:54 -0400927autoreply define one_stats_enable_disable
Filip Tehlar7eaf0e52017-03-08 08:46:51 +0100928{
929 u32 client_index;
930 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100931 bool is_enable [default=true];
Filip Tehlar7eaf0e52017-03-08 08:46:51 +0100932};
933
Filip Tehlar7eaf0e52017-03-08 08:46:51 +0100934define show_one_stats_enable_disable
935{
936 u32 client_index;
937 u32 context;
938};
939
940define show_one_stats_enable_disable_reply
941{
942 u32 context;
943 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100944 bool is_enable;
Filip Tehlar7eaf0e52017-03-08 08:46:51 +0100945};
946
Filip Tehlar7048ff12017-07-27 08:09:14 +0200947autoreply define one_map_register_fallback_threshold
948{
949 u32 client_index;
950 u32 context;
951 u32 value;
952};
953
954define show_one_map_register_fallback_threshold
955{
956 u32 client_index;
957 u32 context;
958};
959
960define show_one_map_register_fallback_threshold_reply
961{
962 u32 context;
963 i32 retval;
964 u32 value;
965};
966
Filip Tehlar111a5ce2017-09-06 10:07:39 +0200967autoreply define one_enable_disable_xtr_mode
968{
969 u32 client_index;
970 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100971 bool is_enable [default=true];
Filip Tehlar111a5ce2017-09-06 10:07:39 +0200972};
973
974define one_show_xtr_mode
975{
976 u32 client_index;
977 u32 context;
978};
979
980define one_show_xtr_mode_reply
981{
982 u32 context;
983 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100984 bool is_enable;
Filip Tehlar111a5ce2017-09-06 10:07:39 +0200985};
986
987autoreply define one_enable_disable_petr_mode
988{
989 u32 client_index;
990 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +0100991 bool is_enable [default=true];
Filip Tehlar111a5ce2017-09-06 10:07:39 +0200992};
993
994define one_show_petr_mode
995{
996 u32 client_index;
997 u32 context;
998};
999
1000define one_show_petr_mode_reply
1001{
1002 u32 context;
1003 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +01001004 bool is_enable;
Filip Tehlar111a5ce2017-09-06 10:07:39 +02001005};
1006
1007autoreply define one_enable_disable_pitr_mode
1008{
1009 u32 client_index;
1010 u32 context;
Jakub Grajciar58db6e12020-01-30 13:26:43 +01001011 bool is_enable [default=true];
Filip Tehlar111a5ce2017-09-06 10:07:39 +02001012};
1013
1014define one_show_pitr_mode
1015{
1016 u32 client_index;
1017 u32 context;
1018};
1019
1020define one_show_pitr_mode_reply
1021{
1022 u32 context;
1023 i32 retval;
Jakub Grajciar58db6e12020-01-30 13:26:43 +01001024 bool is_enable;
Filip Tehlar111a5ce2017-09-06 10:07:39 +02001025};
1026
Filip Tehlar7eaf0e52017-03-08 08:46:51 +01001027/*
1028 * Local Variables:
1029 * eval: (c-set-style "gnu")
1030 * End:
1031 */