mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-26 04:03:32 +00:00
bgpd: Convert evpn output to not pretty print json
Commit: 3cdb03fba7
changed the vty_json output to not be pretty printing.
The previous commit in the tree added vty_json_no_pretty
let's use that instead
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
d7c6467ba2
commit
2d4460de6f
@ -4807,14 +4807,13 @@ DEFUN(show_bgp_l2vpn_evpn_route,
|
|||||||
|
|
||||||
evpn_show_all_routes(vty, bgp, type, json, detail);
|
evpn_show_all_routes(vty, bgp, type, json, detail);
|
||||||
|
|
||||||
if (uj) {
|
/*
|
||||||
if (detail) {
|
* This is an extremely expensive operation at scale
|
||||||
vty_out(vty, "%s\n", json_object_to_json_string(json));
|
* and as such we need to save as much time as is
|
||||||
json_object_free(json);
|
* possible.
|
||||||
} else {
|
*/
|
||||||
vty_json(vty, json);
|
if (uj)
|
||||||
}
|
vty_json_no_pretty(vty, json);
|
||||||
}
|
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user