From 1406159faa6a617fe799ca61c1f4239445fab47a Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Mon, 15 Jan 2018 17:49:23 -0800 Subject: [PATCH] ospfd: Speed up show ip ospf [vrf all] route json Signed-off-by: Chirag Shah --- ospfd/ospf_vty.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 0541bfeee7..a1384eebdd 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) -- 2.39.5