diff options
author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-09-14 06:32:56 +0200 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-09-14 06:32:56 +0200 |
commit | fe0d1ede9d3e2fe9215eae855d09780f7468f094 (patch) | |
tree | 02d824e46c09ab6390078120057c99011217f04e /pimd | |
parent | Merge pull request #16438 from Jafaral/pim-10.1-cand-rp (diff) | |
download | frr-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.c | 5 |
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; } |