]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix do_show_route_helper to include srcdest routes 2690/head
authorChristian Franke <chris@opensourcerouting.org>
Thu, 19 Jul 2018 19:16:06 +0000 (15:16 -0400)
committerChristian Franke <chris@opensourcerouting.org>
Thu, 19 Jul 2018 19:16:57 +0000 (15:16 -0400)
zebra/zebra_vty.c

index 55c4f6e916b1106a6cfe10969e9bc56d748590fc..8a37e1df2259daef5063bb4c119f387a74468c8c 100644 (file)
@@ -1651,7 +1651,7 @@ static void do_show_route_helper(struct vty *vty, struct zebra_vrf *zvrf,
                json = json_object_new_object();
 
        /* Show all routes. */
-       for (rn = route_top(table); rn; rn = route_next(rn)) {
+       for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) {
                dest = rib_dest_from_rnode(rn);
 
                RNODE_FOREACH_RE (rn, re) {