summaryrefslogtreecommitdiff
path: root/zebra/zebra_errors.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-01-22 13:53:08 -0500
committerGitHub <noreply@github.com>2019-01-22 13:53:08 -0500
commitb9c25a2a906116dd4924045b7f663318e623b932 (patch)
tree4a3ff33778adb5131f2cf9bf83531ef29d1e68dd /zebra/zebra_errors.c
parentb3cfe1e2da00c3a0233885d83d7d7246291c8e40 (diff)
parent7fcb24bbaa91762965ad15aff10956919fdc3c08 (diff)
Merge pull request #3559 from opensourcerouting/zapi-sanity-checks
add a few moar sanity checks when encoding/decoding zapi routes
Diffstat (limited to 'zebra/zebra_errors.c')
-rw-r--r--zebra/zebra_errors.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_errors.c b/zebra/zebra_errors.c
index d7c17829cd..cb5f30df1f 100644
--- a/zebra/zebra_errors.c
+++ b/zebra/zebra_errors.c
@@ -505,6 +505,15 @@ static struct log_ref ferr_zebra_err[] = {
"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 =
"Zebra received sourcedest route install without IPv6 address family",