From bbde7a0f2516baf62d3f14d521b4d98c8ccfa105 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Wed, 18 Jul 2018 13:05:50 +0000 Subject: [PATCH] zebra: fix nexthop type check for kernel default route display Signed-off-by: Don Slice --- zebra/zebra_vty.c | 6 +++--- 1 file 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) -- 2.39.5