mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 19:11:44 +00:00
pimd: Convert vty_out to vty_json for JSON
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
7297350e61
commit
129f563865
@ -1321,9 +1321,7 @@ void pim_rp_show_information(struct pim_instance *pim, struct vty *vty, bool uj)
|
|||||||
buf, sizeof(buf)),
|
buf, sizeof(buf)),
|
||||||
json_rp_rows);
|
json_rp_rows);
|
||||||
|
|
||||||
vty_out(vty, "%s\n", json_object_to_json_string_ext(
|
vty_json(vty, json);
|
||||||
json, JSON_C_TO_STRING_PRETTY));
|
|
||||||
json_object_free(json);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user