]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_errors.c
Merge pull request #5706 from mjstapp/fix_nh_debug_show
[mirror_frr.git] / zebra / zebra_errors.c
index d7c17829cdc61b61349fd1e91efceccf8af149c3..ef792d14c285f6cdc028b9d6d801f36d46182f6a 100644 (file)
@@ -283,6 +283,45 @@ static struct log_ref ferr_zebra_err[] = {
                .description = "Zebra received an event from inotify, but failed to read what it was.",
                .suggestion = "Notify a developer.",
        },
+       {
+               .code = EC_ZEBRA_NHG_TABLE_INSERT_FAILED,
+               .title =
+                       "Nexthop Group Hash Table Insert Failure",
+               .description =
+                       "Zebra failed in inserting a Nexthop Group into its hash tables.",
+               .suggestion =
+                       "Check to see if the entry already exists or if the netlink message was parsed incorrectly."
+       },
+       {
+               .code = EC_ZEBRA_NHG_SYNC,
+               .title =
+                       "Zebra's Nexthop Groups are out of sync",
+               .description =
+                       "Zebra's nexthop group tables are out of sync with the nexthop groups in the fib.",
+               .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."
+       },
+       {
+               .code = EC_ZEBRA_IF_LOOKUP_FAILED,
+               .title = "Zebra interface lookup failed",
+               .description = "Zebra attempted to look up a interface for a particular vrf_id and interface index, but didn't find anything.",
+               .suggestion = "If you entered a command to trigger this error, make sure you entered the arguments correctly. Check your config file for any potential errors. If these look correct, seek help.",
+       },
+       {
+               .code = EC_ZEBRA_NS_NO_DEFAULT,
+               .title = "Zebra NameSpace failed to find Default",
+               .description = "Zebra NameSpace subsystem failed to find a Default namespace during initialization.",
+               .suggestion = "Open an Issue with all relevant log files and restart FRR",
+       },
        /* Warnings */
        {
                .code = EC_ZEBRAING_LM_PROTO_MISMATCH,
@@ -380,14 +419,6 @@ static struct log_ref ferr_zebra_err[] = {
                .suggestion =
                        "If you wish to receive the messages, change your IRDP settings accordingly.",
        },
-       {
-               .code = EC_ZEBRA_IRDP_BAD_TYPE,
-               .title =
-                       "Zebra received IRDP packet with bad type",
-               .description =
-                       "THIS IS BULLSHIT REMOVE ME",
-               .suggestion = "asdf",
-       },
        {
                .code = EC_ZEBRA_RNH_NO_TABLE,
                .title =
@@ -504,6 +535,15 @@ static struct log_ref ferr_zebra_err[] = {
                .suggestion =
                        "Check configuration values for correctness. If they are correct, report this as a bug.",
        },
+       {
+               .code = EC_ZEBRA_RX_ROUTE_NO_NEXTHOPS,
+               .title =
+                       "Zebra received an installation request for a route without nexthops",
+               .description =
+                       "Zebra received a message from a client requesting a route installation, but the route is invalid since it doesn't have any nexthop address or interface.",
+               .suggestion =
+                       "This is a bug; please report it.",
+       },
        {
                .code = EC_ZEBRA_RX_SRCDEST_WRONG_AFI,
                .title =
@@ -658,7 +698,7 @@ static struct log_ref ferr_zebra_err[] = {
        {
                .code = EC_ZEBRA_RTM_VERSION_MISMATCH,
                .title =
-                       "Zebra received kernel message with uknown version",
+                       "Zebra received kernel message with unknown version",
                .description =
                        "Zebra received a message from the kernel with a message version that does not match Zebra's internal version. Depending on version compatibility, this may cause issues sending and receiving messages to the kernel.",
                .suggestion =
@@ -727,6 +767,24 @@ 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 = EC_ZEBRA_DUPLICATE_NHG_MESSAGE,
+               .title =
+                       "Duplicate Nexthop Group Message",
+               .description =
+                       "Zebra received Nexthop Group message from the kernel that it is identical to one it/we already have but with a different ID.",
+               .suggestion =
+                       "See if the nexthop you are trying to add is already present in the fib."
+       },
        {
                .code = END_FERR,
        }