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>
This commit is contained in:
Stephen Worley 2019-02-22 14:12:46 -05:00
parent a95b8020ca
commit 3463f295e7
2 changed files with 10 additions and 0 deletions

View File

@ -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,

View File

@ -72,6 +72,7 @@ enum zebra_log_refs {
EC_ZEBRA_VNI_DEL_FAILED,
EC_ZEBRA_VTEP_ADD_FAILED,
EC_ZEBRA_VNI_ADD_FAILED,
EC_ZEBRA_NHG_TABLE_INSERT_FAILED,
/* warnings */
EC_ZEBRA_NS_NOTIFY_READ,
EC_ZEBRAING_LM_PROTO_MISMATCH,