From e2256d2e8705dfd4c3d6cd8b754fb83c18853a34 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 9 Jul 2019 11:53:16 +0200 Subject: [PATCH] zebra: show ip route all command displays all tables from all vrfs initially, that command was dumping only tables from default vrfs. the change here consists in dumping all the tables from all the vrfs. Signed-off-by: Philippe Guibert --- zebra/zebra_vty.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 3543a22b8a..bfdf9dd3f8 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1003,14 +1003,13 @@ DEFPY (show_route_all_table_vrf, { afi_t afi = ipv4 ? AFI_IP : AFI_IP6; struct zebra_vrf *zvrf = NULL; - vrf_id_t vrf_id = VRF_DEFAULT; + vrf_id_t vrf_id = VRF_UNKNOWN; struct zebra_router_table *zrt; - if (vrf_name) + if (vrf_name) { VRF_GET_ID(vrf_id, vrf_name, !!json); - - if (!vrf_all) zvrf = zebra_vrf_lookup_by_id(vrf_id); + } RB_FOREACH (zrt, zebra_router_table_head, &zrouter.tables) { rib_table_info_t *info = route_table_get_info(zrt->table); -- 2.39.5