]> git.proxmox.com Git - mirror_frr.git/blob - watchfrr/watchfrr_errors.c
watchfrr: Add WATCHFRR_ERR_XXX for zlog_err to zlog_ferr
[mirror_frr.git] / watchfrr / watchfrr_errors.c
1 /*
2 * watchfrr_errors - code for error messages that may occur in the
3 * watchfrr 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 "watchfrr_errors.h"
24
25 static struct ferr_ref ferr_watchfrr_err[] = {
26 {
27 .code = WATCHFRR_ERR_CONNECTION,
28 .title = "WATCHFRR Connection Error",
29 .description = "WATCHFRR has detected a connectivity issue with one of the FRR daemons",
30 .suggestion = "Ensure that FRR is still running and if not please open an Issue"
31 },
32 {
33 .code = END_FERR,
34 }
35 };
36
37 void watchfrr_error_init(void)
38 {
39 ferr_ref_init();
40
41 ferr_ref_add(ferr_watchfrr_err);
42 }