]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Add an error code for NHG update failures
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 4 Mar 2019 16:25:42 +0000 (11:25 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:36 +0000 (11:13 -0400)
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>
zebra/zebra_errors.c
zebra/zebra_errors.h

index 4f97f3669f0ac65b017217c76071a965ae580bcf..3ca1bf39718219078e043bd18c9aa669ba96d558 100644 (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,
index 73bb53a7737adfe54c0d94734bb2895e842d1615..1411980ba55b0f83ec6d555548efc2520d3783f2 100644 (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,