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

Handle control plane interface #1411

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

rnwolfe
Copy link
Contributor

@rnwolfe rnwolfe commented Mar 25, 2021

See #1410

I approached the fix by simply adding an additional regex pattern for the interface line. There are multiple approaches that are a matter of opinion, e.g. just modify existing pattern with an or to include the text but I chose this route.

Also a matter of opinion is whether to handle this case and return the data or just skip it and exclude from the response as it seems to just be a bogus interface with no MAC, MTU, etc; however, I assume let the user handle that decision and just return the data as it is on the device which I think is inline with NAPALM principles.

Tests should also work to cover this case.

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.

Looks good, just a small lint issue required.

napalm/ios/ios.py Outdated Show resolved Hide resolved
Co-authored-by: Mircea Ulinic <mirceaulinic@users.noreply.github.com>
@rnwolfe
Copy link
Contributor Author

rnwolfe commented Mar 26, 2021

Thanks, @mirceaulinic I was wondering what was failing the CI. Looking better now.

@mirceaulinic mirceaulinic merged commit 439e8ae into napalm-automation:develop Mar 26, 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.

2 participants