From 347bb8e26976758a3324c26c661479624eb09080 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 14 Feb 2019 17:42:25 -0500 Subject: [PATCH] zebra: Add error code for bad nhg messages from the kernel Needed an error code for nhg messages from the kernel. 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 a7e5147af3..65be47f4bc 100644 --- a/zebra/zebra_errors.c +++ b/zebra/zebra_errors.c @@ -728,6 +728,15 @@ static struct log_ref ferr_zebra_err[] = { .suggestion = "Check network topology to detect duplicate host IP for correctness.", }, + { + .code = EC_ZEBRA_BAD_NHG_MESSAGE, + .title = + "Bad Nexthop Group Message", + .description = + "Zebra received Nexthop Group message from the kernel that it cannot process.", + .suggestion = + "Check the kernel's link states and routing table to see how it matches ours." + }, { .code = END_FERR, } diff --git a/zebra/zebra_errors.h b/zebra/zebra_errors.h index 222055dd81..f35c465975 100644 --- a/zebra/zebra_errors.h +++ b/zebra/zebra_errors.h @@ -125,6 +125,7 @@ enum zebra_log_refs { EC_ZEBRA_DUP_MAC_DETECTED, EC_ZEBRA_DUP_IP_INHERIT_DETECTED, EC_ZEBRA_DUP_IP_DETECTED, + EC_ZEBRA_BAD_NHG_MESSAGE, }; void zebra_error_init(void); -- 2.39.5