summaryrefslogtreecommitdiff
path: root/lib/printf/printfcommon.h
diff options
context:
space:
mode:
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>2022-12-27 15:03:30 -0800
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>2022-12-28 13:43:50 -0800
commitbf85e4c5f1008a12faea6e52de01b910d2b20e2c (patch)
tree77c64ea325ebea7fce00bedd19609acfe54e3c23 /lib/printf/printfcommon.h
parentcb8d1c5598290e88f89c5bfcd13050fe4de4a154 (diff)
bgpd: add json option to show commands in bgp_nexthop
Commands with json option: - show bgp nexthop - show bgp import-check-table Example output below, "nexthop" and "import-check-table" are only different in the nexthop entries, the format is the same ``` leaf-A# show bgp nexthop 10.11.10.1 detail json { "nexthops":{ "10.11.10.1":{ "valid":true, "complete":true, "igpMetric":0, "pathCount":1, "peer":"10.11.10.1", "gates":[ { "ifname":"eth1" } ], "lastUpdate":{ "epoch":1669161758, "string":"Wed Nov 23 00:02:38 2022\n" }, "paths":[ { "afi":"IPv4", "safi":"unicast", "prefix":"192.168.11.0/24", "vrf":"default", "flags":[ "valid", "dmedSelected", "counted" ] } ] } } } leaf-A# show bgp nexthop json { "nexthops":{ "10.10.10.1":{ "valid":true, "complete":true, "igpMetric":0, "pathCount":1, "peer":"10.10.10.1", "gates":[ { "ifname":"eth0" } ], "lastUpdate":{ "epoch":1669161758, "string":"Wed Nov 23 00:02:38 2022\n" } }, "10.11.10.1":{ "valid":true, "complete":true, "igpMetric":0, "pathCount":1, "peer":"10.11.10.1", "gates":[ { "ifname":"eth1" } ], "lastUpdate":{ "epoch":1669161758, "string":"Wed Nov 23 00:02:38 2022\n" } } } } ``` Signed-off-by: Yaroslav Fedoriachenko <yar.fed99@gmail.com>
Diffstat (limited to 'lib/printf/printfcommon.h')
0 files changed, 0 insertions, 0 deletions