mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 17:40:04 +00:00
pimd: use vty_json
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
This commit is contained in:
parent
f3fc33e17b
commit
fe0d1ede9d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user