]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: non pretty json output for neighbor routes
authorSindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
Wed, 12 Jul 2023 10:45:26 +0000 (03:45 -0700)
committerChirag Shah <chirag@nvidia.com>
Mon, 24 Jul 2023 17:50:45 +0000 (10:50 -0700)
commite784a60b174d329d1cca184c38cfd8426d32cd43
treea849acadeeb0ede411d9c2c6b7f7e85cef128a60
parent9e32b73634a8bbe893f2425ee89ee27651d93408
bgpd: non pretty json output for neighbor routes

Currently, json output of show BGP commands are no pretty format.

This is an extremely expensive operation for huge scale (lots of
routes with lots of paths).

BGP json non-pretty commands support added:

```
show bgp neighbors <nbr-id> advertised-routes json
show bgp neighbors <nbr-id> received-routes json
show bgp neighbors <nbr-id> advertised-routes detail json
show bgp neighbors <nbr-id> received-routes detail json
```

Ticket:#3513256
Issue:3513256

Testing: UT done

Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
bgpd/bgp_route.c