]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: fix nexthop type check for kernel default route display
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 18 Jul 2018 13:05:50 +0000 (13:05 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 18 Jul 2018 13:05:50 +0000 (13:05 +0000)
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
zebra/zebra_vty.c

index 1ce8e442fad7195447c1e4d4214b0dfbe060bd20..6583e9ed3fbc65374b8f8820dd8fdb4a8bc3322c 100644 (file)
@@ -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)