From 1ba2db775fe962912b0a089f564ab68d642b0466 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Mon, 4 Mar 2019 11:25:42 -0500 Subject: [PATCH] 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 --- zebra/zebra_errors.c | 9 +++++++++ zebra/zebra_errors.h | 1 + 2 files changed, 10 insertions(+) diff --git a/zebra/zebra_errors.c b/zebra/zebra_errors.c index 4f97f3669..3ca1bf397 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 73bb53a77..1411980ba 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, -- 2.39.5