Skip to content

Commit

Permalink
Merge pull request #1642 from chiragshah6/mdev1
Browse files Browse the repository at this point in the history
ospfd: Speed up show ip ospf [vrf all] route json
  • Loading branch information
odd22 authored Jan 16, 2018
2 parents 21f8f34 + 1406159 commit 23b6084
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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)
Expand Down

0 comments on commit 23b6084

Please sign in to comment.