]> git.proxmox.com Git - mirror_frr.git/blame - babeld/babel_errors.c
Merge pull request #13149 from pushpasis/mgmt_cleanup_zlog
[mirror_frr.git] / babeld / babel_errors.c
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
f135ba52 2/*
247dcce2 3 * Babel-specific error messages.
f135ba52
DS
4 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * Donald Sharp
f135ba52 6 */
247dcce2 7
f135ba52
DS
8#include <zebra.h>
9
247dcce2 10#include "lib/ferr.h"
f135ba52
DS
11#include "babel_errors.h"
12
247dcce2 13/* clang-format off */
85cd2f9f 14static struct log_ref ferr_babel_err[] = {
f135ba52 15 {
5b003f31 16 .code = EC_BABEL_MEMORY,
f135ba52
DS
17 .title = "BABEL Memory Errors",
18 .description = "Babel has failed to allocate memory, the system is about to run out of memory",
5e1e0166 19 .suggestion = "Find the process that is causing memory shortages, remediate that process and restart FRR"
f135ba52 20 },
e33b116c 21 {
5b003f31 22 .code = EC_BABEL_PACKET,
e33b116c
DS
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 {
5b003f31 28 .code = EC_BABEL_CONFIG,
e33b116c
DS
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 {
5b003f31 34 .code = EC_BABEL_ROUTE,
e33b116c
DS
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 },
f135ba52
DS
39 {
40 .code = END_FERR,
41 }
42};
247dcce2 43/* clang-format on */
f135ba52
DS
44
45void babel_error_init(void)
46{
85cd2f9f 47 log_ref_add(ferr_babel_err);
f135ba52 48}