summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2018-07-18 13:05:50 +0000
committerDon Slice <dslice@cumulusnetworks.com>2018-07-18 13:05:50 +0000
commitbbde7a0f2516baf62d3f14d521b4d98c8ccfa105 (patch)
tree03595bc997e45dc5912760c8b96501543154593a
parentfc132690b49f33c0131a3b0d5d7ce3ca174b2ec2 (diff)
zebra: fix nexthop type check for kernel default route display
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
-rw-r--r--zebra/zebra_vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 1ce8e442fa..6583e9ed3f 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -1199,7 +1199,7 @@ static void vty_show_ip_route_detail(struct vty *vty, struct route_node *rn,
}
if ((re->vrf_id != nexthop->vrf_id)
- && !NEXTHOP_TYPE_BLACKHOLE) {
+ && (nexthop->type != NEXTHOP_TYPE_BLACKHOLE)) {
struct vrf *vrf =
vrf_lookup_by_id(nexthop->vrf_id);
@@ -1417,7 +1417,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
}
if ((nexthop->vrf_id != re->vrf_id)
- && !NEXTHOP_TYPE_BLACKHOLE) {
+ && (nexthop->type != NEXTHOP_TYPE_BLACKHOLE)) {
struct vrf *vrf =
vrf_lookup_by_id(nexthop->vrf_id);
@@ -1572,7 +1572,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
}
if ((nexthop->vrf_id != re->vrf_id)
- && !NEXTHOP_TYPE_BLACKHOLE) {
+ && (nexthop->type != NEXTHOP_TYPE_BLACKHOLE)) {
struct vrf *vrf = vrf_lookup_by_id(nexthop->vrf_id);
if (vrf)