Provides BGP neighbor info
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
bgp_info = duthost.get_bgp_neighbor_info(unicode("10.0.0.51"))
neighbor_ip
- BGP IP for desired neighbor. Must be aunicode
object.- Required:
True
- Type:
unicode
- Required:
Returns dicitonary with information on the neighbor.
nbrExternalLink
- Whether BGP session is connected via an external link or notbgpState
- state of BGP connectionreadThread
- status of read threadlastResetCode
- code used for last reset of neighborportForeign
LocalAs
- Router's local ASnexthop
- configured nexthop iphostForeign
remoteAs
- Remote AS for neighboraddressFamilyInfo
- Dictionary with info on addres familybgpTimerConfiguredHoldTimeMsecs
- Configured hold time in millisecondsnexthopGlobal
bgpTimerLastRead
connectionsEstablished
- Number of connections establishednexthopLocal
minBtwnAdvertismentRunsTimerMsecs
- minimum time between advertisements in millisecondsbgpTimerConfiguredKeepAliveIntervalMsecs
- configured interval for keep alive packets in millisecondsgracefulRestartInfo
- Dictionary with information on neighbors graceful restart configbgpInUpdateElapsedTimeMsecs
hostname
- name of BGP neighborhostLocal
- BGP IP for neighbornbrDesc
- description of neighborestimatedRttInMsecs
neighborCapabilities
- Dictionary with information on capabilities of neighborbgpTimerUpEstablishedEpoch
remoteRouterId
- ID for remote routerconnectionsDropped
- number of connections droppedconnectRetryTimer
- number of seconds between retried connectionsbgpTimerHoldTimeMsecs
bgpConnection
lastResetDutTo
- Reason for last resetwriteThread
- status of write threadpeerGroup
- name of per groupbgpTimerKeepAliveIntervalMsecs
- Current interval for keep alive packets in millisecondslastResetTimerMsecs
bgpVersion
- Version of BGP for neighborbgpTimerUpMsec
messageStats
- Dictionary with information of messages send and received by BGP neighborbgpTimerLastWrite
portLocal
bgpTimerUpString
localRouterId