zebra: Add error code for duplicate nexthops

Add an error code that indicates we received a nexthop
from the kernel that is identical to one it/we already
have other than its ID.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-02-25 13:58:32 -05:00
parent b589493e70
commit 98fd05580c
2 changed files with 10 additions and 0 deletions

View File

@ -746,6 +746,15 @@ static struct log_ref ferr_zebra_err[] = {
.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,
}

View File

@ -127,6 +127,7 @@ enum zebra_log_refs {
EC_ZEBRA_DUP_IP_INHERIT_DETECTED,
EC_ZEBRA_DUP_IP_DETECTED,
EC_ZEBRA_BAD_NHG_MESSAGE,
EC_ZEBRA_DUPLICATE_NHG_MESSAGE,
};
void zebra_error_init(void);