Skip to content

Commit

Permalink
pimd: use vty_json
Browse files Browse the repository at this point in the history
Signed-off-by: Jafar Al-Gharaibeh <[email protected]>
  • Loading branch information
Jafaral committed Sep 14, 2024
1 parent f3fc33e commit fe0d1ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pimd/pim_cmd_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fe0d1ed

Please sign in to comment.