]> git.proxmox.com Git - mirror_frr.git/commit
lib, bgpd: Add ability to specify that some json output should not be pretty
authorDonald Sharp <sharpd@nvidia.com>
Thu, 2 Feb 2023 15:28:19 +0000 (10:28 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 2 Feb 2023 15:28:19 +0000 (10:28 -0500)
commitd7c6467ba2f55d1055babbb7fe82716ca3efdc7e
tree4a884baa25d2443017dfd7497596e171f6e20667
parent7461589c2e41dd33306b1d5cd23689094ac66cd7
lib, bgpd: Add ability to specify that some json output should not be pretty

Initial commit: 23b2a7ef524c9fe083b217c7f6ebaec0effc8f52
changed the json output of `show bgp <afi> <safi> json` to
not have pretty print because when under a situation where
there are a bunch of routes with a large scale ecmp show
output was taking forever and this commit cut 2 minutes out
of vtysh run time.

Subusequent commit: f4ec52f7cc99f709756d9030623a20c98a086125
changed this back.

When upgrading to latest version the long run time was noticed
due to testing.  Let's add back this functionality such that
FRR can have reduced run times with vtysh when it's really
needed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_route.c
lib/vty.c
lib/vty.h