mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
bgpd: evpn route detail json display non prett
For BGP evpn route table detail json to use non pretty form of display. Problem: In scaled evpn route table detail json dump occupies high resources (CPU + memory) of the system. In high scale evpn route dump using pretty form hogs CPU for a while which can trigger watchfrr to kill bgpd. Solution: Avoid pretty JSON print for detail version dump Signed-off-by: Chirag Shah <chirag@nvidia.com>
This commit is contained in:
parent
c6188284fb
commit
3cdb03fba7
@ -4807,8 +4807,15 @@ DEFUN(show_bgp_l2vpn_evpn_route,
|
||||
|
||||
evpn_show_all_routes(vty, bgp, type, json, detail);
|
||||
|
||||
if (uj)
|
||||
vty_json(vty, json);
|
||||
if (uj) {
|
||||
if (detail) {
|
||||
vty_out(vty, "%s\n", json_object_to_json_string(json));
|
||||
json_object_free(json);
|
||||
} else {
|
||||
vty_json(vty, json);
|
||||
}
|
||||
}
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user