diff options
| author | Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com> | 2023-11-26 22:35:59 -0800 |
|---|---|---|
| committer | Krishnasamy R <krishnasamyr@nvidia.com> | 2024-11-18 18:58:52 -0800 |
| commit | 4838bac033a71f2ab598c463ef69769416b72b49 (patch) | |
| tree | aef54194082f6b2cbe9941ea512b9fdab81878bf /python/firstheader.py | |
| parent | 9c5530144a2a8090aa07327074ffdf020470daa4 (diff) | |
bgpd: neighbors received-routes/advertised-routes stringify changes
JSON object could lead to out-of-memory in scaled bgp
neighbors received-routes/advertised-routes setup.
Changes:
not use pretty print and stringify smaller json objects to reduce memory
usage
free memory after ouput of json object
Commands supported with this Json stringify:
```
show bgp vrf <vrf-id> neighbors <nbr-id> advertised-routes json
show bgp vrf <vrf-id> neighbors <nbr-id> advertised-routes detail json
show bgp vrf <vrf-id> neighbors <nbr-id> advertised-routes <prefix> json
show bgp vrf <vrf-id> neighbors <nbr-id> received-routes json
show bgp vrf <vrf-id> neighbors <nbr-id> received-routes detail json
show bgp vrf <vrf-id> neighbors <nbr-id> received-routes <prefix> json
```
Ticket:#3513253, #3513254
Issue:3513253, 3513254
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
Diffstat (limited to 'python/firstheader.py')
0 files changed, 0 insertions, 0 deletions
