-
Notifications
You must be signed in to change notification settings - Fork 557
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
NAPALM returns two equal IPv6 with get_bgp_neighbors() #659
Comments
It seems that sometimes NAPALM returns BGP peers without giving their remote autonomous systems. It's probably a bug and an issue has been created (napalm-automation/napalm#659). Waiting to see if it is indeed an issue in the JUNOS module of NAPALM a (temporary) fix is now submitted. Import peering sessions from router feature is now tested and seems to be working as expected. Close #8.
That's unfortunate, I guess we will have to parse the IP with |
You might want to use the official module instead https://docs.python.org/3/library/ipaddress.html |
Can we just normalize using the Looks like it should work.
|
#761 should fix it. @respawner are you able to test ? I was not able to reproduce it using Junos 14.1 |
@ckishimo it seems to be working with your PR yes. Thank you 👍 |
* junos: normalize ipv6 address bgp peer in routing-instance * fix E501 line too long
* junos: normalize ipv6 address bgp peer in routing-instance * fix E501 line too long
I have found a strange issue on JUNOS and IPv6 BGP neighbors.
When using the
get_bgp_neighbors
method the inner the dictionary of peers for a given VRF might return two times the same IPv6 address. Here is a minimized output of a result.If you take a look this is the same peer but with the address in two different format. The issue may come from JUNOS itself. In fact I've noticed that in the configuration the
2001:db8:10:100::5:4100:1
is used but when showing the BGP summary on the router itself the address is expanded to2001:db8:10:100:0:5:4100:1
.The expected output would be to have only one peer in the dictionary (address being expanded or not).
The text was updated successfully, but these errors were encountered: