mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-15 07:49:55 +00:00
bgpd: Use vty_json() for bgp_print_dampening_parameters()
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
4be03f305b
commit
66964cf6bf
@ -672,10 +672,7 @@ static int bgp_print_dampening_parameters(struct bgp *bgp, struct vty *vty,
|
|||||||
json_object_int_add(json, "maxSuppressPenalty",
|
json_object_int_add(json, "maxSuppressPenalty",
|
||||||
bdc->ceiling);
|
bdc->ceiling);
|
||||||
|
|
||||||
vty_out(vty, "%s\n",
|
vty_json(vty, json);
|
||||||
json_object_to_json_string_ext(
|
|
||||||
json, JSON_C_TO_STRING_PRETTY));
|
|
||||||
json_object_free(json);
|
|
||||||
} else {
|
} else {
|
||||||
vty_out(vty, "Half-life time: %lld min\n",
|
vty_out(vty, "Half-life time: %lld min\n",
|
||||||
(long long)bdc->half_life / 60);
|
(long long)bdc->half_life / 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user