summaryrefslogtreecommitdiff
path: root/zebra/zebra_errors.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-02-22 14:12:46 -0500
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:36 -0400
commit3463f295e79bfc34e4e8164f4faabe2bb6d6ed2a (patch)
treef8c424bed3a6ff42cb9d7dabd39b76a5e75bc859 /zebra/zebra_errors.c
parenta95b8020ca4383dd4a43c18588c004b5683a8566 (diff)
zebra: Add error codes for nhg table insert failures
Since we are using two different tables to hash the next groups with, lets add an error message in case there is a failure to insert into one of them. This will help to notify if the tables are not synced. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_errors.c')
-rw-r--r--zebra/zebra_errors.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_errors.c b/zebra/zebra_errors.c
index 65be47f4bc..74eddf51d0 100644
--- a/zebra/zebra_errors.c
+++ b/zebra/zebra_errors.c
@@ -283,6 +283,15 @@ static struct log_ref ferr_zebra_err[] = {
.description = "Zebra received an event from inotify, but failed to read what it was.",
.suggestion = "Notify a developer.",
},
+ {
+ .code = EC_ZEBRA_NHG_TABLE_INSERT_FAILED,
+ .title =
+ "Nexthop Group Hash Table Insert Failure",
+ .description =
+ "Zebra failed in inserting a Nexthop Group into its hash tables.",
+ .suggestion =
+ "Check to see if the entry already exists or if the netlink message was parsed incorrectly."
+ },
/* Warnings */
{
.code = EC_ZEBRAING_LM_PROTO_MISMATCH,