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 aunicodeobject.- 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 neighborportForeignLocalAs- Router's local ASnexthop- configured nexthop iphostForeignremoteAs- Remote AS for neighboraddressFamilyInfo- Dictionary with info on addres familybgpTimerConfiguredHoldTimeMsecs- Configured hold time in millisecondsnexthopGlobalbgpTimerLastReadconnectionsEstablished- Number of connections establishednexthopLocalminBtwnAdvertismentRunsTimerMsecs- minimum time between advertisements in millisecondsbgpTimerConfiguredKeepAliveIntervalMsecs- configured interval for keep alive packets in millisecondsgracefulRestartInfo- Dictionary with information on neighbors graceful restart configbgpInUpdateElapsedTimeMsecshostname- name of BGP neighborhostLocal- BGP IP for neighbornbrDesc- description of neighborestimatedRttInMsecsneighborCapabilities- Dictionary with information on capabilities of neighborbgpTimerUpEstablishedEpochremoteRouterId- ID for remote routerconnectionsDropped- number of connections droppedconnectRetryTimer- number of seconds between retried connectionsbgpTimerHoldTimeMsecsbgpConnectionlastResetDutTo- Reason for last resetwriteThread- status of write threadpeerGroup- name of per groupbgpTimerKeepAliveIntervalMsecs- Current interval for keep alive packets in millisecondslastResetTimerMsecsbgpVersion- Version of BGP for neighborbgpTimerUpMsecmessageStats- Dictionary with information of messages send and received by BGP neighborbgpTimerLastWriteportLocalbgpTimerUpStringlocalRouterId