]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_errors.c
Merge pull request #2852 from donaldsharp/bgp_clean
[mirror_frr.git] / ospfd / ospf_errors.c
1 /*
2 * OSPF-specific error messages.
3 * Copyright (C) 2018 Cumulus Networks, Inc.
4 * Chirag Shah
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #include <zebra.h>
22
23 #include "lib/ferr.h"
24 #include "ospf_errors.h"
25
26 static struct log_ref ferr_ospf_err[] = {
27 {
28 .code = OSPF_ERR_PKT_PROCESS,
29 .title = "Failure to process a packet",
30 .description = "OSPF attempted to process a received packet but could not",
31 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
32 },
33 {
34 .code = OSPF_ERR_ROUTER_LSA_MISMATCH,
35 .title = "Failure to process Router LSA",
36 .description = "OSPF attempted to process a Router LSA but Advertising ID mismatch with link id",
37 .suggestion = "Check OSPF network config for any config issue, If the problem persists, report the problem for troubleshooting"
38 },
39 {
40 .code = OSPF_ERR_DOMAIN_CORRUPT,
41 .title = "OSPF Domain Corruption",
42 .description = "OSPF attempted to process a Router LSA but Advertising ID mismatch with link id",
43 .suggestion = "Check OSPF network Database for corrupted LSA, If the problem persists, shutdown OSPF domain and report the problem for troubleshooting"
44 },
45 {
46 .code = OSPF_ERR_INIT_FAIL,
47 .title = "OSPF Initialization failure",
48 .description = "OSPF failed to initialized OSPF default insance",
49 .suggestion = "Ensure there is adequate memory on the device. If the problem persists, report the problem for troubleshooting"
50 },
51 {
52 .code = OSPF_ERR_SR_INVALID_DB,
53 .title = "OSPF SR Invalid DB",
54 .description = "OSPF Segment Routing Database is invalid",
55 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
56 },
57 {
58 .code = OSPF_ERR_SR_NODE_CREATE,
59 .title = "OSPF SR hash node creation failed",
60 .description = "OSPF Segment Routing node creation failed",
61 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
62 },
63 {
64 .code = OSPF_ERR_SR_INVALID_LSA_ID,
65 .title = "OSPF SR Invalid LSA ID",
66 .description = "OSPF Segment Routing invalid lsa id",
67 .suggestion = "Restart OSPF instance, If the problem persists, report the problem for troubleshooting"
68 },
69 {
70 .code = OSPF_ERR_SR_INVALID_ALGORITHM,
71 .title = "OSPF SR Invalid Algorithm",
72 .description = "OSPF Segment Routing invalid Algorithm",
73 .suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
74 },
75
76 {
77 .code = END_FERR,
78 }
79 };
80
81 void ospf_error_init(void)
82 {
83 log_ref_add(ferr_ospf_err);
84 }