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

Prevent nxos.get_interfaces_ip from failing if no ipv6 support #1108

Merged
merged 4 commits into from
Feb 12, 2020

Conversation

tcaiazza
Copy link
Contributor

Cisco Nexus 3548's still don't support ipv6, so catch the NXAPIPostError
exception when get_interfaces_ip tries to run show ipv6 interfaces
and return the ipv4 addresses

Cisco Nexus 3548's still don't support ipv6, so catch the NXAPIPostError
exception when `get_interfaces_ip` tries to run `show ipv6 interfaces`
and return the ipv4 addresses
@coveralls
Copy link

coveralls commented Jan 13, 2020

Coverage Status

Coverage remained the same at ?% when pulling 15c53a0 on tcaiazza:skip_ipv6 into 79749b5 on napalm-automation:develop.

Copy link
Member

@mirceaulinic mirceaulinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this patch @tcaiazza. Would you please add a test case for this?

@tcaiazza
Copy link
Contributor Author

Thanks for this patch @tcaiazza. Would you please add a test case for this?

@mirceaulinic Test case added.

@mirceaulinic mirceaulinic merged commit ec9906a into napalm-automation:develop Feb 12, 2020
neelimapp pushed a commit to neelimapp/napalm that referenced this pull request Mar 20, 2020
…m-automation#1108)

* Prevent nxos.get_interfaces_ip from failing if no ipv6 support

Cisco Nexus 3548's still don't support ipv6, so catch the NXAPIPostError
exception when `get_interfaces_ip` tries to run `show ipv6 interfaces`
and return the ipv4 addresses

* Add test for no ipv6 support
bharath-ravindranath pushed a commit to bharath-ravindranath/napalm that referenced this pull request Apr 19, 2020
…m-automation#1108)

* Prevent nxos.get_interfaces_ip from failing if no ipv6 support

Cisco Nexus 3548's still don't support ipv6, so catch the NXAPIPostError
exception when `get_interfaces_ip` tries to run `show ipv6 interfaces`
and return the ipv4 addresses

* Add test for no ipv6 support
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.

3 participants