]>
Commit | Line | Data |
---|---|---|
f135ba52 DS |
1 | /* |
2 | * babel_errors - code for error messages that may occur in the | |
3 | * babel process | |
4 | * Copyright (C) 2018 Cumulus Networks, Inc. | |
5 | * Donald Sharp | |
6 | * | |
7 | * FRR is free software; you can redistribute it and/or modify it | |
8 | * under the terms of the GNU General Public License as published by the | |
9 | * Free Software Foundation; either version 2, or (at your option) any | |
10 | * later version. | |
11 | * | |
12 | * FRR is distributed in the hope that it will be useful, but | |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License along | |
18 | * with this program; see the file COPYING; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
20 | */ | |
21 | #include <zebra.h> | |
22 | ||
23 | #include "babel_errors.h" | |
24 | ||
25 | static struct ferr_ref ferr_babel_err[] = { | |
26 | { | |
27 | .code = BABEL_ERR_MEMORY, | |
28 | .title = "BABEL Memory Errors", | |
29 | .description = "Babel has failed to allocate memory, the system is about to run out of memory", | |
30 | .suggestion = "Find the process that is causing memory shortages and remediate that process\nRestart FRR" | |
31 | }, | |
e33b116c DS |
32 | { |
33 | .code = BABEL_ERR_PACKET, | |
34 | .title = "BABEL Packet Error", | |
35 | .description = "Babel has detected a packet encode/decode problem", | |
36 | .suggestion = "Collect relevant log files and file an Issue" | |
37 | }, | |
38 | { | |
39 | .code = BABEL_ERR_CONFIG, | |
40 | .title = "BABEL Configuration Error", | |
41 | .description = "Babel has detected a configuration error of some sort", | |
42 | .suggestion = "Ensure that the configuration is correct" | |
43 | }, | |
44 | { | |
45 | .code = BABEL_ERR_ROUTE, | |
46 | .title = "BABEL Route Error", | |
47 | .description = "Babel has detected a routing error and has an inconsistent state", | |
48 | .suggestion = "Gather data for filing an Issue and then restart FRR" | |
49 | }, | |
f135ba52 DS |
50 | { |
51 | .code = END_FERR, | |
52 | } | |
53 | }; | |
54 | ||
55 | void babel_error_init(void) | |
56 | { | |
57 | ferr_ref_init(); | |
58 | ||
59 | ferr_ref_add(ferr_babel_err); | |
60 | } |