Skip to content

bgp_neighbors issue #1231

Closed
Closed
@expbits

Description

Description of Issue/Question

Hi, I'm new to automation and trying to get 'bgp_neighbor' stats and ran into some issue. I have 2 ASR 1001-x running IOS-XE on the same code version on the same network with identical config setup. I’m getting a Traceback error when getting ‘bgp_neighbors’ to Router1 but on Router2 it works fine. I’m using ‘ios’ for the platform in my host file. Any idea how to fix this? Thanks in advance.

Here’s the Traceback error:

RTR-01 ** changed : False ***************************************
vvvv napalm_get ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ERROR
Traceback (most recent call last):
File “C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\nornir\core\task.py”, line 85, in start
r = self.task(self, **self.params)
File “C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\nornir\plugins\tasks\networking\napalm_get.py”, line 61, in napalm_get
result[g] = method(**options)
File “C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\napalm\ios\ios.py”, line 1867, in get_bgp_neighbors
assert afi not in existing[“address_family”]
AssertionError

Did you follow the steps from https://github.com/napalm-automation/napalm#faq

(Place an x between the square brackets where applicable)

  • Yes
  • [] No

Setup

napalm version

(Paste verbatim output from pip freeze | grep napalm between quotes below)

napalm==3.0.1
napalm-inspector==1.0.0

Network operating system version

(Paste verbatim output from show version - or equivalent - between quotes below)

 'os_version': 'ASR1000 Software '
                           '(X86_64_LINUX_IOSD-UNIVERSALK9-M), Version '
                           '15.4(3)S3, RELEASE SOFTWARE (fc1)',

Steps to Reproduce the Issue

Error Traceback

(Paste the complete traceback of the exception between quotes below)

RTR-01 ** changed : False ***************************************
vvvv napalm_get ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ERROR
Traceback (most recent call last):
File “C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\nornir\core\task.py”, line 85, in start
r = self.task(self, **self.params)
File “C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\nornir\plugins\tasks\networking\napalm_get.py”, line 61, in napalm_get
result[g] = method(**options)
File “C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\napalm\ios\ios.py”, line 1867, in get_bgp_neighbors
assert afi not in existing[“address_family”]
AssertionError

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions