]> git.proxmox.com Git - mirror_frr.git/blame - watchfrr/watchfrr_errors.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / watchfrr / watchfrr_errors.c
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
b647dc2a 2/*
247dcce2 3 * Watchfrr-specific error messages.
b647dc2a
DS
4 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * Donald Sharp
b647dc2a 6 */
247dcce2 7
b647dc2a
DS
8#include <zebra.h>
9
247dcce2 10#include "lib/ferr.h"
b647dc2a
DS
11#include "watchfrr_errors.h"
12
247dcce2 13/* clang-format off */
85cd2f9f 14static struct log_ref ferr_watchfrr_err[] = {
b647dc2a 15 {
f74ae2bb 16 .code = EC_WATCHFRR_CONNECTION,
b647dc2a
DS
17 .title = "WATCHFRR Connection Error",
18 .description = "WATCHFRR has detected a connectivity issue with one of the FRR daemons",
19 .suggestion = "Ensure that FRR is still running and if not please open an Issue"
20 },
e09443f5
DS
21 {
22 .code = EC_WATCHFRR_UNEXPECTED_DAEMONS,
23 .title = "WATCHFRR wrong daemons to watch",
24 .description = "As part of WATCHFRR startup you must specify 1 or more daemons to monitor",
25 .suggestion = "Update your startup scripts to include zebra and any other daemon you would like to monitor",
26 },
b647dc2a
DS
27 {
28 .code = END_FERR,
29 }
30};
247dcce2 31/* clang-format on */
b647dc2a
DS
32
33void watchfrr_error_init(void)
34{
85cd2f9f 35 log_ref_add(ferr_watchfrr_err);
b647dc2a 36}