summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-05-15 14:43:32 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-05-15 21:46:41 +0300
commitbdf8b8dda901cbdc2e99f6510b6cb85d4ad2071f (patch)
treeb148645924170970db83f5b46e4907f800b4e259 /lib/json.c
parent8fcc5b515d004417de3168e7321f31da5001a092 (diff)
bgpd: Show the real table version for a decent peer subgroup
Without the patch: ``` Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc 192.168.1.2 4 65002 4 5 2 0 0 00:00:45 1 1 N/A 192.168.1.3 4 65003 5 5 2 0 0 00:00:45 0 2 N/A 192.168.1.4 4 65004 5 5 2 0 0 00:00:45 0 2 N/A ``` With the patch: ``` Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc 192.168.1.2 4 65002 6 6 2 0 0 00:01:05 0 1 N/A 192.168.1.3 4 65003 7 7 3 0 0 00:01:05 0 1 N/A 192.168.1.4 4 65004 7 7 3 0 0 00:01:05 0 1 N/A ``` JSON output is also fixed: ``` munet> r1 shi vtysh -c 'sh ip bgp sum json' | grep version -i "tableVersion":3, "version":4, "tableVersion":2, "version":4, "tableVersion":3, "version":4, "tableVersion":3, munet> ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions