2 * OSPF-specific error messages.
3 * Copyright (C) 2018 Cumulus Networks, Inc.
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)
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
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
24 #include "ospf_errors.h"
26 static struct log_ref ferr_ospf_err
[] = {
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"
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"
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"
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"
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"
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"
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"
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"
81 void ospf_error_init(void)
83 log_ref_add(ferr_ospf_err
);