2 * ospf_errors - code for error messages that may occur in the
4 * Copyright (C) 2018 Cumulus Networks, Inc.
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
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.
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
22 #include "ospf_errors.h"
24 static struct ferr_ref ferr_ospf_err
[] = {
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"
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"
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"
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"
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"
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"
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"
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"
79 void ospf_error_init(void)
83 ferr_ref_add(ferr_ospf_err
);