Skip to content
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

Fix for BGP description not found by get_bgp_neighbors in some EOS versions #1356

Merged
merged 2 commits into from
Jan 14, 2021

Conversation

malanovo
Copy link
Contributor

Not all versions of EOS include descriptions in the output of show ip bgp neighbors vrf all, which is where get_bgp_neighbors is currently looking for it. This patch adds some logic to pull the value out of the show ip bgp summary vrf all output, but retains the original method as well to avoid regressions. The original code is basically screen scraping instead of relying on JSON output; I'm not sure why that is, but I didn't want to change it in case some older versions of EOS rely on that method.

This patch was definitely needed to get my 4.22.xF switches working, but oddly it wasn't needed for my 4.23.0M vEOS test box. I have test cases, I'll attach those as soon as I open the pull request so I can get an issue number to keep the test case directory naming conventions intact.

@coveralls
Copy link

Coverage Status

Coverage decreased (-81.08%) to 0.0% when pulling 283f506 on malanovo:eos_bgp_desc into 236be57 on napalm-automation:develop.

@coveralls
Copy link

coveralls commented Jan 14, 2021

Coverage Status

Coverage increased (+0.02%) to 81.101% when pulling 563c90b on malanovo:eos_bgp_desc into 236be57 on napalm-automation:develop.

@malanovo
Copy link
Contributor Author

Test case has been added.

@mirceaulinic
Copy link
Member

Thanks @malanovo

@mirceaulinic mirceaulinic merged commit 5f60834 into napalm-automation:develop Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants