mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:34:22 +00:00
Merge pull request #1642 from chiragshah6/mdev1
ospfd: Speed up show ip ospf [vrf all] route json
This commit is contained in:
commit
23b6084b8c
@ -9496,9 +9496,9 @@ DEFUN (show_ip_ospf_route,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (uj) {
|
if (uj) {
|
||||||
|
/* Keep Non-pretty format */
|
||||||
vty_out(vty, "%s\n",
|
vty_out(vty, "%s\n",
|
||||||
json_object_to_json_string_ext(json,
|
json_object_to_json_string(json));
|
||||||
JSON_C_TO_STRING_PRETTY));
|
|
||||||
json_object_free(json);
|
json_object_free(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9522,9 +9522,9 @@ DEFUN (show_ip_ospf_route,
|
|||||||
|
|
||||||
if (ospf) {
|
if (ospf) {
|
||||||
ret = show_ip_ospf_route_common(vty, ospf, json, use_vrf);
|
ret = show_ip_ospf_route_common(vty, ospf, json, use_vrf);
|
||||||
|
/* Keep Non-pretty format */
|
||||||
if (uj)
|
if (uj)
|
||||||
vty_out(vty, "%s\n", json_object_to_json_string_ext(
|
vty_out(vty, "%s\n", json_object_to_json_string(json));
|
||||||
json, JSON_C_TO_STRING_PRETTY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uj)
|
if (uj)
|
||||||
|
Loading…
Reference in New Issue
Block a user