summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2019-07-05 15:45:56 -0700
committerChirag Shah <chirag@cumulusnetworks.com>2019-07-09 18:13:22 -0700
commitcb0b2ac6a5b5e832a511edd94591e25989588e46 (patch)
treee5a888f4bb8623fa20cb6e10edd9eb2f4dec39a1 /zebra/interface.c
parentf85d5e3d972dc507cfd277a62c938d967cb28974 (diff)
ospfd: fix show ip ospf neigh json
Same ospf neigbor can be learnt via multiple interfaces, ospf detail json only displayed last instance only. Fix json output format to contain "neighbors" keyword, under which to display all neighbors for a given vrf. Fix show ip ospf neighbor detail json show ip ospf neighbor detail all json show ip ospf neighbor <intf name> detail json Ticket:CM-25528 Reviewed By: Testing Done: Run the output with JSON formatter and the output has passed. switch1# show ip ospf vrf all neighbor detail json { "default":{ "vrfName":"default", "vrfId":0, "neighbors":{ "0.0.0.2":[ { "ifaceAddress":"14.0.0.22", "areaId":"0.0.0.0", "ifaceName":"Bridge1.510", "nbrPriority":1, "nbrState":"Full", "stateChangeCounter":6, "lastPrgrsvChangeMsec":82668, "routerDesignatedId":"14.0.0.22", "routerDesignatedBackupId":"14.0.0.21", "optionsCounter":2, "optionsList":"*|-|-|-|-|-|E|-", "routerDeadIntervalTimerDueMsec":36195, "databaseSummaryListCounter":0, "linkStateRequestListCounter":0, "linkStateRetransmissionListCounter":0, "threadInactivityTimer":"on", "threadLinkStateRequestRetransmission":"on", "threadLinkStateUpdateRetransmission":"on", "peerBfdInfo":{ "type":"single hop", "detectMultiplier":4, "rxMinInterval":600, "txMinInterval":800, "status":"Down", "lastUpdate":"0:00:00:29" } }, { "ifaceAddress":"14.0.0.26", "areaId":"0.0.0.0", "ifaceName":"Bridge1.511", "nbrPriority":1, "nbrState":"Full", "stateChangeCounter":6, "lastPrgrsvChangeMsec":82658, "routerDesignatedId":"14.0.0.26", "routerDesignatedBackupId":"14.0.0.25", "optionsCounter":2, "optionsList":"*|-|-|-|-|-|E|-", "routerDeadIntervalTimerDueMsec":36196, "databaseSummaryListCounter":0, "linkStateRequestListCounter":0, "linkStateRetransmissionListCounter":0, "threadInactivityTimer":"on", "threadLinkStateRequestRetransmission":"on", "threadLinkStateUpdateRetransmission":"on" }, ] } } } Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
0 files changed, 0 insertions, 0 deletions