diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2018-01-16 02:49:23 +0100 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2018-01-16 03:00:49 +0100 |
commit | 1406159faa6a617fe799ca61c1f4239445fab47a (patch) | |
tree | 2725d5360675fc77e75cc56daec8dcb514708606 /ospfd/ospf_vty.c | |
parent | Merge pull request #1623 from donaldsharp/zebra_interface_one_shot (diff) | |
download | frr-1406159faa6a617fe799ca61c1f4239445fab47a.tar.xz frr-1406159faa6a617fe799ca61c1f4239445fab47a.zip |
ospfd: Speed up show ip ospf [vrf all] route json
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r-- | ospfd/ospf_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 0541bfeee..a1384eebd 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -9496,9 +9496,9 @@ DEFUN (show_ip_ospf_route, } if (uj) { + /* Keep Non-pretty format */ vty_out(vty, "%s\n", - json_object_to_json_string_ext(json, - JSON_C_TO_STRING_PRETTY)); + json_object_to_json_string(json)); json_object_free(json); } @@ -9522,9 +9522,9 @@ DEFUN (show_ip_ospf_route, if (ospf) { ret = show_ip_ospf_route_common(vty, ospf, json, use_vrf); + /* Keep Non-pretty format */ if (uj) - vty_out(vty, "%s\n", json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY)); + vty_out(vty, "%s\n", json_object_to_json_string(json)); } if (uj) |