summaryrefslogtreecommitdiff
path: root/zebra/zebra_errors.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-02 18:37:00 -0200
committerRenato Westphal <renato@opensourcerouting.org>2019-01-14 15:58:26 -0200
commit7fcb24bbaa91762965ad15aff10956919fdc3c08 (patch)
treefbb7cb5cc14385c0586788f162d1dd61309d7e6b /zebra/zebra_errors.h
parente4081c0e0b0ff763f446d92095017e8cb4df67aa (diff)
zebra: reject routes without nexthops
Routes without nexthops don't make any sense, so we need to reject them otherwise weird things can happen. NOTE: blackhole routes aren't nexthop-less, they do have a single nexthop of type NEXTHOP_TYPE_BLACKHOLE. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_errors.h')
-rw-r--r--zebra/zebra_errors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_errors.h b/zebra/zebra_errors.h
index c3cdc4ed42..0af5f8a551 100644
--- a/zebra/zebra_errors.h
+++ b/zebra/zebra_errors.h
@@ -96,6 +96,7 @@ enum zebra_log_refs {
EC_ZEBRA_VRF_NOT_FOUND,
EC_ZEBRA_MORE_NH_THAN_MULTIPATH,
EC_ZEBRA_NEXTHOP_CREATION_FAILED,
+ EC_ZEBRA_RX_ROUTE_NO_NEXTHOPS,
EC_ZEBRA_RX_SRCDEST_WRONG_AFI,
EC_ZEBRA_PSEUDOWIRE_EXISTS,
EC_ZEBRA_PSEUDOWIRE_UNINSTALL_NOT_FOUND,