]>
Commit | Line | Data |
---|---|---|
1 | // SPDX-License-Identifier: GPL-2.0-or-later | |
2 | /* | |
3 | * Babel-specific error messages. | |
4 | * Copyright (C) 2018 Cumulus Networks, Inc. | |
5 | * Donald Sharp | |
6 | */ | |
7 | ||
8 | #include <zebra.h> | |
9 | ||
10 | #include "lib/ferr.h" | |
11 | #include "babel_errors.h" | |
12 | ||
13 | /* clang-format off */ | |
14 | static struct log_ref ferr_babel_err[] = { | |
15 | { | |
16 | .code = EC_BABEL_MEMORY, | |
17 | .title = "BABEL Memory Errors", | |
18 | .description = "Babel has failed to allocate memory, the system is about to run out of memory", | |
19 | .suggestion = "Find the process that is causing memory shortages, remediate that process and restart FRR" | |
20 | }, | |
21 | { | |
22 | .code = EC_BABEL_PACKET, | |
23 | .title = "BABEL Packet Error", | |
24 | .description = "Babel has detected a packet encode/decode problem", | |
25 | .suggestion = "Collect relevant log files and file an Issue" | |
26 | }, | |
27 | { | |
28 | .code = EC_BABEL_CONFIG, | |
29 | .title = "BABEL Configuration Error", | |
30 | .description = "Babel has detected a configuration error of some sort", | |
31 | .suggestion = "Ensure that the configuration is correct" | |
32 | }, | |
33 | { | |
34 | .code = EC_BABEL_ROUTE, | |
35 | .title = "BABEL Route Error", | |
36 | .description = "Babel has detected a routing error and has an inconsistent state", | |
37 | .suggestion = "Gather data for filing an Issue and then restart FRR" | |
38 | }, | |
39 | { | |
40 | .code = END_FERR, | |
41 | } | |
42 | }; | |
43 | /* clang-format on */ | |
44 | ||
45 | void babel_error_init(void) | |
46 | { | |
47 | log_ref_add(ferr_babel_err); | |
48 | } |