Skip to content

Commit

Permalink
Merge pull request #16829 from Jafaral/vty-json
Browse files Browse the repository at this point in the history
pimd: use vty_json
  • Loading branch information
donaldsharp authored Sep 14, 2024
2 parents f3fc33e + fe0d1ed commit f80b967
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 f80b967

Please sign in to comment.