Merge pull request #7795 from louis-oui/show-database-vrf

ospfd: fix no show database output when selecting vrf
This commit is contained in:
Quentin Young 2020-12-29 15:53:28 -05:00 committed by GitHub
commit 46b0e93168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7316,8 +7316,8 @@ DEFUN (show_ip_ospf_instance_database_type_adv_router,
continue; continue;
ospf_output = true; ospf_output = true;
ret = show_ip_ospf_database_type_adv_router_common( ret = show_ip_ospf_database_type_adv_router_common(
vty, ospf, idx ? 1 : 0, argc, argv, vty, ospf, 2, argc, argv, use_vrf, json,
use_vrf, json, uj); uj);
} }
if (!ospf_output) if (!ospf_output)
vty_out(vty, "%% OSPF instance not found\n"); vty_out(vty, "%% OSPF instance not found\n");
@ -7329,8 +7329,7 @@ DEFUN (show_ip_ospf_instance_database_type_adv_router,
} }
ret = show_ip_ospf_database_type_adv_router_common( ret = show_ip_ospf_database_type_adv_router_common(
vty, ospf, idx ? 1 : 0, argc, argv, use_vrf, vty, ospf, 2, argc, argv, use_vrf, json, uj);
json, uj);
} }
} else { } else {
/* Display default ospf (instance 0) info */ /* Display default ospf (instance 0) info */