]>
Commit | Line | Data |
---|---|---|
313d7993 | 1 | /* |
247dcce2 | 2 | * OSPF-specific error messages. |
313d7993 | 3 | * Copyright (C) 2018 Cumulus Networks, Inc. |
247dcce2 | 4 | * Chirag Shah |
313d7993 | 5 | * |
247dcce2 QY |
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. | |
313d7993 | 10 | * |
247dcce2 QY |
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. | |
313d7993 CS |
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 | */ | |
247dcce2 | 20 | |
313d7993 | 21 | #include <zebra.h> |
247dcce2 QY |
22 | |
23 | #include "lib/ferr.h" | |
313d7993 CS |
24 | #include "ospf_errors.h" |
25 | ||
85cd2f9f | 26 | static struct log_ref ferr_ospf_err[] = { |
313d7993 CS |
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", | |
5e1e0166 | 36 | .description = "OSPF attempted to process a Router LSA but Advertising ID mismatch with link id", |
313d7993 CS |
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", | |
5e1e0166 QY |
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" | |
313d7993 CS |
44 | }, |
45 | { | |
46 | .code = OSPF_ERR_INIT_FAIL, | |
47 | .title = "OSPF Initialization failure", | |
5e1e0166 | 48 | .description = "OSPF failed to initialized OSPF default insance", |
313d7993 CS |
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, | |
5e1e0166 | 65 | .title = "OSPF SR Invalid LSA ID", |
313d7993 | 66 | .description = "OSPF Segment Routing invalid lsa id", |
5e1e0166 | 67 | .suggestion = "Restart OSPF instance, If the problem persists, report the problem for troubleshooting" |
313d7993 CS |
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 | { | |
85cd2f9f | 83 | log_ref_add(ferr_ospf_err); |
313d7993 | 84 | } |