]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_errors.c
ospfd: zlog_ferr facility
[mirror_frr.git] / ospfd / ospf_errors.c
1 /*
2 * ospf_errors - code for error messages that may occur in the
3 * ospf process
4 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * Chirag Shah
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 #include "ospf_errors.h"
23
24 static struct ferr_ref ferr_ospf_err[] = {
25 {
26 .code = OSPF_ERR_PKT_PROCESS,
27 .title = "Failure to process a packet",
28 .description = "OSPF attempted to process a received packet but could not",
29 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
30 },
31 {
32 .code = OSPF_ERR_ROUTER_LSA_MISMATCH,
33 .title = "Failure to process Router LSA",
34 .description = "OSPF attempted to process a Router LSA but Advertising ID mismtach with link id",
35 .suggestion = "Check OSPF network config for any config issue, If the problem persists, report the problem for troubleshooting"
36 },
37 {
38 .code = OSPF_ERR_DOMAIN_CORRUPT,
39 .title = "OSPF Domain Corruption",
40 .description = "OSPF attempted to process a Router LSA but Advertising ID mismtach with link id",
41 .suggestion = "Check OSPF network Database for corrupted LSA, If the problem persists, shutdown ospf domain and report the problem for troubleshooting"
42 },
43 {
44 .code = OSPF_ERR_INIT_FAIL,
45 .title = "OSPF Initialization failure",
46 .description = "OSPF failed to initialized ospf default insance",
47 .suggestion = "Ensure there is adequate memory on the device. If the problem persists, report the problem for troubleshooting"
48 },
49 {
50 .code = OSPF_ERR_SR_INVALID_DB,
51 .title = "OSPF SR Invalid DB",
52 .description = "OSPF Segment Routing Database is invalid",
53 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
54 },
55 {
56 .code = OSPF_ERR_SR_NODE_CREATE,
57 .title = "OSPF SR hash node creation failed",
58 .description = "OSPF Segment Routing node creation failed",
59 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
60 },
61 {
62 .code = OSPF_ERR_SR_INVALID_LSA_ID,
63 .title = "OSPF SR Invalid lsa id",
64 .description = "OSPF Segment Routing invalid lsa id",
65 .suggestion = "Restart ospf instance, If the problem persists, report the problem for troubleshooting"
66 },
67 {
68 .code = OSPF_ERR_SR_INVALID_ALGORITHM,
69 .title = "OSPF SR Invalid Algorithm",
70 .description = "OSPF Segment Routing invalid Algorithm",
71 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
72 },
73
74 {
75 .code = END_FERR,
76 }
77 };
78
79 void ospf_error_init(void)
80 {
81 ferr_ref_init();
82
83 ferr_ref_add(ferr_ospf_err);
84 }