/src/frr/zebra/zebra_errors.c
Line | Count | Source |
1 | | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | | /* |
3 | | * Zebra-specific error messages. |
4 | | * Copyright (C) 2018 Cumulus Networks, Inc. |
5 | | * Quentin Young |
6 | | */ |
7 | | |
8 | | #include <zebra.h> |
9 | | |
10 | | #include "lib/ferr.h" |
11 | | #include "zebra_errors.h" |
12 | | |
13 | | /* clang-format off */ |
14 | | static struct log_ref ferr_zebra_err[] = { |
15 | | { |
16 | | .code = EC_ZEBRA_LM_RESPONSE, |
17 | | .title = "Error reading response from label manager", |
18 | | .description = "Zebra could not read the ZAPI header from the label manager", |
19 | | .suggestion = "Wait for the error to resolve on its own. If it does not resolve, restart Zebra.", |
20 | | }, |
21 | | { |
22 | | .code = EC_ZEBRA_LM_NO_SUCH_CLIENT, |
23 | | .title = "Label manager could not find ZAPI client", |
24 | | .description = "Zebra was unable to find a ZAPI client matching the given protocol and instance number.", |
25 | | .suggestion = "Ensure clients which use the label manager are properly configured and running.", |
26 | | }, |
27 | | { |
28 | | .code = EC_ZEBRA_LM_RELAY_FAILED, |
29 | | .title = "Zebra could not relay label manager response", |
30 | | .description = "Zebra found the client and instance to relay the label manager response or request to, but was not able to do so, possibly because the connection was closed.", |
31 | | .suggestion = "Ensure clients which use the label manager are properly configured and running.", |
32 | | }, |
33 | | { |
34 | | .code = EC_ZEBRA_LM_BAD_INSTANCE, |
35 | | .title = "Mismatch between ZAPI instance and encoded message instance", |
36 | | .description = "While relaying a request to the external label manager, Zebra noticed that the instance number encoded in the message did not match the client instance number.", |
37 | | .suggestion = "Notify a developer.", |
38 | | }, |
39 | | { |
40 | | .code = EC_ZEBRA_LM_EXHAUSTED_LABELS, |
41 | | .title = "Zebra label manager used all available labels", |
42 | | .description = "Zebra is unable to assign additional label chunks because it has exhausted its assigned label range.", |
43 | | .suggestion = "Make the label range bigger and restart Zebra.", |
44 | | }, |
45 | | { |
46 | | .code = EC_ZEBRA_LM_DAEMON_MISMATCH, |
47 | | .title = "Daemon mismatch when releasing label chunks", |
48 | | .description = "Zebra noticed a mismatch between a label chunk and a protocol daemon number or instance when releasing unused label chunks.", |
49 | | .suggestion = "Ignore this error.", |
50 | | }, |
51 | | { |
52 | | .code = EC_ZEBRA_LM_UNRELEASED_CHUNK, |
53 | | .title = "Zebra did not free any label chunks", |
54 | | .description = "Zebra's chunk cleanup procedure ran, but no label chunks were released.", |
55 | | .suggestion = "Ignore this error.", |
56 | | }, |
57 | | { |
58 | | .code = EC_ZEBRA_DP_INVALID_RC, |
59 | | .title = "Dataplane returned invalid status code", |
60 | | .description = "The underlying dataplane responded to a Zebra message or other interaction with an unrecognized, unknown or invalid status code.", |
61 | | .suggestion = "Notify a developer.", |
62 | | }, |
63 | | { |
64 | | .code = EC_ZEBRA_WQ_NONEXISTENT, |
65 | | .title = "A necessary work queue does not exist.", |
66 | | .description = "A necessary work queue does not exist.", |
67 | | .suggestion = "Notify a developer.", |
68 | | }, |
69 | | { |
70 | | .code = EC_ZEBRA_FEC_ADD_FAILED, |
71 | | .title = "Failed to add FEC for MPLS client", |
72 | | .description = "A client requested a label binding for a new FEC, but Zebra was unable to add the FEC to its internal table.", |
73 | | .suggestion = "Notify a developer.", |
74 | | }, |
75 | | { |
76 | | .code = EC_ZEBRA_FEC_LABEL_INDEX_LABEL_CONFLICT, |
77 | | .title = "Refused to add FEC for MPLS client with both label index and label specified", |
78 | | .description = "A client requested a label binding for a new FEC specifying a label index and a label at the same time.", |
79 | | .suggestion = "Notify a developer.", |
80 | | }, |
81 | | { |
82 | | .code = EC_ZEBRA_FEC_RM_FAILED, |
83 | | .title = "Failed to remove FEC for MPLS client", |
84 | | .description = "Zebra was unable to find and remove a FEC in its internal table.", |
85 | | .suggestion = "Notify a developer.", |
86 | | }, |
87 | | { |
88 | | .code = EC_ZEBRA_IRDP_LEN_MISMATCH, |
89 | | .title = "IRDP message length mismatch", |
90 | | .description = "The length encoded in the IP TLV does not match the length of the packet received.", |
91 | | .suggestion = "Notify a developer.", |
92 | | }, |
93 | | { |
94 | | .code = EC_ZEBRA_RNH_UNKNOWN_FAMILY, |
95 | | .title = "Attempted to perform nexthop update for unknown address family", |
96 | | .description = "Zebra attempted to perform a nexthop update for unknown address family", |
97 | | .suggestion = "Notify a developer.", |
98 | | }, |
99 | | { |
100 | | .code = EC_ZEBRA_DP_INSTALL_FAIL, |
101 | | .title = "Dataplane installation failure", |
102 | | .description = "Installation of routes to underlying dataplane failed.", |
103 | | .suggestion = "Check all configuration parameters for correctness.", |
104 | | }, |
105 | | { |
106 | | .code = EC_ZEBRA_DP_DELETE_FAIL, |
107 | | .title = "Dataplane deletion failure", |
108 | | .description = "Deletion of routes from underlying dataplane failed.", |
109 | | .suggestion = "Check all configuration parameters for correctness.", |
110 | | }, |
111 | | { |
112 | | .code = EC_ZEBRA_TABLE_LOOKUP_FAILED, |
113 | | .title = "Zebra table lookup failed", |
114 | | .description = "Zebra attempted to look up a table for a particular address family and subsequent address family, but didn't find anything.", |
115 | | .suggestion = "If you entered a command to trigger this error, make sure you entered the arguments correctly. Check your config file for any potential errors. If these look correct, seek help.", |
116 | | }, |
117 | | { |
118 | | .code = EC_ZEBRA_NETLINK_NOT_AVAILABLE, |
119 | | .title = "Netlink backend not available", |
120 | | .description = "FRR was not compiled with support for Netlink. Any operations that require Netlink will fail.", |
121 | | .suggestion = "Recompile FRR with Netlink, or install a package that supports this feature.", |
122 | | }, |
123 | | { |
124 | | .code = EC_ZEBRA_PROTOBUF_NOT_AVAILABLE, |
125 | | .title = "Protocol Buffers backend not available", |
126 | | .description = "FRR was not compiled with support for Protocol Buffers. Any operations that require Protobuf will fail.", |
127 | | .suggestion = "Recompile FRR with Protobuf support, or install a package that supports this feature.", |
128 | | }, |
129 | | { |
130 | | .code = EC_ZEBRA_TM_EXHAUSTED_IDS, |
131 | | .title = "Table manager used all available IDs", |
132 | | .description = "Zebra's table manager used up all IDs available to it and can't assign any more.", |
133 | | .suggestion = "Reconfigure Zebra with a larger range of table IDs.", |
134 | | }, |
135 | | { |
136 | | .code = EC_ZEBRA_TM_DAEMON_MISMATCH, |
137 | | .title = "Daemon mismatch when releasing table chunks", |
138 | | .description = "Zebra noticed a mismatch between a table ID chunk and a protocol daemon number instance when releasing unused table chunks.", |
139 | | .suggestion = "Ignore this error.", |
140 | | }, |
141 | | { |
142 | | .code = EC_ZEBRA_TM_UNRELEASED_CHUNK, |
143 | | .title = "Zebra did not free any table chunks", |
144 | | .description = "Zebra's table chunk cleanup procedure ran, but no table chunks were released.", |
145 | | .suggestion = "Ignore this error.", |
146 | | }, |
147 | | { |
148 | | .code = EC_ZEBRA_UNKNOWN_FAMILY, |
149 | | .title = "Address family specifier unrecognized", |
150 | | .description = "Zebra attempted to process information from somewhere that included an address family specifier, but did not recognize the provided specifier.", |
151 | | .suggestion = "Ensure that your configuration is correct. If it is, notify a developer.", |
152 | | }, |
153 | | { |
154 | | .code = EC_ZEBRA_TM_WRONG_PROTO, |
155 | | .title = "Incorrect protocol for table manager client", |
156 | | .description = "Zebra's table manager only accepts connections from daemons managing dynamic routing protocols, but received a connection attempt from a daemon that does not meet this criterion.", |
157 | | .suggestion = "Notify a developer.", |
158 | | }, |
159 | | { |
160 | | .code = EC_ZEBRA_PROTO_OR_INSTANCE_MISMATCH, |
161 | | .title = "Mismatch between message and client protocol and/or instance", |
162 | | .description = "Zebra detected a mismatch between a client's protocol and/or instance numbers versus those stored in a message transiting its socket.", |
163 | | .suggestion = "Notify a developer.", |
164 | | }, |
165 | | { |
166 | | .code = EC_ZEBRA_LM_CANNOT_ASSIGN_CHUNK, |
167 | | .title = "Label manager unable to assign label chunk", |
168 | | .description = "Zebra's label manager was unable to assign a label chunk to client.", |
169 | | .suggestion = "Ensure that Zebra has a sufficient label range available and that there is not a range collision.", |
170 | | }, |
171 | | { |
172 | | .code = EC_ZEBRA_LM_ALIENS, |
173 | | .title = "Label request from unidentified client", |
174 | | .description = "Zebra's label manager received a label request from an unidentified client.", |
175 | | .suggestion = "Notify a developer.", |
176 | | }, |
177 | | { |
178 | | .code = EC_ZEBRA_TM_CANNOT_ASSIGN_CHUNK, |
179 | | .title = "Table manager unable to assign table chunk", |
180 | | .description = "Zebra's table manager was unable to assign a table chunk to a client.", |
181 | | .suggestion = "Ensure that Zebra has sufficient table ID range available and that there is not a range collision.", |
182 | | }, |
183 | | { |
184 | | .code = EC_ZEBRA_TM_ALIENS, |
185 | | .title = "Table request from unidentified client", |
186 | | .description = "Zebra's table manager received a table request from an unidentified client.", |
187 | | .suggestion = "Notify a developer.", |
188 | | }, |
189 | | { |
190 | | .code = EC_ZEBRA_RECVBUF, |
191 | | .title = "Cannot set receive buffer size", |
192 | | .description = "Socket receive buffer size could not be set in the kernel", |
193 | | .suggestion = "Ignore this error.", |
194 | | }, |
195 | | { |
196 | | .code = EC_ZEBRA_UNKNOWN_NLMSG, |
197 | | .title = "Unknown Netlink message type", |
198 | | .description = "Zebra received a Netlink message with an unrecognized type field.", |
199 | | .suggestion = "Verify that you are running the latest version of FRR to ensure kernel compatibility. If the problem persists, notify a developer.", |
200 | | }, |
201 | | { |
202 | | .code = EC_ZEBRA_RECVMSG_OVERRUN, |
203 | | .title = "Receive buffer overrun", |
204 | | .description = "The kernel's buffer for a socket has been overrun, rendering the socket invalid.", |
205 | | .suggestion = "Zebra will restart itself. Notify a developer if this issue shows up frequently.", |
206 | | }, |
207 | | { |
208 | | .code = EC_ZEBRA_NETLINK_LENGTH_ERROR, |
209 | | .title = "Netlink message length mismatch", |
210 | | .description = "Zebra received a Netlink message with incorrect length fields.", |
211 | | .suggestion = "Notify a developer.", |
212 | | }, |
213 | | { |
214 | | .code = EC_ZEBRA_NETLINK_LENGTH_ERROR, |
215 | | .title = "Netlink message length mismatch", |
216 | | .description = "Zebra received a Netlink message with incorrect length fields.", |
217 | | .suggestion = "Notify a developer.", |
218 | | }, |
219 | | { |
220 | | .code = EC_ZEBRA_UNEXPECTED_MESSAGE, |
221 | | .title = "Received unexpected response from kernel", |
222 | | .description = "Received unexpected response from the kernel via Netlink.", |
223 | | .suggestion = "Notify a developer.", |
224 | | }, |
225 | | { |
226 | | .code = EC_ZEBRA_NETLINK_BAD_SEQUENCE, |
227 | | .title = "Bad sequence number in Netlink message", |
228 | | .description = "Zebra received a Netlink message with a bad sequence number.", |
229 | | .suggestion = "Notify a developer.", |
230 | | }, |
231 | | { |
232 | | .code = EC_ZEBRA_BAD_MULTIPATH_NUM, |
233 | | .title = "Multipath number was out of valid range", |
234 | | .description = "Multipath number specified to Zebra must be in the appropriate range", |
235 | | .suggestion = "Provide a multipath number that is within its accepted range", |
236 | | }, |
237 | | { |
238 | | .code = EC_ZEBRA_PREFIX_PARSE_ERROR, |
239 | | .title = "String could not be parsed as IP prefix", |
240 | | .description = "There was an attempt to parse a string as an IPv4 or IPv6 prefix, but the string could not be parsed and this operation failed.", |
241 | | .suggestion = "Notify a developer.", |
242 | | }, |
243 | | { |
244 | | .code = EC_ZEBRA_MAC_ADD_FAILED, |
245 | | .title = "Failed to add MAC address to interface", |
246 | | .description = "Zebra attempted to assign a MAC address to a vxlan interface but failed", |
247 | | .suggestion = "Notify a developer.", |
248 | | }, |
249 | | { |
250 | | .code = EC_ZEBRA_VNI_DEL_FAILED, |
251 | | .title = "Failed to delete VNI", |
252 | | .description = "Zebra attempted to delete a VNI entry and failed", |
253 | | .suggestion = "Notify a developer.", |
254 | | }, |
255 | | { |
256 | | .code = EC_ZEBRA_VTEP_ADD_FAILED, |
257 | | .title = "Adding remote VTEP failed", |
258 | | .description = "Zebra attempted to add a remote VTEP and failed.", |
259 | | .suggestion = "Notify a developer.", |
260 | | }, |
261 | | { |
262 | | .code = EC_ZEBRA_VNI_ADD_FAILED, |
263 | | .title = "Adding VNI failed", |
264 | | .description = "Zebra attempted to add a VNI hash to an interface and failed", |
265 | | .suggestion = "Notify a developer.", |
266 | | }, |
267 | | { |
268 | | .code = EC_ZEBRA_NS_NOTIFY_READ, |
269 | | .title = "Zebra failed to read namespace inotify information", |
270 | | .description = "Zebra received an event from inotify, but failed to read what it was.", |
271 | | .suggestion = "Notify a developer.", |
272 | | }, |
273 | | { |
274 | | .code = EC_ZEBRA_NHG_TABLE_INSERT_FAILED, |
275 | | .title = |
276 | | "Nexthop Group Hash Table Insert Failure", |
277 | | .description = |
278 | | "Zebra failed in inserting a Nexthop Group into its hash tables.", |
279 | | .suggestion = |
280 | | "Check to see if the entry already exists or if the netlink message was parsed incorrectly." |
281 | | }, |
282 | | { |
283 | | .code = EC_ZEBRA_NHG_SYNC, |
284 | | .title = |
285 | | "Zebra's Nexthop Groups are out of sync", |
286 | | .description = |
287 | | "Zebra's nexthop group tables are out of sync with the nexthop groups in the fib.", |
288 | | .suggestion = |
289 | | "Check the current status of the kernels nexthop groups and compare it to Zebra's." |
290 | | }, |
291 | | { |
292 | | .code = EC_ZEBRA_NHG_FIB_UPDATE, |
293 | | .title = |
294 | | "Zebra failed updating the fib with Nexthop Group", |
295 | | .description = |
296 | | "Zebra was not able to successfully install a new nexthop group into the fib", |
297 | | .suggestion = |
298 | | "Check to see if the nexthop group on the route you tried to install is valid." |
299 | | }, |
300 | | { |
301 | | .code = EC_ZEBRA_NS_NO_DEFAULT, |
302 | | .title = "Zebra NameSpace failed to find Default", |
303 | | .description = "Zebra NameSpace subsystem failed to find a Default namespace during initialization.", |
304 | | .suggestion = "Open an Issue with all relevant log files and restart FRR", |
305 | | }, |
306 | | /* Warnings */ |
307 | | { |
308 | | .code = EC_ZEBRAING_LM_PROTO_MISMATCH, |
309 | | .title = |
310 | | "Zebra label manager received malformed label request", |
311 | | .description = |
312 | | "Zebra's label manager received a label request from a client whose protocol type does not match the protocol field received in the message.", |
313 | | .suggestion = |
314 | | "This is a bug. Please report it.", |
315 | | }, |
316 | | { |
317 | | .code = EC_ZEBRA_LSP_INSTALL_FAILURE, |
318 | | .title = |
319 | | "Zebra failed to install LSP into the kernel", |
320 | | .description = |
321 | | "Zebra made an attempt to install a label switched path, but the kernel indicated that the installation was not successful.", |
322 | | .suggestion = |
323 | | "Wait for Zebra to reattempt installation.", |
324 | | }, |
325 | | { |
326 | | .code = EC_ZEBRA_LSP_DELETE_FAILURE, |
327 | | .title = |
328 | | "Zebra failed to remove LSP from the kernel", |
329 | | .description = |
330 | | "Zebra made an attempt to remove a label switched path, but the kernel indicated that the deletion was not successful.", |
331 | | .suggestion = |
332 | | "Wait for Zebra to reattempt deletion.", |
333 | | }, |
334 | | { |
335 | | .code = EC_ZEBRA_MPLS_SUPPORT_DISABLED, |
336 | | .title = |
337 | | "Zebra will not run with MPLS support", |
338 | | .description = |
339 | | "Zebra noticed that the running kernel does not support MPLS, so it disabled MPLS support.", |
340 | | .suggestion = |
341 | | "If you want MPLS support, upgrade the kernel to a version that provides MPLS support.", |
342 | | }, |
343 | | { |
344 | | .code = EC_ZEBRA_SYSCTL_FAILED, |
345 | | .title = "A call to sysctl() failed", |
346 | | .description = |
347 | | "sysctl() returned a nonzero exit code, indicating an error.", |
348 | | .suggestion = |
349 | | "The log message should contain further details on the specific error that occurred; investigate the reported error.", |
350 | | }, |
351 | | { |
352 | | .code = EC_ZEBRA_NS_VRF_CREATION_FAILED, |
353 | | .title = |
354 | | "Zebra failed to create namespace VRF", |
355 | | .description = |
356 | | "Zebra failed to create namespace VRF", |
357 | | .suggestion = "", |
358 | | }, |
359 | | { |
360 | | .code = EC_ZEBRA_NS_DELETION_FAILED_NO_VRF, |
361 | | .title = |
362 | | "Zebra attempted to delete nonexistent namespace", |
363 | | .description = |
364 | | "Zebra attempted to delete a particular namespace, but no VRF associated with that namespace could be found to delete.", |
365 | | .suggestion = "Please report this bug.", |
366 | | }, |
367 | | { |
368 | | .code = EC_ZEBRA_IFLIST_FAILED, |
369 | | .title = |
370 | | "Zebra interface listing failed", |
371 | | .description = |
372 | | "Zebra encountered an error attempting to query sysctl for a list of interfaces on the system.", |
373 | | .suggestion = |
374 | | "Check that Zebra is running with the appropriate permissions. If it is, please report this as a bug.", |
375 | | }, |
376 | | { |
377 | | .code = EC_ZEBRA_IRDP_BAD_CHECKSUM, |
378 | | .title = |
379 | | "Zebra received ICMP packet with invalid checksum", |
380 | | .description = |
381 | | "Zebra received an ICMP packet with a bad checksum and has silently ignored it.", |
382 | | .suggestion = |
383 | | "If the problem continues to occur, investigate the source of the bad ICMP packets.", |
384 | | }, |
385 | | { |
386 | | .code = EC_ZEBRA_IRDP_BAD_TYPE_CODE, |
387 | | .title = |
388 | | "Zebra received ICMP packet with bad type code", |
389 | | .description = |
390 | | "Zebra received an ICMP packet with a bad code for the message type and has silently ignored it.", |
391 | | .suggestion = |
392 | | "If the problem continues to occur, investigate the source of the bad ICMP packets.", |
393 | | }, |
394 | | { |
395 | | .code = EC_ZEBRA_IRDP_BAD_RX_FLAGS, |
396 | | .title = |
397 | | "Zebra received IRDP packet while operating in wrong mode", |
398 | | .description = |
399 | | "Zebra received a multicast IRDP packet while operating in unicast mode, or vice versa.", |
400 | | .suggestion = |
401 | | "If you wish to receive the messages, change your IRDP settings accordingly.", |
402 | | }, |
403 | | { |
404 | | .code = EC_ZEBRA_RNH_NO_TABLE, |
405 | | .title = |
406 | | "Zebra could not find table for next hop", |
407 | | .description = |
408 | | "Zebra attempted to add a next hop but could not find the appropriate table to install it in.", |
409 | | .suggestion = "Please report this bug.", |
410 | | }, |
411 | | { |
412 | | .code = EC_ZEBRA_FPM_FORMAT_UNKNOWN, |
413 | | .title = |
414 | | "Unknown message format for Zebra's FPM module", |
415 | | .description = |
416 | | "Zebra's FPM module takes an argument which specifies the message format to use, but the format was either not provided or was not a valid format. The FPM interface will be disabled.", |
417 | | .suggestion = |
418 | | "Provide or correct the module argument to provide a valid format. See documentation for further information.", |
419 | | }, |
420 | | { |
421 | | .code = EC_ZEBRA_CLIENT_IO_ERROR, |
422 | | .title = |
423 | | "Zebra client connection failed", |
424 | | .description = |
425 | | "A Zebra client encountered an I/O error and is shutting down. This can occur under normal circumstances, such as when FRR is restarting or shutting down; it can also happen if the daemon crashed. Usually this warning can be ignored.", |
426 | | .suggestion = |
427 | | "Ignore this warning, it is mostly informational.", |
428 | | }, |
429 | | { |
430 | | .code = EC_ZEBRA_CLIENT_WRITE_FAILED, |
431 | | .title = |
432 | | "Zebra failed to send message to client", |
433 | | .description = |
434 | | "Zebra attempted to send a message to one of its clients, but the write operation failed. The connection will be closed.", |
435 | | .suggestion = |
436 | | "Ignore this warning, it is mostly informational.", |
437 | | }, |
438 | | { |
439 | | .code = EC_ZEBRA_NETLINK_INVALID_AF, |
440 | | .title = |
441 | | "Zebra received Netlink message with invalid family", |
442 | | .description = |
443 | | "Zebra received a Netlink message with an invalid address family.", |
444 | | .suggestion = |
445 | | "Inspect the logged address family and submit it with a bug report.", |
446 | | }, |
447 | | { |
448 | | .code = EC_ZEBRA_REMOVE_ADDR_UNKNOWN_SUBNET, |
449 | | .title = |
450 | | "Zebra tried to remove address from unknown subnet", |
451 | | .description = |
452 | | "Zebra attempted to remove an address from an unknown subnet.", |
453 | | .suggestion = |
454 | | "This is a bug, please report it.", |
455 | | }, |
456 | | { |
457 | | .code = EC_ZEBRA_REMOVE_UNREGISTERED_ADDR, |
458 | | .title = |
459 | | "Zebra tried to remove unregistered address", |
460 | | .description = |
461 | | "Zebra attempted to remove an address from a subnet it was not registered on.", |
462 | | .suggestion = |
463 | | "This is a bug, please report it.", |
464 | | }, |
465 | | { |
466 | | .code = EC_ZEBRA_PTM_NOT_READY, |
467 | | .title = |
468 | | "Interface is up but PTM check has not completed", |
469 | | .description = |
470 | | "Zebra noticed that an interface came up and attempted to perform its usual setup procedures, but the PTM check failed and the operation was aborted.", |
471 | | .suggestion = |
472 | | "If the problem persists, ensure that the interface is actually up and that PTM is functioning properly.", |
473 | | }, |
474 | | { |
475 | | .code = EC_ZEBRA_UNSUPPORTED_V4_SRCDEST, |
476 | | .title = |
477 | | "Kernel rejected sourcedest route", |
478 | | .description = |
479 | | "Zebra attempted to install a sourcedest route into the kernel, but the kernel did not acknowledge its installation. The route is unsupported.", |
480 | | .suggestion = |
481 | | "Check configuration values for correctness", |
482 | | }, |
483 | | { |
484 | | .code = EC_ZEBRA_UNKNOWN_INTERFACE, |
485 | | .title = |
486 | | "Zebra encountered an unknown interface specifier", |
487 | | .description = |
488 | | "Zebra was asked to look up an interface with a given name or index, but could not find the interface corresponding to the given name or index.", |
489 | | .suggestion = |
490 | | "Check configuration values for correctness.", |
491 | | }, |
492 | | { |
493 | | .code = EC_ZEBRA_VRF_NOT_FOUND, |
494 | | .title = |
495 | | "Zebra could not find the specified VRF", |
496 | | .description = |
497 | | "Zebra tried to look up a VRF, either by name or ID, and could not find it. This could be due to internal inconsistency (a bug) or a configuration error.", |
498 | | .suggestion = |
499 | | "Check configuration values for correctness. If values are correct, please file a bug report.", |
500 | | }, |
501 | | { |
502 | | .code = EC_ZEBRA_MORE_NH_THAN_MULTIPATH, |
503 | | .title = |
504 | | "More nexthops were provided than the configured multipath limit", |
505 | | .description = |
506 | | "A route with multiple nexthops was given, but the number of nexthops exceeded the configured multipath limit.", |
507 | | .suggestion = |
508 | | "Reduce the number of nexthops, or increase the multipath limit.", |
509 | | }, |
510 | | { |
511 | | .code = EC_ZEBRA_NEXTHOP_CREATION_FAILED, |
512 | | .title = |
513 | | "Zebra failed to create one or more nexthops", |
514 | | .description = |
515 | | "While attempting to create nexthops for a route installation operation, Zebra found that it was unable to create one or more of the given nexthops.", |
516 | | .suggestion = |
517 | | "Check configuration values for correctness. If they are correct, report this as a bug.", |
518 | | }, |
519 | | { |
520 | | .code = EC_ZEBRA_RX_ROUTE_NO_NEXTHOPS, |
521 | | .title = |
522 | | "Zebra received an installation request for a route without nexthops", |
523 | | .description = |
524 | | "Zebra received a message from a client requesting a route installation, but the route is invalid since it doesn't have any nexthop address or interface.", |
525 | | .suggestion = |
526 | | "This is a bug; please report it.", |
527 | | }, |
528 | | { |
529 | | .code = EC_ZEBRA_RX_SRCDEST_WRONG_AFI, |
530 | | .title = |
531 | | "Zebra received sourcedest route install without IPv6 address family", |
532 | | .description = |
533 | | "Zebra received a message from a client requesting a sourcedest route installation, but the address family was not set to IPv6. Only IPv6 is supported for sourcedest routing.", |
534 | | .suggestion = |
535 | | "This is a bug; please report it.", |
536 | | }, |
537 | | { |
538 | | .code = EC_ZEBRA_PSEUDOWIRE_EXISTS, |
539 | | .title = |
540 | | "Zebra received an installation / creation request for a pseudowire that already exists", |
541 | | .description = |
542 | | "Zebra received an installation or creation request for a pseudowire that already exists, so the installation / creation has been skipped.", |
543 | | .suggestion = |
544 | | "This message is informational.", |
545 | | }, |
546 | | { |
547 | | .code = EC_ZEBRA_PSEUDOWIRE_NONEXISTENT, |
548 | | .title = |
549 | | "Zebra received an uninstallation / deletion request for a pseudowire that already exists", |
550 | | .description = |
551 | | "Zebra received an uninstallation / deletion request for a pseudowire that doesn't exist, so the uninstallation / deletion has been skipped.", |
552 | | .suggestion = |
553 | | "This message is informational.", |
554 | | }, |
555 | | { |
556 | | .code = EC_ZEBRA_PSEUDOWIRE_UNINSTALL_NOT_FOUND, |
557 | | .title = |
558 | | "Zebra received uninstall request for a pseudowire that doesn't exist", |
559 | | .description = |
560 | | "Zebra received an uninstall request for a pseudowire that doesn't exist, so the uninstallation has been skipped.", |
561 | | .suggestion = |
562 | | "This message is informational.", |
563 | | }, |
564 | | { |
565 | | .code = EC_ZEBRA_NO_IFACE_ADDR, |
566 | | .title = "No address on interface", |
567 | | .description = |
568 | | "Zebra attempted to retrieve a connected address for an interface, but the interface had no connected addresses.", |
569 | | .suggestion = |
570 | | "This warning is situational; it is usually informative but can indicate a misconfiguration.", |
571 | | }, |
572 | | { |
573 | | .code = EC_ZEBRA_IFACE_ADDR_ADD_FAILED, |
574 | | .title = |
575 | | "Zebra failed to add address to interface", |
576 | | .description = |
577 | | "Zebra attempted to add an address to an interface but was unsuccessful.", |
578 | | .suggestion = |
579 | | "Check configuration values for correctness.", |
580 | | }, |
581 | | { |
582 | | .code = EC_ZEBRA_IRDP_CANNOT_ACTIVATE_IFACE, |
583 | | .title = |
584 | | "Zebra could not enable IRDP on interface", |
585 | | .description = |
586 | | "Zebra attempted to enable IRDP on an interface, but could not create the IRDP socket. The system may be out of socket resources, or privilege elevation may have failed.", |
587 | | .suggestion = |
588 | | "Verify that Zebra has the appropriate privileges and that the system has sufficient socket resources.", |
589 | | }, |
590 | | { |
591 | | .code = EC_ZEBRA_IRDP_IFACE_DOWN, |
592 | | .title = |
593 | | "Zebra attempted to enable IRDP on an interface, but the interface was down", |
594 | | .description = "Zebra attempted to enable IRDP on an interface, but the interface was down.", |
595 | | .suggestion = |
596 | | "Bring up the interface that IRDP is desired on.", |
597 | | }, |
598 | | { |
599 | | .code = EC_ZEBRA_IRDP_IFACE_MCAST_DISABLED, |
600 | | .title = |
601 | | "Zebra cannot enable IRDP on interface because multicast is disabled", |
602 | | .description = |
603 | | "Zebra attempted to enable IRDP on an interface, but multicast functionality was not enabled on the interface.", |
604 | | .suggestion = |
605 | | "Enable multicast on the interface.", |
606 | | }, |
607 | | { |
608 | | .code = EC_ZEBRA_NETLINK_EXTENDED_WARNING, |
609 | | .title = |
610 | | "Zebra received warning message from Netlink", |
611 | | .description = |
612 | | "Zebra received a warning message from Netlink", |
613 | | .suggestion = |
614 | | "This message is informational. See the Netlink error message for details.", |
615 | | }, |
616 | | { |
617 | | .code = EC_ZEBRA_NAMESPACE_DIR_INACCESSIBLE, |
618 | | .title = |
619 | | "Zebra could not access /var/run/netns", |
620 | | .description = |
621 | | "Zebra tried to verify that the run directory for Linux network namespaces existed, but this test failed.", |
622 | | .suggestion = |
623 | | "Ensure that Zebra has the proper privileges to access this directory.", |
624 | | }, |
625 | | { |
626 | | .code = EC_ZEBRA_CONNECTED_AFI_UNKNOWN, |
627 | | .title = |
628 | | "Zebra received unknown address family on interface", |
629 | | .description = |
630 | | "Zebra received a notification of a connected prefix on an interface but did not recognize the address family as IPv4 or IPv6", |
631 | | .suggestion = |
632 | | "This message is informational.", |
633 | | }, |
634 | | { |
635 | | .code = EC_ZEBRA_IFACE_SAME_LOCAL_AS_PEER, |
636 | | .title = |
637 | | "Zebra route has same destination address as local interface", |
638 | | .description = |
639 | | "Zebra noticed that a route on an interface has the same destination address as an address on the interface itself, which may cause issues with routing protocols.", |
640 | | .suggestion = |
641 | | "Investigate the source of the route to determine why the destination and interface addresses are the same.", |
642 | | }, |
643 | | { |
644 | | .code = EC_ZEBRA_BCAST_ADDR_MISMATCH, |
645 | | .title = |
646 | | "Zebra broadcast address sanity check failed", |
647 | | .description = |
648 | | "Zebra computed the broadcast address for a connected prefix based on the netmask and found that it did not match the broadcast address it received for the prefix on that interface", |
649 | | .suggestion = |
650 | | "Investigate the source of the broadcast address to determine why it does not match the computed address.", |
651 | | }, |
652 | | { |
653 | | .code = EC_ZEBRA_REDISTRIBUTE_UNKNOWN_AF, |
654 | | .title = |
655 | | "Zebra encountered unknown address family during redistribution", |
656 | | .description = |
657 | | "During a redistribution operation Zebra encountered an unknown address family.", |
658 | | .suggestion = |
659 | | "This warning can be ignored; the redistribution operation will skip the unknown address family.", |
660 | | }, |
661 | | { |
662 | | .code = EC_ZEBRA_ADVERTISING_UNUSABLE_ADDR, |
663 | | .title = |
664 | | "Zebra advertising unusable interface address", |
665 | | .description = |
666 | | "Zebra is advertising an address on an interface that is not yet fully installed on the interface.", |
667 | | .suggestion = |
668 | | "This message is informational. The address should show up on the interface shortly after advertisement.", |
669 | | }, |
670 | | { |
671 | | .code = EC_ZEBRA_RA_PARAM_MISMATCH, |
672 | | .title = |
673 | | "Zebra received route advertisement with parameter mismatch", |
674 | | .description = |
675 | | "Zebra received a router advertisement, but one of the non-critical parameters (AdvCurHopLimit, AdvManagedFlag, AdvOtherConfigFlag, AdvReachableTime or AdvRetransTimer) does not match Zebra's local settings.", |
676 | | .suggestion = |
677 | | "This message is informational; the route advertisement will be processed as normal. If issues arise due to the parameter mismatch, check Zebra's router advertisement configuration.", |
678 | | }, |
679 | | { |
680 | | .code = EC_ZEBRA_RTM_VERSION_MISMATCH, |
681 | | .title = |
682 | | "Zebra received kernel message with unknown version", |
683 | | .description = |
684 | | "Zebra received a message from the kernel with a message version that does not match Zebra's internal version. Depending on version compatibility, this may cause issues sending and receiving messages to the kernel.", |
685 | | .suggestion = |
686 | | "If issues arise, check if there is a version of FRR available for your kernel version.", |
687 | | }, |
688 | | { |
689 | | .code = EC_ZEBRA_RTM_NO_GATEWAY, |
690 | | .title = |
691 | | "Zebra could not determine proper gateway for kernel route", |
692 | | .description = |
693 | | "Zebra attempted to install a route into the kernel, but noticed it had no gateway and no interface with a gateway could be located.", |
694 | | .suggestion = |
695 | | "Check configuration values for correctness.", |
696 | | }, |
697 | | { |
698 | | .code = EC_ZEBRA_MAX_LABELS_PUSH, |
699 | | .title = |
700 | | "Zebra exceeded maximum LSP labels for a single rtmsg", |
701 | | .description = |
702 | | "Zebra attempted to push more than one label into the kernel; the maximum on OpenBSD is 1 label.", |
703 | | .suggestion = |
704 | | "This message is informational.", |
705 | | }, |
706 | | { |
707 | | .code = EC_ZEBRA_STICKY_MAC_ALREADY_LEARNT, |
708 | | .title = |
709 | | "EVPN MAC already learnt as remote sticky MAC", |
710 | | .description = |
711 | | "Zebra tried to handle a local MAC addition but noticed that it had already learnt the MAC from a remote peer.", |
712 | | .suggestion = |
713 | | "Check configuration values for correctness.", |
714 | | }, |
715 | | { |
716 | | .code = EC_ZEBRA_UNSUPPORTED_V6_SRCDEST, |
717 | | .title = |
718 | | "Kernel does not support IPv6 sourcedest routes", |
719 | | .description = |
720 | | "Zebra attempted to install a sourcedest route into the kernel, but IPv6 sourcedest routes are not supported on the current kernel.", |
721 | | .suggestion = |
722 | | "Do not use v6 sourcedest routes, or upgrade your kernel.", |
723 | | }, |
724 | | { |
725 | | .code = EC_ZEBRA_DUP_MAC_DETECTED, |
726 | | .title = |
727 | | "EVPN MAC is detected duplicate", |
728 | | .description = |
729 | | "Zebra has hit duplicate address detection threshold which means host MAC is moving.", |
730 | | .suggestion = |
731 | | "Check network topology to detect duplicate host MAC for correctness.", |
732 | | }, |
733 | | { |
734 | | .code = EC_ZEBRA_DUP_IP_INHERIT_DETECTED, |
735 | | .title = |
736 | | "EVPN IP is detected duplicate by MAC", |
737 | | .description = |
738 | | "Zebra has hit duplicate address detection threshold which means MAC-IP pair is moving.", |
739 | | .suggestion = |
740 | | "Check network topology to detect duplicate host MAC for correctness.", |
741 | | }, |
742 | | { |
743 | | .code = EC_ZEBRA_DUP_IP_DETECTED, |
744 | | .title = |
745 | | "EVPN IP is detected duplicate", |
746 | | .description = |
747 | | "Zebra has hit duplicate address detection threshold which means host IP is moving.", |
748 | | .suggestion = |
749 | | "Check network topology to detect duplicate host IP for correctness.", |
750 | | }, |
751 | | { |
752 | | .code = EC_ZEBRA_BAD_NHG_MESSAGE, |
753 | | .title = |
754 | | "Bad Nexthop Group Message", |
755 | | .description = |
756 | | "Zebra received Nexthop Group message from the kernel that it cannot process.", |
757 | | .suggestion = |
758 | | "Check the kernel's link states and routing table to see how it matches ours." |
759 | | }, |
760 | | { |
761 | | .code = EC_ZEBRA_DUPLICATE_NHG_MESSAGE, |
762 | | .title = |
763 | | "Duplicate Nexthop Group Message", |
764 | | .description = |
765 | | "Zebra received Nexthop Group message from the kernel that it is identical to one it/we already have but with a different ID.", |
766 | | .suggestion = |
767 | | "See if the nexthop you are trying to add is already present in the fib." |
768 | | }, |
769 | | { |
770 | | .code = EC_ZEBRA_VRF_MISCONFIGURED, |
771 | | .title = "Duplicate VRF table id detected", |
772 | | .description = "Zebra has detected a situation where there are two vrf devices with the exact same tableid. This is considered a complete misconfiguration of VRF devices and breaks a fundamental assumption in FRR about how VRF's work", |
773 | | .suggestion = "Use different table id's for the VRF's in question" |
774 | | }, |
775 | | { |
776 | | .code = EC_ZEBRA_SRV6M_UNRELEASED_LOCATOR_CHUNK, |
777 | | .title = "Zebra did not free any srv6 locator chunks", |
778 | | .description = "Zebra's srv6-locator chunk cleanup procedure ran, but no srv6 locator chunks were released.", |
779 | | .suggestion = "Ignore this error.", |
780 | | }, |
781 | | { |
782 | | .code = EC_ZEBRA_INTF_UPDATE_FAILURE, |
783 | | .title = |
784 | | "Zebra failed to update interface in the kernel", |
785 | | .description = |
786 | | "Zebra made an attempt to update an interfce in the kernel, but it was not successful.", |
787 | | .suggestion = |
788 | | "Wait for Zebra to reattempt update.", |
789 | | }, |
790 | | { |
791 | | .code = END_FERR, |
792 | | } |
793 | | }; |
794 | | /* clang-format on */ |
795 | | |
796 | | |
797 | | void zebra_error_init(void) |
798 | 1 | { |
799 | 1 | log_ref_add(ferr_zebra_err); |
800 | 1 | } |