diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-28 06:52:36 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-28 06:52:36 +0200 |
commit | 2aac57679569485060a36bdee1dcf309198f07fd (patch) | |
tree | f09519edd7cd327296c6ebd05da761fb6a99e552 /zebra/zebra_vty.c | |
parent | zebra: "ip import-table" display is hosed (diff) | |
download | frr-2aac57679569485060a36bdee1dcf309198f07fd.tar.xz frr-2aac57679569485060a36bdee1dcf309198f07fd.zip |
use JSON_C_TO_STRING_PRETTY for json_object_to_json_string
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r-- | zebra/zebra_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index e76e4ab8f..1a9fc2294 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -2487,7 +2487,7 @@ do_show_ip_route (struct vty *vty, const char *vrf_name, safi_t safi, } } - vty_out (vty, "%s%s", json_object_to_json_string(json), VTY_NEWLINE); + vty_out (vty, "%s%s", json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY), VTY_NEWLINE); json_object_free(json); } else @@ -4923,7 +4923,7 @@ DEFUN (show_ipv6_route, } } - vty_out (vty, "%s%s", json_object_to_json_string(json), VTY_NEWLINE); + vty_out (vty, "%s%s", json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY), VTY_NEWLINE); json_object_free(json); } else |