summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-28 06:52:36 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-28 06:52:36 +0200
commit2aac57679569485060a36bdee1dcf309198f07fd (patch)
treef09519edd7cd327296c6ebd05da761fb6a99e552 /zebra/zebra_vty.c
parentzebra: "ip import-table" display is hosed (diff)
downloadfrr-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.c4
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