Merge pull request #2690 from opensourcerouting/fix-srcdest-route-display

zebra: fix do_show_route_helper to include srcdest routes
This commit is contained in:
Donald Sharp 2018-07-20 01:55:53 -04:00 committed by GitHub
commit 86180eeeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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) {