-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bgp_neighbors issue #1231
Comments
Can you provide "show bgp all summary" from both devices ? |
@network-shark , there is one peer in one of the address-family that is down in R1 but not shutdown. R2 doesnt have any down peers and was able to pull all peer state for each address-family. |
@expbits are you able to share the output as @network-shark suggested? |
@mirceaulinic and @network-shark Sorry for the delayed response, got stuck at work. Here is the output for reference. I notice that i have 1 neighbor that is part of 2 VRFs. 1 is down and 1 is UP. RTR-01#show bgp all summary Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd For address family: VPNv4 Unicast Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd RTR-02# show bgp all summary Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd For address family: VPNv4 Unicast Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd |
Think this is the same as #1497. I've had this issue as well for a while and I'll see if I can put together a PR for it. |
Submitted PR #1751 for review to fix this. |
Resolved via #1751. |
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)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
The text was updated successfully, but these errors were encountered: