Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +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 | |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 16 | option version = "2.0.0"; |
| 17 | |
| 18 | import "vnet/interface_types.api"; |
| 19 | import "vnet/ip/ip_types.api"; |
| 20 | |
| 21 | enum bfd_state { |
| 22 | BFD_STATE_API_ADMIN_DOWN = 0, |
| 23 | BFD_STATE_API_DOWN = 1, |
| 24 | BFD_STATE_API_INIT = 2, |
| 25 | BFD_STATE_API_UP = 3, |
| 26 | }; |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 27 | |
Klement Sekera | 239790f | 2017-02-16 10:53:53 +0100 | [diff] [blame] | 28 | /** \brief Set BFD echo source |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 29 | @param client_index - opaque cookie to identify the sender |
| 30 | @param context - sender context, to match reply w/ request |
Klement Sekera | 239790f | 2017-02-16 10:53:53 +0100 | [diff] [blame] | 31 | @param sw_if_index - interface to use as echo source |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 32 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 33 | autoreply define bfd_udp_set_echo_source |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 34 | { |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 35 | u32 client_index; |
| 36 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 37 | vl_api_interface_index_t sw_if_index; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 38 | }; |
| 39 | |
Klement Sekera | 239790f | 2017-02-16 10:53:53 +0100 | [diff] [blame] | 40 | /** \brief Delete BFD echo source |
| 41 | @param client_index - opaque cookie to identify the sender |
| 42 | @param context - sender context, to match reply w/ request |
| 43 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 44 | autoreply define bfd_udp_del_echo_source |
Klement Sekera | 239790f | 2017-02-16 10:53:53 +0100 | [diff] [blame] | 45 | { |
| 46 | u32 client_index; |
| 47 | u32 context; |
| 48 | }; |
| 49 | |
Matus Fabian | 2d3c7b9 | 2018-10-02 03:22:18 -0700 | [diff] [blame] | 50 | /** \brief Get BFD echo source |
| 51 | @param client_index - opaque cookie to identify the sender |
| 52 | @param context - sender context, to match reply w/ request |
| 53 | */ |
| 54 | define bfd_udp_get_echo_source |
| 55 | { |
| 56 | u32 client_index; |
| 57 | u32 context; |
| 58 | }; |
| 59 | |
| 60 | /** \brief Get BFD echo source reply |
| 61 | @param context - sender context, to match reply w/ request |
| 62 | @param retval - return code |
| 63 | @param sw_if_index - interface to use as echo source |
| 64 | @param is_set - non-zero if set |
| 65 | @param have_usable_ip4 - non-zero if have usable IPv4 address |
| 66 | @param ip4_addr - IPv4 address |
| 67 | @param have_usable_ip6 - non-zero if have usable IPv6 address |
| 68 | @param ip6_addr - IPv6 address |
| 69 | */ |
| 70 | define bfd_udp_get_echo_source_reply |
| 71 | { |
| 72 | u32 context; |
| 73 | i32 retval; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 74 | vl_api_interface_index_t sw_if_index; |
| 75 | bool is_set; |
| 76 | bool have_usable_ip4; |
| 77 | vl_api_ip4_address_t ip4_addr; |
| 78 | bool have_usable_ip6; |
| 79 | vl_api_ip6_address_t ip6_addr; |
Matus Fabian | 2d3c7b9 | 2018-10-02 03:22:18 -0700 | [diff] [blame] | 80 | }; |
| 81 | |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 82 | /** \brief Add UDP BFD session on interface |
| 83 | @param client_index - opaque cookie to identify the sender |
| 84 | @param context - sender context, to match reply w/ request |
| 85 | @param sw_if_index - sw index of the interface |
| 86 | @param desired_min_tx - desired min transmit interval (microseconds) |
| 87 | @param required_min_rx - required min receive interval (microseconds) |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 88 | @param local_addr - local address |
| 89 | @param peer_addr - peer address |
| 90 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 91 | @param detect_mult - detect multiplier (# of packets missed before connection goes down) |
| 92 | @param is_authenticated - non-zero if authentication is required |
| 93 | @param bfd_key_id - key id sent out in BFD packets (if is_authenticated) |
| 94 | @param conf_key_id - id of already configured key (if is_authenticated) |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 95 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 96 | autoreply define bfd_udp_add |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 97 | { |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 98 | u32 client_index; |
| 99 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 100 | vl_api_interface_index_t sw_if_index; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 101 | u32 desired_min_tx; |
| 102 | u32 required_min_rx; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 103 | vl_api_address_t local_addr; |
| 104 | vl_api_address_t peer_addr; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 105 | u8 detect_mult; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 106 | bool is_authenticated; |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 107 | u8 bfd_key_id; |
| 108 | u32 conf_key_id; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 109 | }; |
Neale Ranns | 63f2c7d | 2022-02-09 13:47:29 +0000 | [diff] [blame] | 110 | define bfd_udp_upd |
| 111 | { |
| 112 | u32 client_index; |
| 113 | u32 context; |
| 114 | vl_api_interface_index_t sw_if_index; |
| 115 | u32 desired_min_tx; |
| 116 | u32 required_min_rx; |
| 117 | vl_api_address_t local_addr; |
| 118 | vl_api_address_t peer_addr; |
| 119 | u8 detect_mult; |
| 120 | bool is_authenticated; |
| 121 | u8 bfd_key_id; |
| 122 | u32 conf_key_id; |
| 123 | }; |
| 124 | define bfd_udp_upd_reply |
| 125 | { |
| 126 | u32 context; |
| 127 | i32 retval; |
| 128 | u32 stats_index; |
| 129 | }; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 130 | |
Klement Sekera | a57a970 | 2017-02-02 06:58:07 +0100 | [diff] [blame] | 131 | /** \brief Modify UDP BFD session on interface |
| 132 | @param client_index - opaque cookie to identify the sender |
| 133 | @param context - sender context, to match reply w/ request |
| 134 | @param sw_if_index - sw index of the interface |
| 135 | @param desired_min_tx - desired min transmit interval (microseconds) |
| 136 | @param required_min_rx - required min receive interval (microseconds) |
| 137 | @param local_addr - local address |
| 138 | @param peer_addr - peer address |
| 139 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
| 140 | @param detect_mult - detect multiplier (# of packets missed before connection goes down) |
| 141 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 142 | autoreply define bfd_udp_mod |
Klement Sekera | a57a970 | 2017-02-02 06:58:07 +0100 | [diff] [blame] | 143 | { |
| 144 | u32 client_index; |
| 145 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 146 | vl_api_interface_index_t sw_if_index; |
Klement Sekera | a57a970 | 2017-02-02 06:58:07 +0100 | [diff] [blame] | 147 | u32 desired_min_tx; |
| 148 | u32 required_min_rx; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 149 | vl_api_address_t local_addr; |
| 150 | vl_api_address_t peer_addr; |
Klement Sekera | a57a970 | 2017-02-02 06:58:07 +0100 | [diff] [blame] | 151 | u8 detect_mult; |
| 152 | }; |
| 153 | |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 154 | /** \brief Delete UDP BFD session on interface |
| 155 | @param client_index - opaque cookie to identify the sender |
| 156 | @param context - sender context, to match reply w/ request |
| 157 | @param sw_if_index - sw index of the interface |
| 158 | @param local_addr - local address |
| 159 | @param peer_addr - peer address |
| 160 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
| 161 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 162 | autoreply define bfd_udp_del |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 163 | { |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 164 | u32 client_index; |
| 165 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 166 | vl_api_interface_index_t sw_if_index; |
| 167 | vl_api_address_t local_addr; |
| 168 | vl_api_address_t peer_addr; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 169 | }; |
| 170 | |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 171 | /** \brief Get all BFD sessions |
| 172 | @param client_index - opaque cookie to identify the sender |
| 173 | @param context - sender context, to match reply w/ request |
| 174 | */ |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 175 | define bfd_udp_session_dump |
| 176 | { |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 177 | u32 client_index; |
| 178 | u32 context; |
| 179 | }; |
| 180 | |
| 181 | /** \brief BFD session details structure |
| 182 | @param context - sender context, to match reply w/ request |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 183 | @param sw_if_index - sw index of the interface |
| 184 | @param local_addr - local address |
| 185 | @param peer_addr - peer address |
| 186 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
| 187 | @param state - session state |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 188 | @param is_authenticated - non-zero if authentication in-use, zero otherwise |
| 189 | @param bfd_key_id - ID of key currently in-use if auth is on |
| 190 | @param conf_key_id - configured key ID for this session |
Klement Sekera | a57a970 | 2017-02-02 06:58:07 +0100 | [diff] [blame] | 191 | @param required_min_rx - required min receive interval (microseconds) |
| 192 | @param desired_min_tx - desired min transmit interval (microseconds) |
| 193 | @param detect_mult - detect multiplier (# of packets missed before connection goes down) |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 194 | */ |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 195 | define bfd_udp_session_details |
| 196 | { |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 197 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 198 | vl_api_interface_index_t sw_if_index; |
| 199 | vl_api_address_t local_addr; |
| 200 | vl_api_address_t peer_addr; |
| 201 | vl_api_bfd_state_t state; |
| 202 | bool is_authenticated; |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 203 | u8 bfd_key_id; |
| 204 | u32 conf_key_id; |
Klement Sekera | a57a970 | 2017-02-02 06:58:07 +0100 | [diff] [blame] | 205 | u32 required_min_rx; |
| 206 | u32 desired_min_tx; |
| 207 | u8 detect_mult; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 208 | }; |
| 209 | |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 210 | /** \brief Set flags of BFD UDP session |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 211 | @param client_index - opaque cookie to identify the sender |
| 212 | @param context - sender context, to match reply w/ request |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 213 | @param sw_if_index - sw index of the interface |
| 214 | @param local_addr - local address |
| 215 | @param peer_addr - peer address |
| 216 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 217 | @param flags - set the admin state, 1 = up, 0 = down |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 218 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 219 | autoreply define bfd_udp_session_set_flags |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 220 | { |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 221 | u32 client_index; |
| 222 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 223 | vl_api_interface_index_t sw_if_index; |
| 224 | vl_api_address_t local_addr; |
| 225 | vl_api_address_t peer_addr; |
| 226 | vl_api_if_status_flags_t flags; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 227 | }; |
| 228 | |
Ole Troan | 4376ab2 | 2021-03-03 10:40:05 +0100 | [diff] [blame] | 229 | service { |
| 230 | rpc want_bfd_events returns want_bfd_events_reply |
| 231 | events bfd_udp_session_event; |
| 232 | }; |
| 233 | |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 234 | /** \brief Register for BFD events |
| 235 | @param client_index - opaque cookie to identify the sender |
| 236 | @param context - sender context, to match reply w/ request |
| 237 | @param enable_disable - 1 => register for events, 0 => cancel registration |
| 238 | @param pid - sender's pid |
| 239 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 240 | autoreply define want_bfd_events |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 241 | { |
| 242 | u32 client_index; |
| 243 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 244 | bool enable_disable; |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 245 | u32 pid; |
| 246 | }; |
| 247 | |
Ole Troan | 4376ab2 | 2021-03-03 10:40:05 +0100 | [diff] [blame] | 248 | define bfd_udp_session_event |
| 249 | { |
| 250 | u32 client_index; |
| 251 | u32 pid; |
| 252 | vl_api_interface_index_t sw_if_index; |
| 253 | vl_api_address_t local_addr; |
| 254 | vl_api_address_t peer_addr; |
| 255 | vl_api_bfd_state_t state; |
| 256 | bool is_authenticated; |
| 257 | u8 bfd_key_id; |
| 258 | u32 conf_key_id; |
| 259 | u32 required_min_rx; |
| 260 | u32 desired_min_tx; |
| 261 | u8 detect_mult; |
| 262 | }; |
| 263 | |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 264 | /** \brief BFD UDP - add/replace key to configuration |
| 265 | @param client_index - opaque cookie to identify the sender |
| 266 | @param context - sender context, to match reply w/ request |
| 267 | @param conf_key_id - key ID to add/replace/delete |
| 268 | @param key_len - length of key (must be non-zero) |
| 269 | @param auth_type - authentication type (RFC 5880/4.1/Auth Type) |
| 270 | @param key - key data |
| 271 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 272 | autoreply define bfd_auth_set_key |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 273 | { |
| 274 | u32 client_index; |
| 275 | u32 context; |
| 276 | u32 conf_key_id; |
| 277 | u8 key_len; |
| 278 | u8 auth_type; |
| 279 | u8 key[20]; |
| 280 | }; |
| 281 | |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 282 | /** \brief BFD UDP - delete key from configuration |
| 283 | @param client_index - opaque cookie to identify the sender |
| 284 | @param context - sender context, to match reply w/ request |
| 285 | @param conf_key_id - key ID to add/replace/delete |
| 286 | @param key_len - length of key (must be non-zero) |
| 287 | @param key - key data |
| 288 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 289 | autoreply define bfd_auth_del_key |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 290 | { |
| 291 | u32 client_index; |
| 292 | u32 context; |
| 293 | u32 conf_key_id; |
| 294 | }; |
| 295 | |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 296 | /** \brief Get a list of configured authentication keys |
| 297 | @param client_index - opaque cookie to identify the sender |
| 298 | @param context - sender context, to match reply w/ request |
| 299 | */ |
| 300 | define bfd_auth_keys_dump |
| 301 | { |
| 302 | u32 client_index; |
| 303 | u32 context; |
| 304 | }; |
| 305 | |
| 306 | /** \brief BFD authentication key details |
| 307 | @param context - sender context, to match reply w/ request |
| 308 | @param conf_key_id - configured key ID |
| 309 | @param use_count - how many BFD sessions currently use this key |
| 310 | @param auth_type - authentication type (RFC 5880/4.1/Auth Type) |
| 311 | */ |
| 312 | define bfd_auth_keys_details |
| 313 | { |
| 314 | u32 context; |
| 315 | u32 conf_key_id; |
| 316 | u32 use_count; |
| 317 | u8 auth_type; |
| 318 | }; |
| 319 | |
| 320 | /** \brief BFD UDP - activate/change authentication |
| 321 | @param client_index - opaque cookie to identify the sender |
| 322 | @param context - sender context, to match reply w/ request |
| 323 | @param sw_if_index - sw index of the interface |
| 324 | @param local_addr - local address |
| 325 | @param peer_addr - peer address |
| 326 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
| 327 | @param is_delayed - change is applied once peer applies the change (on first received packet with this auth) |
| 328 | @param bfd_key_id - key id sent out in BFD packets |
| 329 | @param conf_key_id - id of already configured key |
| 330 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 331 | autoreply define bfd_udp_auth_activate |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 332 | { |
| 333 | u32 client_index; |
| 334 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 335 | vl_api_interface_index_t sw_if_index; |
| 336 | vl_api_address_t local_addr; |
| 337 | vl_api_address_t peer_addr; |
| 338 | bool is_delayed; |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 339 | u8 bfd_key_id; |
| 340 | u32 conf_key_id; |
| 341 | }; |
| 342 | |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 343 | /** \brief BFD UDP - deactivate authentication |
| 344 | @param client_index - opaque cookie to identify the sender |
| 345 | @param context - sender context, to match reply w/ request |
| 346 | @param sw_if_index - sw index of the interface |
| 347 | @param local_addr - local address |
| 348 | @param peer_addr - peer address |
| 349 | @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 |
| 350 | @param is_delayed - change is applied once peer applies the change (on first received non-authenticated packet) |
| 351 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 352 | autoreply define bfd_udp_auth_deactivate |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 353 | { |
| 354 | u32 client_index; |
| 355 | u32 context; |
Jakub Grajciar | 4682feb | 2019-09-02 13:28:52 +0200 | [diff] [blame] | 356 | vl_api_interface_index_t sw_if_index; |
| 357 | vl_api_address_t local_addr; |
| 358 | vl_api_address_t peer_addr; |
| 359 | bool is_delayed; |
Klement Sekera | b17dd96 | 2017-01-09 07:43:48 +0100 | [diff] [blame] | 360 | }; |
| 361 | |
Neale Ranns | 5c7e579 | 2022-08-09 00:03:17 +0000 | [diff] [blame] | 362 | counters bfd_udp { |
| 363 | none { |
| 364 | severity info; |
| 365 | type counter64; |
| 366 | units "packets"; |
| 367 | description "OK"; |
| 368 | }; |
| 369 | no_session { |
| 370 | severity error; |
| 371 | type counter64; |
| 372 | units "packets"; |
| 373 | description "no-session"; |
| 374 | }; |
| 375 | bad { |
| 376 | severity error; |
| 377 | type counter64; |
| 378 | units "packets"; |
| 379 | description "bad packet"; |
| 380 | }; |
| 381 | length { |
| 382 | severity error; |
| 383 | type counter64; |
| 384 | units "packets"; |
| 385 | description "too short"; |
| 386 | }; |
| 387 | failed_verification { |
| 388 | severity error; |
| 389 | type counter64; |
| 390 | units "packets"; |
| 391 | description "failed-verification"; |
| 392 | }; |
| 393 | src_mismatch { |
| 394 | severity error; |
| 395 | type counter64; |
| 396 | units "packets"; |
| 397 | description "src-mismatch"; |
| 398 | }; |
| 399 | dst_mismatch { |
| 400 | severity error; |
| 401 | type counter64; |
| 402 | units "packets"; |
| 403 | description "dst-mismatch"; |
| 404 | }; |
| 405 | ttl { |
| 406 | severity error; |
| 407 | type counter64; |
| 408 | units "packets"; |
| 409 | description "ttl"; |
| 410 | }; |
| 411 | }; |
| 412 | |
| 413 | paths { |
| 414 | "/err/bfd-udp4-input" "bfd"; |
| 415 | "/err/bfd-udp6-input" "bfd"; |
| 416 | "/err/bfd-udp4-echo-input" "bfd"; |
| 417 | "/err/bfd-udp6-echo-input" "bfd"; |
| 418 | }; |
| 419 | |
Pavel Kotucek | 20d1232 | 2016-12-21 09:13:17 +0100 | [diff] [blame] | 420 | /* |
| 421 | * Local Variables: |
| 422 | * eval: (c-set-style "gnu") |
| 423 | * End: |
| 424 | */ |