summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorRajasekar Raja <rajasekarr@nvidia.com>2023-05-22 14:14:30 -0700
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-05-23 07:41:27 +0000
commit60f1a448cd269cba227889fcf533ca47096ceeb6 (patch)
tree922c2fc0e281fa3ae0e48b5a1dde38bee63be215 /lib/command.c
parentb62f4cf5c9aff9d9603a7a2228fa2744a3d03a65 (diff)
bgpd: Using no pretty json output for l2vpn-Evpn routes
The output of show bgp all json is inconsistent across Address-families i.e. ipv4/ipv6 is a no pretty format while l2vpn-evpn is in a pretty format. For huge scale (lots of routes with lots of paths), it is better to use no_pretty format. Before fix: torm-11# sh bgp all json { "ipv4Unicast":{ "vrfId": 0, "vrfName": "default", "tableVersion": 1, "routerId": "27.0.0.15", "defaultLocPrf": 100, "localAS": 65000, "routes": { } } , "l2VpnEvpn":{ "routes":{ "27.0.0.15:2":{ "rd":"27.0.0.15:2", "[1]:[0]:[03:44:38:39:ff:ff:01:00:00:01]:[128]:[::]:[0]":{ "prefix":"[1]:[0]:[03:44:38:39:ff:ff:01:00:00:01]:[128]:[::]:[0]", "prefixLen":352, "paths":[ <SNIP>............. After fix: torm-11# sh bgp all json { "ipv4Unicast":{ "vrfId": 0, "vrfName": "default", "tableVersion": 1, "routerId": "27.0.0.15", "defaultLocPrf": 100, "localAS": 65000, "routes": { } } , "l2VpnEvpn":{ "routes":{"27.0.0.15:2":{"rd":"27.0.0.15:2","[1]:[0]:[03:44:38:39:ff:ff:01:00:00:01]:[128]:[::]:[0]":{"prefix":"[1]:[0]:[03:44:38:39:ff:ff:01:00:00:01]:[128]:[::]:[0]","prefixLen":352,"paths":[[{"valid":true,"bestpath":true,"selectionReason":"First path received","pathFrom":"external","routeType":1,"weight":32768,"peerId":"(unspec)","path":"","origin":"IGP","extendedCommunity" <SNIP>............. Issue: 3472865 Ticket:#3472865 Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com> (cherry picked from commit 82465ca7f91c36ea06647f24e218231e6c8854de)
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions