summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-02-07 15:29:31 -0800
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-02-07 15:29:31 -0800
commita8e6c2c6d03232678d505588e31004193b8cda23 (patch)
treea4a667151f4727241e03d4965544ab65d950b839 /lib/vty.c
parent6333c54822e964afe723f1e923064079fb330075 (diff)
ospfd: Option to query specific neighbor in VRF
Added VRF option to "show ip ospf [vrf NAME] neighbor X.X.X.X [detail] [json]" command so that the user can query information regarding a specific neighbor within a VRF. r1# show ip ospf vrf default neighbor 10.0.255.2 10.0.255.2 1 Full/- 33m10s 9.891s 10.0.3.2 r1-eth1:10.0.3.4 0 0 0 r1# show ip ospf vrf default neighbor 10.0.255.2 json { "10.0.255.2":[ { "priority":1, "state":"Full/-", "nbrPriority":1, "nbrState":"Full/-", "converged":"Full", "role":"DROther", "upTimeInMsec":13877947, "deadTimeMsecs":9498, "routerDeadIntervalTimerDueMsec":9498, "upTime":"3h51m17s", "deadTime":"9.498s", "address":"10.0.3.2", "ifaceAddress":"10.0.3.2", "ifaceName":"r1-eth1:10.0.3.4", "retransmitCounter":0, "linkStateRetransmissionListCounter":0, "requestCounter":0, "linkStateRequestListCounter":0, "dbSummaryCounter":0, "databaseSummaryListCounter":0 } ] } r1# show ip ospf vrf default neighbor 10.0.255.2 detail Neighbor 10.0.255.2, interface address 10.0.3.2 In the area 0.0.0.0 via interface r1-eth1 local interface IP 10.0.3.4 Neighbor priority is 1, State is Full/-, Role is DROther, 5 state changes Most recent state change statistics: Progressive change 3h51m27s ago DR is 0.0.0.0, BDR is 0.0.0.0 Options 2 *|-|-|-|-|-|E|- Dead timer due in 8.458s Database Summary List 0 Link State Request List 0 Link State Retransmission List 0 Thread Inactivity Timer on Thread Database Description Retransmision off Thread Link State Request Retransmission on Thread Link State Update Retransmission on Graceful restart Helper info: Graceful Restart HELPER Status : None r1# show ip ospf vrf default neighbor 10.0.255.2 detail json { "10.0.255.2":[ { "ifaceAddress":"10.0.3.2", "areaId":"0.0.0.0", "ifaceName":"r1-eth1", "localIfaceAddress":"10.0.3.4", "nbrPriority":1, "nbrState":"Full/-", "role":"DROther", "stateChangeCounter":5, "lastPrgrsvChangeMsec":13889856, "routerDesignatedId":"0.0.0.0", "routerDesignatedBackupId":"0.0.0.0", "optionsCounter":2, "optionsList":"*|-|-|-|-|-|E|-", "routerDeadIntervalTimerDueMsec":9715, "databaseSummaryListCounter":0, "linkStateRequestListCounter":0, "linkStateRetransmissionListCounter":0, "threadInactivityTimer":"on", "threadLinkStateRequestRetransmission":"on", "threadLinkStateUpdateRetransmission":"on", "grHelperStatus":"None" } ] } r1# Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
Diffstat (limited to 'lib/vty.c')
0 files changed, 0 insertions, 0 deletions