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