From 129f5638658db42bafc7ba0bd8380cd36b4dba93 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 25 Nov 2021 17:50:06 +0200 Subject: pimd: Convert vty_out to vty_json for JSON Signed-off-by: Donatas Abraitis --- pimd/pim_rp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pimd/pim_rp.c') diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c index 4865b0ed4..e00e85d99 100644 --- a/pimd/pim_rp.c +++ b/pimd/pim_rp.c @@ -1321,9 +1321,7 @@ void pim_rp_show_information(struct pim_instance *pim, struct vty *vty, bool uj) buf, sizeof(buf)), json_rp_rows); - vty_out(vty, "%s\n", json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY)); - json_object_free(json); + vty_json(vty, json); } } -- cgit v1.2.3