summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-09-14 06:32:56 +0200
committerJafar Al-Gharaibeh <jafar@atcorp.com>2024-09-14 06:32:56 +0200
commitfe0d1ede9d3e2fe9215eae855d09780f7468f094 (patch)
tree02d824e46c09ab6390078120057c99011217f04e /pimd
parentMerge pull request #16438 from Jafaral/pim-10.1-cand-rp (diff)
downloadfrr-fe0d1ede9d3e2fe9215eae855d09780f7468f094.tar.xz
frr-fe0d1ede9d3e2fe9215eae855d09780f7468f094.zip
pimd: use vty_json
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_cmd_common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c
index 567cb5b46..2f46fcac9 100644
--- a/pimd/pim_cmd_common.c
+++ b/pimd/pim_cmd_common.c
@@ -5567,10 +5567,7 @@ int pim_show_bsr_cand_bsr(const struct vrf *vrf, struct vty *vty, bool uj)
json_object_boolean_add(jsondata, "elected",
pim->global_scope.state == BSR_ELECTED);
- vty_out(vty, "%s\n",
- json_object_to_json_string_ext(jsondata,
- JSON_C_TO_STRING_PRETTY));
- json_object_free(jsondata);
+ vty_json(vty, jsondata);
return CMD_SUCCESS;
}