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>
This commit is contained in:
Stephen Worley 2019-03-04 11:25:42 -05:00
parent d1285db253
commit 1ba2db775f
2 changed files with 10 additions and 0 deletions

View File

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

View File

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