Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 1 | /* |
| 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: |
| 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 | |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 16 | vl_api_version 1.0.0 |
| 17 | |
Filip Tehlar | 05a057b | 2017-02-01 08:50:31 +0100 | [diff] [blame] | 18 | typeonly manual_print manual_endian define local_locator |
| 19 | { |
| 20 | u32 sw_if_index; |
| 21 | u8 priority; |
| 22 | u8 weight; |
| 23 | }; |
| 24 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 25 | /** \brief add or delete locator_set |
| 26 | @param client_index - opaque cookie to identify the sender |
| 27 | @param context - sender context, to match reply w/ request |
| 28 | @param is_add - add address if non-zero, else delete |
| 29 | @param locator_set_name - locator name |
| 30 | @param locator_num - number of locators |
| 31 | @param locators - LISP locator records |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 32 | */ |
Filip Tehlar | 05a057b | 2017-02-01 08:50:31 +0100 | [diff] [blame] | 33 | manual_endian manual_print define lisp_add_del_locator_set |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 34 | { |
| 35 | u32 client_index; |
| 36 | u32 context; |
| 37 | u8 is_add; |
| 38 | u8 locator_set_name[64]; |
| 39 | u32 locator_num; |
Filip Tehlar | 05a057b | 2017-02-01 08:50:31 +0100 | [diff] [blame] | 40 | vl_api_local_locator_t locators[locator_num]; |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | /** \brief Reply for locator_set add/del |
| 44 | @param context - returned sender context, to match reply w/ request |
| 45 | @param retval - return code |
| 46 | @param ls_index - locator set index |
| 47 | */ |
| 48 | define lisp_add_del_locator_set_reply |
| 49 | { |
| 50 | u32 context; |
| 51 | i32 retval; |
| 52 | u32 ls_index; |
| 53 | }; |
| 54 | |
| 55 | /** \brief add or delete locator for locator_set |
| 56 | @param client_index - opaque cookie to identify the sender |
| 57 | @param context - sender context, to match reply w/ request |
| 58 | @param is_add - add address if non-zero, else delete |
| 59 | @param locator_set_name - name of locator_set to add/del locator |
| 60 | @param sw_if_index - index of the interface |
| 61 | @param priority - priority of the lisp locator |
| 62 | @param weight - weight of the lisp locator |
| 63 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 64 | autoreply define lisp_add_del_locator |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 65 | { |
| 66 | u32 client_index; |
| 67 | u32 context; |
| 68 | u8 is_add; |
| 69 | u8 locator_set_name[64]; |
| 70 | u32 sw_if_index; |
| 71 | u8 priority; |
| 72 | u8 weight; |
| 73 | }; |
| 74 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 75 | /** \brief add or delete lisp eid-table |
| 76 | @param client_index - opaque cookie to identify the sender |
| 77 | @param context - sender context, to match reply w/ request |
| 78 | @param is_add - add address if non-zero, else delete |
| 79 | @param eid_type: |
| 80 | 0 : ipv4 |
| 81 | 1 : ipv6 |
| 82 | 2 : mac |
| 83 | @param eid - EID can be ip4, ip6 or mac |
| 84 | @param prefix_len - prefix len |
| 85 | @param locator_set_name - name of locator_set to add/del eid-table |
| 86 | @param vni - virtual network instance |
| 87 | @param key_id |
| 88 | HMAC_NO_KEY 0 |
| 89 | HMAC_SHA_1_96 1 |
| 90 | HMAC_SHA_256_128 2 |
| 91 | @param key - secret key |
| 92 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 93 | autoreply define lisp_add_del_local_eid |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 94 | { |
| 95 | u32 client_index; |
| 96 | u32 context; |
| 97 | u8 is_add; |
| 98 | u8 eid_type; |
| 99 | u8 eid[16]; |
| 100 | u8 prefix_len; |
| 101 | u8 locator_set_name[64]; |
| 102 | u32 vni; |
| 103 | u16 key_id; |
| 104 | u8 key[64]; |
| 105 | }; |
| 106 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 107 | /** \brief Add/delete map server |
| 108 | @param client_index - opaque cookie to identify the sender |
| 109 | @param context - sender context, to match reply w/ request |
| 110 | @param is_add - add address if non-zero; delete otherwise |
| 111 | @param is_ipv6 - if non-zero the address is ipv6, else ipv4 |
| 112 | @param ip_address - map server IP address |
| 113 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 114 | autoreply define lisp_add_del_map_server |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 115 | { |
| 116 | u32 client_index; |
| 117 | u32 context; |
| 118 | u8 is_add; |
| 119 | u8 is_ipv6; |
| 120 | u8 ip_address[16]; |
| 121 | }; |
| 122 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 123 | /** \brief add or delete map-resolver |
| 124 | @param client_index - opaque cookie to identify the sender |
| 125 | @param context - sender context, to match reply w/ request |
| 126 | @param is_add - add address if non-zero, else delete |
| 127 | @param is_ipv6 - if non-zero the address is ipv6, else ipv4 |
| 128 | @param ip_address - array of address bytes |
| 129 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 130 | autoreply define lisp_add_del_map_resolver |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 131 | { |
| 132 | u32 client_index; |
| 133 | u32 context; |
| 134 | u8 is_add; |
| 135 | u8 is_ipv6; |
| 136 | u8 ip_address[16]; |
| 137 | }; |
| 138 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 139 | /** \brief enable or disable LISP feature |
| 140 | @param client_index - opaque cookie to identify the sender |
| 141 | @param context - sender context, to match reply w/ request |
| 142 | @param is_en - enable protocol if non-zero, else disable |
| 143 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 144 | autoreply define lisp_enable_disable |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 145 | { |
| 146 | u32 client_index; |
| 147 | u32 context; |
| 148 | u8 is_en; |
| 149 | }; |
| 150 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 151 | /** \brief configure or disable LISP PITR node |
| 152 | @param client_index - opaque cookie to identify the sender |
| 153 | @param context - sender context, to match reply w/ request |
| 154 | @param ls_name - locator set name |
| 155 | @param is_add - add locator set if non-zero, else disable pitr |
| 156 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 157 | autoreply define lisp_pitr_set_locator_set |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 158 | { |
| 159 | u32 client_index; |
| 160 | u32 context; |
| 161 | u8 is_add; |
| 162 | u8 ls_name[64]; |
| 163 | }; |
| 164 | |
Florin Coras | ba888e4 | 2017-01-24 11:38:18 -0800 | [diff] [blame] | 165 | /** \brief configure or disable use of PETR |
| 166 | @param client_index - opaque cookie to identify the sender |
| 167 | @param context - sender context, to match reply w/ request |
| 168 | @param is_ip4 - Address is IPv4 if set and IPv6 otherwise |
| 169 | @param address - PETR IP address |
| 170 | @param is_add - add locator set if non-zero, else disable pitr |
| 171 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 172 | autoreply define lisp_use_petr |
Florin Coras | ba888e4 | 2017-01-24 11:38:18 -0800 | [diff] [blame] | 173 | { |
| 174 | u32 client_index; |
| 175 | u32 context; |
| 176 | u8 is_ip4; |
| 177 | u8 address[16]; |
| 178 | u8 is_add; |
| 179 | }; |
| 180 | |
Florin Coras | ba888e4 | 2017-01-24 11:38:18 -0800 | [diff] [blame] | 181 | /** \brief Request for LISP PETR status |
| 182 | @param client_index - opaque cookie to identify the sender |
| 183 | @param context - sender context, to match reply w/ request |
| 184 | */ |
| 185 | define show_lisp_use_petr |
| 186 | { |
| 187 | u32 client_index; |
| 188 | u32 context; |
| 189 | }; |
| 190 | |
| 191 | /** \brief LISP PETR status, enable or disable |
| 192 | @param context - sender context, to match reply w/ request |
| 193 | @param status - LISP PETR enable if non-zero, else disable |
| 194 | @param is_ip4 - Address is IPv4 if non-zero, else IPv6 |
| 195 | @param address - PETR IP address |
| 196 | */ |
| 197 | define show_lisp_use_petr_reply |
| 198 | { |
| 199 | u32 context; |
| 200 | i32 retval; |
| 201 | u8 status; |
| 202 | u8 is_ip4; |
| 203 | u8 address[16]; |
| 204 | }; |
| 205 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 206 | /** \brief Get state of LISP RLOC probing |
| 207 | @param client_index - opaque cookie to identify the sender |
| 208 | @param context - sender context, to match reply w/ request |
| 209 | */ |
| 210 | define show_lisp_rloc_probe_state |
| 211 | { |
| 212 | u32 client_index; |
| 213 | u32 context; |
| 214 | }; |
| 215 | |
| 216 | /** \brief Reply for show_lisp_rloc_probe_state |
| 217 | @param context - returned sender context, to match reply w/ request |
| 218 | @param retval - return code |
| 219 | @param is_enabled - state of RLOC probing |
| 220 | */ |
| 221 | define show_lisp_rloc_probe_state_reply |
| 222 | { |
| 223 | u32 context; |
| 224 | i32 retval; |
| 225 | u8 is_enabled; |
| 226 | }; |
| 227 | |
| 228 | /** \brief enable/disable LISP RLOC probing |
| 229 | @param client_index - opaque cookie to identify the sender |
| 230 | @param context - sender context, to match reply w/ request |
| 231 | @param is_enable - enable if non-zero; disable otherwise |
| 232 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 233 | autoreply define lisp_rloc_probe_enable_disable |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 234 | { |
| 235 | u32 client_index; |
| 236 | u32 context; |
| 237 | u8 is_enabled; |
| 238 | }; |
| 239 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 240 | /** \brief enable/disable LISP map-register |
| 241 | @param client_index - opaque cookie to identify the sender |
| 242 | @param context - sender context, to match reply w/ request |
| 243 | @param is_enable - enable if non-zero; disable otherwise |
| 244 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 245 | autoreply define lisp_map_register_enable_disable |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 246 | { |
| 247 | u32 client_index; |
| 248 | u32 context; |
| 249 | u8 is_enabled; |
| 250 | }; |
| 251 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 252 | /** \brief Get state of LISP map-register |
| 253 | @param client_index - opaque cookie to identify the sender |
| 254 | @param context - sender context, to match reply w/ request |
| 255 | */ |
| 256 | define show_lisp_map_register_state |
| 257 | { |
| 258 | u32 client_index; |
| 259 | u32 context; |
| 260 | }; |
| 261 | |
| 262 | /** \brief Reply for show_lisp_map_register_state |
| 263 | @param context - returned sender context, to match reply w/ request |
| 264 | @param retval - return code |
| 265 | */ |
| 266 | define show_lisp_map_register_state_reply |
| 267 | { |
| 268 | u32 context; |
| 269 | i32 retval; |
| 270 | u8 is_enabled; |
| 271 | }; |
| 272 | |
| 273 | /** \brief set LISP map-request mode. Based on configuration VPP will send |
| 274 | src/dest or just normal destination map requests. |
| 275 | @param client_index - opaque cookie to identify the sender |
| 276 | @param context - sender context, to match reply w/ request |
| 277 | @param mode - new map-request mode. Supported values are: |
| 278 | 0 - destination only |
| 279 | 1 - source/destaination |
| 280 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 281 | autoreply define lisp_map_request_mode |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 282 | { |
| 283 | u32 client_index; |
| 284 | u32 context; |
| 285 | u8 mode; |
| 286 | }; |
| 287 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 288 | /** \brief Request for LISP map-request mode |
| 289 | @param client_index - opaque cookie to identify the sender |
| 290 | @param context - sender context, to match reply w/ request |
| 291 | */ |
| 292 | define show_lisp_map_request_mode |
| 293 | { |
| 294 | u32 client_index; |
| 295 | u32 context; |
| 296 | }; |
| 297 | |
| 298 | /** \brief Reply for show_lisp_map_request_mode |
| 299 | @param context - returned sender context, to match reply w/ request |
| 300 | @param retval - return code |
| 301 | @param mode - map-request mode |
| 302 | */ |
| 303 | define show_lisp_map_request_mode_reply |
| 304 | { |
| 305 | u32 context; |
| 306 | i32 retval; |
| 307 | u8 mode; |
| 308 | }; |
| 309 | |
Filip Tehlar | 05a057b | 2017-02-01 08:50:31 +0100 | [diff] [blame] | 310 | typeonly manual_endian manual_print define remote_locator |
| 311 | { |
| 312 | u8 is_ip4; |
| 313 | u8 priority; |
| 314 | u8 weight; |
| 315 | u8 addr[16]; |
| 316 | }; |
| 317 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 318 | /** \brief add or delete remote static mapping |
| 319 | @param client_index - opaque cookie to identify the sender |
| 320 | @param context - sender context, to match reply w/ request |
| 321 | @param is_add - add address if non-zero, else delete |
| 322 | @param is_src_dst - flag indicating src/dst based routing policy |
| 323 | @param del_all - if set, delete all remote mappings |
| 324 | @param vni - virtual network instance |
| 325 | @param action - negative map-reply action |
| 326 | @param eid_type - |
| 327 | 0 : ipv4 |
| 328 | 1 : ipv6 |
| 329 | 2 : mac |
| 330 | @param deid - dst EID |
| 331 | @param seid - src EID, valid only if is_src_dst is enabled |
| 332 | @param rloc_num - number of remote locators |
| 333 | @param rlocs - remote locator records |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 334 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 335 | autoreply manual_print manual_endian define lisp_add_del_remote_mapping |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 336 | { |
| 337 | u32 client_index; |
| 338 | u32 context; |
| 339 | u8 is_add; |
| 340 | u8 is_src_dst; |
| 341 | u8 del_all; |
| 342 | u32 vni; |
| 343 | u8 action; |
| 344 | u8 eid_type; |
| 345 | u8 eid[16]; |
| 346 | u8 eid_len; |
| 347 | u8 seid[16]; |
| 348 | u8 seid_len; |
| 349 | u32 rloc_num; |
Filip Tehlar | 05a057b | 2017-02-01 08:50:31 +0100 | [diff] [blame] | 350 | vl_api_remote_locator_t rlocs[rloc_num]; |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 351 | }; |
| 352 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 353 | /** \brief add or delete LISP adjacency adjacency |
| 354 | @param client_index - opaque cookie to identify the sender |
| 355 | @param context - sender context, to match reply w/ request |
| 356 | @param is_add - add address if non-zero, else delete |
| 357 | @param vni - virtual network instance |
| 358 | @param eid_type - |
| 359 | 0 : ipv4 |
| 360 | 1 : ipv6 |
| 361 | 2 : mac |
| 362 | @param reid - remote EID |
| 363 | @param leid - local EID |
| 364 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 365 | autoreply define lisp_add_del_adjacency |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 366 | { |
| 367 | u32 client_index; |
| 368 | u32 context; |
| 369 | u8 is_add; |
| 370 | u32 vni; |
| 371 | u8 eid_type; |
| 372 | u8 reid[16]; |
| 373 | u8 leid[16]; |
| 374 | u8 reid_len; |
| 375 | u8 leid_len; |
| 376 | }; |
| 377 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 378 | /** \brief add or delete map request itr rlocs |
| 379 | @param client_index - opaque cookie to identify the sender |
| 380 | @param context - sender context, to match reply w/ request |
| 381 | @param is_add - add address if non-zero, else delete |
| 382 | @param locator_set_name - locator set name |
| 383 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 384 | autoreply define lisp_add_del_map_request_itr_rlocs |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 385 | { |
| 386 | u32 client_index; |
| 387 | u32 context; |
| 388 | u8 is_add; |
| 389 | u8 locator_set_name[64]; |
| 390 | }; |
| 391 | |
| 392 | /** \brief Reply for lisp_add_del_map_request_itr_rlocs |
| 393 | @param context - returned sender context, to match reply w/ request |
| 394 | @param retval - return code |
| 395 | */ |
| 396 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 397 | /** \brief map/unmap vni/bd_index to vrf |
| 398 | @param client_index - opaque cookie to identify the sender |
| 399 | @param context - sender context, to match reply w/ request |
| 400 | @param is_add - add or delete mapping |
| 401 | @param dp_table - virtual network id/bridge domain index |
| 402 | @param vrf - vrf |
| 403 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 404 | autoreply define lisp_eid_table_add_del_map |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 405 | { |
| 406 | u32 client_index; |
| 407 | u32 context; |
| 408 | u8 is_add; |
| 409 | u32 vni; |
| 410 | u32 dp_table; |
| 411 | u8 is_l2; |
| 412 | }; |
| 413 | |
Pavel Kotucek | cfb7be8 | 2016-12-21 14:15:37 +0100 | [diff] [blame] | 414 | /** \brief Request for map lisp locator status |
| 415 | @param client_index - opaque cookie to identify the sender |
| 416 | @param context - sender context, to match reply w/ request |
| 417 | @param locator_set_index - index of locator_set |
| 418 | @param ls_name - locator set name |
| 419 | @param is_index_set - flag indicating whether ls_name or ls_index is set |
| 420 | */ |
| 421 | define lisp_locator_dump |
| 422 | { |
| 423 | u32 client_index; |
| 424 | u32 context; |
| 425 | u32 ls_index; |
| 426 | u8 ls_name[64]; |
| 427 | u8 is_index_set; |
| 428 | }; |
| 429 | |
| 430 | /** \brief LISP locator_set status |
| 431 | @param local - if is set, then locator is local |
| 432 | @param locator_set_name - name of the locator_set |
| 433 | @param sw_if_index - sw_if_index of the locator |
| 434 | @param priority - locator priority |
| 435 | @param weight - locator weight |
| 436 | */ |
| 437 | define lisp_locator_details |
| 438 | { |
| 439 | u32 context; |
| 440 | u8 local; |
| 441 | u32 sw_if_index; |
| 442 | u8 is_ipv6; |
| 443 | u8 ip_address[16]; |
| 444 | u8 priority; |
| 445 | u8 weight; |
| 446 | }; |
| 447 | |
| 448 | /** \brief LISP locator_set status |
| 449 | @param context - sender context, to match reply w/ request |
| 450 | @param ls_index - locator set index |
| 451 | @param ls_name - name of the locator set |
| 452 | */ |
| 453 | define lisp_locator_set_details |
| 454 | { |
| 455 | u32 context; |
| 456 | u32 ls_index; |
| 457 | u8 ls_name[64]; |
| 458 | }; |
| 459 | |
| 460 | /** \brief Request for locator_set summary status |
| 461 | @param client_index - opaque cookie to identify the sender |
| 462 | @param context - sender context, to match reply w/ request |
| 463 | @param filter - filter type |
| 464 | Supported values: |
| 465 | 0: all locator sets |
| 466 | 1: local locator sets |
| 467 | 2: remote locator sets |
| 468 | */ |
| 469 | define lisp_locator_set_dump |
| 470 | { |
| 471 | u32 client_index; |
| 472 | u32 context; |
| 473 | u8 filter; |
| 474 | }; |
| 475 | |
| 476 | /** \brief Dump lisp eid-table |
| 477 | @param client_index - opaque cookie to identify the sender |
| 478 | @param context - sender context, to match reply w/ request |
| 479 | @param locator_set_index - index of locator_set, if ~0 then the mapping |
| 480 | is negative |
| 481 | @param action - negative map request action |
| 482 | @param is_local - local if non-zero, else remote |
| 483 | @param eid_type: |
| 484 | 0 : ipv4 |
| 485 | 1 : ipv6 |
| 486 | 2 : mac |
| 487 | @param is_src_dst - EID is type of source/destination |
| 488 | @param eid - EID can be ip4, ip6 or mac |
| 489 | @param eid_prefix_len - prefix length |
| 490 | @param seid - source EID can be ip4, ip6 or mac |
| 491 | @param seid_prefix_len - source prefix length |
| 492 | @param vni - virtual network instance |
| 493 | @param ttl - time to live |
| 494 | @param authoritative - authoritative |
| 495 | @param key_id |
| 496 | HMAC_NO_KEY 0 |
| 497 | HMAC_SHA_1_96 1 |
| 498 | HMAC_SHA_256_128 2 |
| 499 | @param key - secret key |
| 500 | */ |
| 501 | |
| 502 | define lisp_eid_table_details |
| 503 | { |
| 504 | u32 context; |
| 505 | u32 locator_set_index; |
| 506 | u8 action; |
| 507 | u8 is_local; |
| 508 | u8 eid_type; |
| 509 | u8 is_src_dst; |
| 510 | u32 vni; |
| 511 | u8 eid[16]; |
| 512 | u8 eid_prefix_len; |
| 513 | u8 seid[16]; |
| 514 | u8 seid_prefix_len; |
| 515 | u32 ttl; |
| 516 | u8 authoritative; |
| 517 | u16 key_id; |
| 518 | u8 key[64]; |
| 519 | }; |
| 520 | |
| 521 | /** \brief Request for eid table summary status |
| 522 | @param client_index - opaque cookie to identify the sender |
| 523 | @param context - sender context, to match reply w/ request |
| 524 | @param eid_set - if non-zero request info about specific mapping |
| 525 | @param vni - virtual network instance; valid only if eid_set != 0 |
| 526 | @param prefix_length - prefix length if EID is IP address; |
| 527 | valid only if eid_set != 0 |
| 528 | @param eid_type - EID type; valid only if eid_set != 0 |
| 529 | Supported values: |
| 530 | 0: EID is IPv4 |
| 531 | 1: EID is IPv6 |
| 532 | 2: EID is ethernet address |
| 533 | @param eid - endpoint identifier |
| 534 | @param filter - filter type; |
| 535 | Support values: |
| 536 | 0: all eid |
| 537 | 1: local eid |
| 538 | 2: remote eid |
| 539 | */ |
| 540 | define lisp_eid_table_dump |
| 541 | { |
| 542 | u32 client_index; |
| 543 | u32 context; |
| 544 | u8 eid_set; |
| 545 | u8 prefix_length; |
| 546 | u32 vni; |
| 547 | u8 eid_type; |
| 548 | u8 eid[16]; |
| 549 | u8 filter; |
| 550 | }; |
| 551 | |
| 552 | /** \brief LISP adjacency |
| 553 | @param eid_type - |
| 554 | 0 : ipv4 |
| 555 | 1 : ipv6 |
| 556 | 2 : mac |
| 557 | @param reid - remote EID |
| 558 | @param leid - local EID |
| 559 | @param reid_prefix_len - remote EID IP prefix length |
| 560 | @param leid_prefix_len - local EID IP prefix length |
| 561 | */ |
| 562 | typeonly manual_print manual_endian define lisp_adjacency |
| 563 | { |
| 564 | u8 eid_type; |
| 565 | u8 reid[16]; |
| 566 | u8 leid[16]; |
| 567 | u8 reid_prefix_len; |
| 568 | u8 leid_prefix_len; |
| 569 | }; |
| 570 | |
| 571 | /** \brief LISP adjacency reply |
| 572 | @param count - number of adjacencies |
| 573 | @param adjacencies - array of adjacencies |
| 574 | */ |
| 575 | manual_endian manual_print define lisp_adjacencies_get_reply |
| 576 | { |
| 577 | u32 context; |
| 578 | i32 retval; |
| 579 | u32 count; |
| 580 | vl_api_lisp_adjacency_t adjacencies[count]; |
| 581 | }; |
| 582 | |
| 583 | /** \brief Request for LISP adjacencies |
| 584 | @param client_index - opaque cookie to identify the sender |
| 585 | @param context - sender context, to match reply w/ request |
| 586 | @param vni - filter adjacencies by VNI |
| 587 | */ |
| 588 | define lisp_adjacencies_get |
| 589 | { |
| 590 | u32 client_index; |
| 591 | u32 context; |
| 592 | u32 vni; |
| 593 | }; |
| 594 | |
| 595 | /** \brief Shows relationship between vni and vrf/bd |
| 596 | @param dp_table - VRF index or bridge domain index |
| 597 | @param vni - vitual network instance |
| 598 | */ |
| 599 | define lisp_eid_table_map_details |
| 600 | { |
| 601 | u32 context; |
| 602 | u32 vni; |
| 603 | u32 dp_table; |
| 604 | }; |
| 605 | |
| 606 | /** \brief Request for lisp_eid_table_map_details |
| 607 | @param client_index - opaque cookie to identify the sender |
| 608 | @param context - sender context, to match reply w/ request |
| 609 | @param is_l2 - if set dump vni/bd mappings else vni/vrf |
| 610 | */ |
| 611 | define lisp_eid_table_map_dump |
| 612 | { |
| 613 | u32 client_index; |
| 614 | u32 context; |
| 615 | u8 is_l2; |
| 616 | }; |
| 617 | |
| 618 | /** \brief Dumps all VNIs used in mappings |
| 619 | @param client_index - opaque cookie to identify the sender |
| 620 | @param context - sender context, to match reply w/ request |
| 621 | */ |
| 622 | define lisp_eid_table_vni_dump |
| 623 | { |
| 624 | u32 client_index; |
| 625 | u32 context; |
| 626 | }; |
| 627 | |
| 628 | /** \brief reply to lisp_eid_table_vni_dump |
| 629 | @param client_index - opaque cookie to identify the sender |
| 630 | @param context - sender context, to match reply w/ request |
| 631 | @param vni - virtual network instance |
| 632 | */ |
| 633 | define lisp_eid_table_vni_details |
| 634 | { |
| 635 | u32 client_index; |
| 636 | u32 context; |
| 637 | u32 vni; |
| 638 | }; |
| 639 | |
| 640 | /** \brief LISP map resolver status |
| 641 | @param is_ipv6 - if non-zero the address is ipv6, else ipv4 |
| 642 | @param ip_address - array of address bytes |
| 643 | */ |
| 644 | define lisp_map_resolver_details |
| 645 | { |
| 646 | u32 context; |
| 647 | u8 is_ipv6; |
| 648 | u8 ip_address[16]; |
| 649 | }; |
| 650 | |
| 651 | /** \brief Request for map resolver summary status |
| 652 | @param client_index - opaque cookie to identify the sender |
| 653 | @param context - sender context, to match reply w/ request |
| 654 | */ |
| 655 | define lisp_map_resolver_dump |
| 656 | { |
| 657 | u32 client_index; |
| 658 | u32 context; |
| 659 | }; |
| 660 | |
| 661 | /** \brief LISP map server details |
| 662 | @param is_ipv6 - if non-zero the address is ipv6, else ipv4 |
| 663 | @param ip_address - array of address bytes |
| 664 | */ |
| 665 | define lisp_map_server_details |
| 666 | { |
| 667 | u32 context; |
| 668 | u8 is_ipv6; |
| 669 | u8 ip_address[16]; |
| 670 | }; |
| 671 | |
| 672 | /** \brief Request for map server summary status |
| 673 | @param client_index - opaque cookie to identify the sender |
| 674 | @param context - sender context, to match reply w/ request |
| 675 | */ |
| 676 | define lisp_map_server_dump |
| 677 | { |
| 678 | u32 client_index; |
| 679 | u32 context; |
| 680 | }; |
| 681 | |
| 682 | /** \brief Request for lisp-gpe protocol status |
| 683 | @param client_index - opaque cookie to identify the sender |
| 684 | @param context - sender context, to match reply w/ request |
| 685 | */ |
| 686 | define show_lisp_status |
| 687 | { |
| 688 | u32 client_index; |
| 689 | u32 context; |
| 690 | }; |
| 691 | |
| 692 | /** \brief Status of lisp, enable or disable |
| 693 | @param context - sender context, to match reply w/ request |
| 694 | @param feature_status - lisp enable if non-zero, else disable |
| 695 | @param gpe_status - lisp enable if non-zero, else disable |
| 696 | */ |
| 697 | define show_lisp_status_reply |
| 698 | { |
| 699 | u32 context; |
| 700 | i32 retval; |
| 701 | u8 feature_status; |
| 702 | u8 gpe_status; |
| 703 | }; |
| 704 | |
| 705 | /** \brief Get LISP map request itr rlocs status |
| 706 | @param context - sender context, to match reply w/ request |
| 707 | @param locator_set_name - name of the locator_set |
| 708 | */ |
| 709 | define lisp_get_map_request_itr_rlocs |
| 710 | { |
| 711 | u32 client_index; |
| 712 | u32 context; |
| 713 | }; |
| 714 | |
| 715 | /** \brief Request for map request itr rlocs summary status |
| 716 | */ |
| 717 | define lisp_get_map_request_itr_rlocs_reply |
| 718 | { |
| 719 | u32 context; |
| 720 | i32 retval; |
| 721 | u8 locator_set_name[64]; |
| 722 | }; |
| 723 | |
| 724 | /** \brief Request for lisp pitr status |
| 725 | @param client_index - opaque cookie to identify the sender |
| 726 | @param context - sender context, to match reply w/ request |
| 727 | */ |
| 728 | define show_lisp_pitr |
| 729 | { |
| 730 | u32 client_index; |
| 731 | u32 context; |
| 732 | }; |
| 733 | |
| 734 | /** \brief Status of lisp pitr, enable or disable |
| 735 | @param context - sender context, to match reply w/ request |
| 736 | @param status - lisp pitr enable if non-zero, else disable |
| 737 | @param locator_set_name - name of the locator_set |
| 738 | */ |
| 739 | define show_lisp_pitr_reply |
| 740 | { |
| 741 | u32 context; |
| 742 | i32 retval; |
| 743 | u8 status; |
| 744 | u8 locator_set_name[64]; |
| 745 | }; |
| 746 | |
| 747 | /* |
| 748 | * Local Variables: |
| 749 | * eval: (c-set-style "gnu") |
| 750 | * End: |
| 751 | */ |
Filip Tehlar | 05a057b | 2017-02-01 08:50:31 +0100 | [diff] [blame] | 752 | |