]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_vty.c
Revert "Ospf missing interface handling 2"
[mirror_frr.git] / zebra / zebra_vty.c
index a38d060bd1de3ff0681edccea8c995747608536b..1f8eec9cad1491c2cc901239eda85cadf6bb6c1c 100644 (file)
@@ -970,9 +970,10 @@ DEFPY (show_route_table_vrf,
        afi_t afi = ipv4 ? AFI_IP : AFI_IP6;
        struct zebra_vrf *zvrf;
        struct route_table *t;
-       vrf_id_t vrf_id;
+       vrf_id_t vrf_id = VRF_DEFAULT;
 
-       VRF_GET_ID(vrf_id, vrf_name, !!json);
+       if (vrf_name)
+               VRF_GET_ID(vrf_id, vrf_name, !!json);
        zvrf = zebra_vrf_lookup_by_id(vrf_id);
 
        t = zebra_router_find_table(zvrf, table, afi, SAFI_UNICAST);