summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-03-04 11:25:42 -0500
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:36 -0400
commit1ba2db775fe962912b0a089f564ab68d642b0466 (patch)
tree9374d209c65a4889e5fd5d2a799fd9dbc44c9833
parentd1285db253f65a7863d94714bd16925c0e8a52cf (diff)
zebra: Add an error code for NHG update failures
We needed an error code that can be used when we fail to install a nexthop group into the kernel/fib. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
-rw-r--r--zebra/zebra_errors.c9
-rw-r--r--zebra/zebra_errors.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/zebra/zebra_errors.c b/zebra/zebra_errors.c
index 4f97f3669f..3ca1bf3971 100644
--- a/zebra/zebra_errors.c
+++ b/zebra/zebra_errors.c
@@ -301,6 +301,15 @@ static struct log_ref ferr_zebra_err[] = {
.suggestion =
"Check the current status of the kernels nexthop groups and compare it to Zebra's."
},
+ {
+ .code = EC_ZEBRA_NHG_FIB_UPDATE,
+ .title =
+ "Zebra failed updating the fib with Nexthop Group",
+ .description =
+ "Zebra was not able to successfully install a new nexthop group into the fib",
+ .suggestion =
+ "Check to see if the nexthop group on the route you tried to install is valid."
+ },
/* Warnings */
{
.code = EC_ZEBRAING_LM_PROTO_MISMATCH,
diff --git a/zebra/zebra_errors.h b/zebra/zebra_errors.h
index 73bb53a773..1411980ba5 100644
--- a/zebra/zebra_errors.h
+++ b/zebra/zebra_errors.h
@@ -74,6 +74,7 @@ enum zebra_log_refs {
EC_ZEBRA_VNI_ADD_FAILED,
EC_ZEBRA_NHG_TABLE_INSERT_FAILED,
EC_ZEBRA_NHG_SYNC,
+ EC_ZEBRA_NHG_FIB_UPDATE,
/* warnings */
EC_ZEBRA_NS_NOTIFY_READ,
EC_ZEBRAING_LM_PROTO_MISMATCH,