-
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 w/junos driver fails to properly identify/sanitize the output of junos_views.junos_ipv6_neighbors_table
#1978
Comments
junos_views,junos_ipv6_neighbors_table
junos_views.junos_ipv6_neighbors_table
I can submit a PR if we indentify what we want to do with this, aka skip the entry/return |
actually not related, still using |
Initial proposal for ipv6 neighbors: napalm-automation/napalm-base#311 napalm/test/ios/mocked_data/test_get_ipv6_neighbors_table/normal/expected_result.json Lines 31 to 35 in b90f184
Recommend explicitly testing state, only attempting to resolve/normalize MAC address when in a state where it would be present (REACH, STALE, DELAY, ?) |
So we could just catch the exception thrown in by netaddr and return |
I feel that an approach like that (purposely putting bad data in and catching an exception) may hide other issues that may also raise that same exception type -- explicitly bypassing the call to netaddr based on the output from the device would be safer, I think. |
Do not try to parse a "none" value and convert it to ""
I submitted a pr in that direction - hope this helps :) |
Description of Issue/Question
NAPALM w/junos driver fails to properly identify/sanitize the output of
junos_views.junos_ipv6_neighbors_table
when the mac address returned by the device isnone
.Did you follow the steps from https://github.com/napalm-automation/napalm#faq
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: