summaryrefslogtreecommitdiff
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-02-08 14:34:06 -0800
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-02-08 14:34:06 -0800
commit2e86198322e22ce2baac2b5058b6595cffb4d5f9 (patch)
treee1068f7fea9cf3cf431e8c2da24f29c5db836e7b /pimd/pim_pim.c
parenta8e6c2c6d03232678d505588e31004193b8cda23 (diff)
ospfd: Fix "show ip ospf neighbor swp1 detail json" output
1. When OSPF unnumbered neighbor doesn't exist in any VRF, OSPFD prints a bunch of empty JSON objects. Fixed it by adding an outer JSON object with VRF information in it 2. Added "vrf" option to this command so that per VRF unnumbered OSPF neighbor information can be retrieved JSON output: nl1# show ip ospf neighbor swp1 detail json { "default":{ }, "vrf1012":{ }, "vrf1013":{ }, "vrf1014":{ } } nl1# show ip ospf vrf vrf1012 neighbor swp4.2 detail json { "9.9.12.10":[ { "ifaceAddress":"200.254.2.46", "areaId":"0.0.0.0", "ifaceName":"swp4.2", "localIfaceAddress":"200.254.2.45", "nbrPriority":1, "nbrState":"Full", "role":"DR", "stateChangeCounter":6, "lastPrgrsvChangeMsec":1462758, "routerDesignatedId":"200.254.2.46", "routerDesignatedBackupId":"200.254.2.45", "optionsCounter":2, "optionsList":"*|-|-|-|-|-|E|-", "routerDeadIntervalTimerDueMsec":37140, "databaseSummaryListCounter":0, "linkStateRequestListCounter":0, "linkStateRetransmissionListCounter":0, "threadInactivityTimer":"on", "threadLinkStateRequestRetransmission":"on", "threadLinkStateUpdateRetransmission":"on" } ] } nl1# Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
Diffstat (limited to 'pimd/pim_pim.c')
0 files changed, 0 insertions, 0 deletions