]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Add error code for bad nhg messages from the kernel
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 14 Feb 2019 22:42:25 +0000 (17:42 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:36 +0000 (11:13 -0400)
Needed an error code for nhg messages from the kernel.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_errors.c
zebra/zebra_errors.h

index a7e5147af3ca1171d70f802b646f5ee228bf03a9..65be47f4bc89463f35d471dedd71f56513072fd9 100644 (file)
@@ -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,
        }
index 222055dd81d7bf8a33eece085de5842576843c03..f35c4659759be0999980fd8a2809e13bfcbe0ce9 100644 (file)
@@ -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);