Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 16 | option version = "2.0.0"; |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 17 | |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 18 | import "vnet/interface_types.api"; |
| 19 | import "vnet/lisp-cp/lisp_types.api"; |
Filip Tehlar | 974cdc6 | 2017-02-22 18:09:49 +0100 | [diff] [blame] | 20 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 33 | bool is_add [default=true]; |
| 34 | string locator_set_name[64]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 35 | u32 locator_num; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 36 | vl_api_local_locator_t locators[locator_num]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 60 | autoreply define one_add_del_locator |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 61 | { |
| 62 | u32 client_index; |
| 63 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 64 | bool is_add [default=true]; |
| 65 | string locator_set_name[64]; |
| 66 | vl_api_interface_index_t sw_if_index; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 67 | u8 priority; |
| 68 | u8 weight; |
| 69 | }; |
| 70 | |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 71 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Onong Tayeng | 4ab5190 | 2020-05-13 21:25:57 +0530 | [diff] [blame] | 76 | @param eid - endpoint identifier |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 77 | @param locator_set_name - name of locator_set to add/del eid-table |
| 78 | @param vni - virtual network instance |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 79 | @param key - secret key |
| 80 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 81 | autoreply define one_add_del_local_eid |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 82 | { |
| 83 | u32 client_index; |
| 84 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 85 | bool is_add [default=true]; |
| 86 | vl_api_eid_t eid; |
| 87 | string locator_set_name[64]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 88 | u32 vni; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 89 | vl_api_hmac_key_t key; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 90 | }; |
| 91 | |
Filip Tehlar | 1e553a0 | 2017-08-02 12:45:07 +0200 | [diff] [blame] | 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 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 133 | autoreply define one_add_del_map_server |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 134 | { |
| 135 | u32 client_index; |
| 136 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 137 | bool is_add [default=true]; |
| 138 | vl_api_address_t ip_address; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 139 | }; |
| 140 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 148 | autoreply define one_add_del_map_resolver |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 149 | { |
| 150 | u32 client_index; |
| 151 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 152 | bool is_add [default=true]; |
| 153 | vl_api_address_t ip_address; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 154 | }; |
| 155 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 159 | @param is_enable - enable protocol if non-zero, else disable |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 160 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 161 | autoreply define one_enable_disable |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 162 | { |
| 163 | u32 client_index; |
| 164 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 165 | bool is_enable [default=true]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 166 | }; |
| 167 | |
Filip Tehlar | ef2a5bf | 2017-05-30 07:14:46 +0200 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 178 | bool is_add [default=true]; |
| 179 | string ls_name[64]; |
Filip Tehlar | ef2a5bf | 2017-05-30 07:14:46 +0200 | [diff] [blame] | 180 | }; |
| 181 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 188 | autoreply define one_pitr_set_locator_set |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 189 | { |
| 190 | u32 client_index; |
| 191 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 192 | bool is_add [default=true]; |
| 193 | string ls_name[64]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 194 | }; |
| 195 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Filip Tehlar | 67a99f8 | 2017-03-10 13:18:02 +0100 | [diff] [blame] | 201 | @param is_add - add locator set if non-zero, else disable PETR |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 202 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 203 | autoreply define one_use_petr |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 204 | { |
| 205 | u32 client_index; |
| 206 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 207 | vl_api_address_t ip_address; |
| 208 | bool is_add [default=true]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 209 | }; |
| 210 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 223 | @param enable - ONE PETR enable if non-zero, else disable |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 231 | bool status; |
| 232 | vl_api_address_t ip_address; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 248 | @param is_enable - state of RLOC probing |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 249 | */ |
| 250 | define show_one_rloc_probe_state_reply |
| 251 | { |
| 252 | u32 context; |
| 253 | i32 retval; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 254 | bool is_enable; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 262 | autoreply define one_rloc_probe_enable_disable |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 263 | { |
| 264 | u32 client_index; |
| 265 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 266 | bool is_enable [default=true]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 267 | }; |
| 268 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 274 | autoreply define one_map_register_enable_disable |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 275 | { |
| 276 | u32 client_index; |
| 277 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 278 | bool is_enable [default=true]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 279 | }; |
| 280 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 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, |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Paul Vinciguerra | bdc0e6b | 2018-09-22 05:32:50 -0700 | [diff] [blame] | 314 | 1 - source/destination |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 315 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 316 | autoreply define one_map_request_mode |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 317 | { |
| 318 | u32 client_index; |
| 319 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 320 | vl_api_one_map_mode_t mode; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 321 | }; |
| 322 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 342 | vl_api_one_map_mode_t mode; |
Filip Tehlar | 974cdc6 | 2017-02-22 18:09:49 +0100 | [diff] [blame] | 343 | }; |
| 344 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 358 | autoreply manual_print manual_endian define one_add_del_remote_mapping |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 359 | { |
| 360 | u32 client_index; |
| 361 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 362 | bool is_add [default=true]; |
| 363 | bool is_src_dst; |
| 364 | bool del_all; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 365 | u32 vni; |
| 366 | u8 action; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 367 | vl_api_eid_t deid; |
| 368 | vl_api_eid_t seid; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 369 | u32 rloc_num; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 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; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 377 | }; |
| 378 | |
Filip Tehlar | d5a65db | 2017-05-17 17:21:10 +0200 | [diff] [blame] | 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 |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 384 | @param entry - ARP entry |
Filip Tehlar | d5a65db | 2017-05-17 17:21:10 +0200 | [diff] [blame] | 385 | */ |
| 386 | autoreply define one_add_del_l2_arp_entry |
| 387 | { |
| 388 | u32 client_index; |
| 389 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 390 | bool is_add [default=true]; |
Filip Tehlar | d5a65db | 2017-05-17 17:21:10 +0200 | [diff] [blame] | 391 | u32 bd; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 392 | vl_api_one_l2_arp_entry_t entry; |
Filip Tehlar | d5a65db | 2017-05-17 17:21:10 +0200 | [diff] [blame] | 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 | |
Filip Tehlar | d5a65db | 2017-05-17 17:21:10 +0200 | [diff] [blame] | 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 | |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 421 | typedef one_ndp_entry |
| 422 | { |
| 423 | vl_api_mac_address_t mac; |
| 424 | vl_api_ip6_address_t ip6; |
| 425 | }; |
| 426 | |
| 427 | |
Filip Tehlar | d630713 | 2017-09-04 18:54:33 +0200 | [diff] [blame] | 428 | autoreply define one_add_del_ndp_entry |
| 429 | { |
| 430 | u32 client_index; |
| 431 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 432 | bool is_add [default=true]; |
Filip Tehlar | d630713 | 2017-09-04 18:54:33 +0200 | [diff] [blame] | 433 | u32 bd; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 434 | vl_api_one_ndp_entry_t entry; |
Filip Tehlar | d630713 | 2017-09-04 18:54:33 +0200 | [diff] [blame] | 435 | }; |
| 436 | |
| 437 | define one_ndp_entries_get |
| 438 | { |
| 439 | u32 client_index; |
| 440 | u32 context; |
| 441 | u32 bd; |
| 442 | }; |
| 443 | |
Filip Tehlar | d630713 | 2017-09-04 18:54:33 +0200 | [diff] [blame] | 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 |
Paul Vinciguerra | bdc0e6b | 2018-09-22 05:32:50 -0700 | [diff] [blame] | 455 | @param protocol - supported values: |
Filip Tehlar | d630713 | 2017-09-04 18:54:33 +0200 | [diff] [blame] | 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 | |
Filip Tehlar | d5a65db | 2017-05-17 17:21:10 +0200 | [diff] [blame] | 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 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 530 | @param reid - remote EID |
| 531 | @param leid - local EID |
| 532 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 533 | autoreply define one_add_del_adjacency |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 534 | { |
| 535 | u32 client_index; |
| 536 | u32 context; |
| 537 | u8 is_add; |
| 538 | u32 vni; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 539 | vl_api_eid_t reid; |
| 540 | vl_api_eid_t leid; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 541 | }; |
| 542 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 549 | autoreply define one_add_del_map_request_itr_rlocs |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 550 | { |
| 551 | u32 client_index; |
| 552 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 553 | bool is_add [default=true]; |
| 554 | string locator_set_name[64]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 555 | }; |
| 556 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 563 | @param is_l2 - is l2 |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 564 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 565 | autoreply define one_eid_table_add_del_map |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 566 | { |
| 567 | u32 client_index; |
| 568 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 569 | bool is_add [default=true]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 570 | u32 vni; |
| 571 | u32 dp_table; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 572 | bool is_l2; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 573 | }; |
| 574 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 587 | string ls_name[64]; |
| 588 | bool is_index_set; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 602 | vl_api_interface_index_t sw_if_index; |
| 603 | vl_api_address_t ip_address; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 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, |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 640 | vl_api_one_filter_t filter; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 641 | }; |
| 642 | |
| 643 | /** \brief Dump ONE eid-table |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 649 | @param is_src_dst - EID is type of source/destination |
Onong Tayeng | 4ab5190 | 2020-05-13 21:25:57 +0530 | [diff] [blame] | 650 | @param deid - dst EID |
| 651 | @param seid - src EID |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 652 | @param vni - virtual network instance |
| 653 | @param ttl - time to live |
| 654 | @param authoritative - authoritative |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 655 | @param key - secret key |
| 656 | */ |
| 657 | |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 658 | // FIXME: action, authoritative |
| 659 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 660 | define one_eid_table_details |
| 661 | { |
| 662 | u32 context; |
| 663 | u32 locator_set_index; |
| 664 | u8 action; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 665 | bool is_local; |
| 666 | bool is_src_dst; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 667 | u32 vni; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 668 | vl_api_eid_t deid; |
| 669 | vl_api_eid_t seid; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 670 | u32 ttl; |
| 671 | u8 authoritative; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 672 | vl_api_hmac_key_t key; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 691 | bool eid_set; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 692 | u32 vni; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 693 | vl_api_eid_t eid; |
| 694 | vl_api_one_filter_t filter; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 695 | }; |
| 696 | |
| 697 | /** \brief ONE adjacency |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 698 | @param reid - remote EID |
| 699 | @param leid - local EID |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 700 | */ |
Paul Vinciguerra | e717482 | 2019-08-07 00:05:59 -0400 | [diff] [blame] | 701 | typedef one_adjacency |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 702 | { |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 703 | vl_api_eid_t reid; |
| 704 | vl_api_eid_t leid; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Paul Vinciguerra | bdc0e6b | 2018-09-22 05:32:50 -0700 | [diff] [blame] | 733 | @param vni - virtual network instance |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 751 | bool is_l2; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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 | { |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 781 | vl_api_address_t ip_address; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 801 | vl_api_address_t ip_address; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 833 | bool feature_status; |
| 834 | bool gpe_status; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 853 | string locator_set_name[64]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 854 | }; |
| 855 | |
Filip Tehlar | ef2a5bf | 2017-05-30 07:14:46 +0200 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 875 | bool is_set; |
| 876 | string locator_set_name[64]; |
Filip Tehlar | ef2a5bf | 2017-05-30 07:14:46 +0200 | [diff] [blame] | 877 | }; |
| 878 | |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 898 | bool status; |
| 899 | string locator_set_name[64]; |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 900 | }; |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 912 | vl_api_eid_t deid; |
| 913 | vl_api_eid_t seid; |
| 914 | vl_api_address_t rloc; |
| 915 | vl_api_address_t lloc; |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 916 | |
| 917 | u32 pkt_count; |
| 918 | u32 bytes; |
| 919 | }; |
| 920 | |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 921 | autoreply define one_stats_flush |
Filip Tehlar | 2151191 | 2017-04-07 10:41:42 +0200 | [diff] [blame] | 922 | { |
| 923 | u32 client_index; |
| 924 | u32 context; |
| 925 | }; |
| 926 | |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 927 | autoreply define one_stats_enable_disable |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 928 | { |
| 929 | u32 client_index; |
| 930 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 931 | bool is_enable [default=true]; |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 932 | }; |
| 933 | |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 944 | bool is_enable; |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 945 | }; |
| 946 | |
Filip Tehlar | 7048ff1 | 2017-07-27 08:09:14 +0200 | [diff] [blame] | 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 | |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 967 | autoreply define one_enable_disable_xtr_mode |
| 968 | { |
| 969 | u32 client_index; |
| 970 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 971 | bool is_enable [default=true]; |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 984 | bool is_enable; |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 985 | }; |
| 986 | |
| 987 | autoreply define one_enable_disable_petr_mode |
| 988 | { |
| 989 | u32 client_index; |
| 990 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 991 | bool is_enable [default=true]; |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 1004 | bool is_enable; |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 1005 | }; |
| 1006 | |
| 1007 | autoreply define one_enable_disable_pitr_mode |
| 1008 | { |
| 1009 | u32 client_index; |
| 1010 | u32 context; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 1011 | bool is_enable [default=true]; |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 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; |
Jakub Grajciar | 58db6e1 | 2020-01-30 13:26:43 +0100 | [diff] [blame] | 1024 | bool is_enable; |
Filip Tehlar | 111a5ce | 2017-09-06 10:07:39 +0200 | [diff] [blame] | 1025 | }; |
| 1026 | |
Filip Tehlar | 7eaf0e5 | 2017-03-08 08:46:51 +0100 | [diff] [blame] | 1027 | /* |
| 1028 | * Local Variables: |
| 1029 | * eval: (c-set-style "gnu") |
| 1030 | * End: |
| 1031 | */ |