]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: Speed up show ip ospf [vrf all] route json
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 16 Jan 2018 01:49:23 +0000 (17:49 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 16 Jan 2018 02:00:49 +0000 (18:00 -0800)
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_vty.c

index 0541bfeee79f00d04069519dd06db19469a22aaa..a1384eebddb1dcafc7cd47a02b9a3e763aef08d9 100644 (file)
@@ -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)