-
Notifications
You must be signed in to change notification settings - Fork 13
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
Make compatible with Napalm 3 #30
base: master
Are you sure you want to change the base?
Conversation
Napalm has dropped py2 support, and thus no longer provides py23_compat. See napalm-automation/napalm@9d27a00
Compatability might be a problem; I see two options:
I also researched when the changes made it into napalm:
|
A workaround independent of this PR would be to modify the given requirement from |
given the current state it might be best to just foward-port and forget compatibility issues. did anyone ever work with you / consider pulling in the PRs here? |
Hi @FlorianHeigl , I haven't received any communication. I just recall trying to use it with our network hardware and fixing it, but I cannot give any more details due to lack of memory. I have no problems with forward-porting, it should just follow good etiquette and increment the major version number as to prevent uninentional updates on the side of users. |
I just noticed that it got out of date and people may be waiting for me to rebase. I can try to rebase it, but I would have to backtrack where we use that on our side to test it to some degree; I can't promise I find spare time for that. |
I used this PR to test the compatibility with my PR (#34), because get_vlans() parent function is only present starting from Napalm 3.0. |
py23_compat
due to napalm dropping py2 supportsanitized=False
toget_config
(but don't implement sanitization, seeget_config
does not supportsanitized
#29)longer=False
toget_route_to
(but don't implement longer output, seeget_route_to
does not supportlonger
#28)MTU
field to theget_interfaces
interface dict.If I understand correctly, the problem with the MTU is that it is associated to a VLAN and not an interface (at least in our
OS6860-P48
) – obtainable viashow vlan
.These parameter stubs are nonetheless required to match the current API and not throw any
ImportError
s due to the compat access.