-
Notifications
You must be signed in to change notification settings - Fork 5
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-opengear incompatible with NAPALM 4.x / Netmiko 4.x #11
Labels
bug
Something isn't working
Comments
In fact, this seems a little deeper, caused by ktbyers/netmiko#2866. Keeping this issue open in the meantime. |
mirceaulinic
added a commit
that referenced
this issue
Jul 26, 2022
Until there will be a more permanent solution in Netmiko, in order to have this driver usable with version 4.x, we need to "help" Netmiko when it fails to detect the prompt. Strictly speaking, as discussed under ktbyers/netmiko#2866 Netmiko works as designed, the ``base_prompt`` attribute is what we'd expect to be, but when OpenGear doesn't set anything on the prompt other than ``$`` or ``#`` depending on the user elevation, then Netmiko fails to properly read (more specifically, won't know when to stop). I also took this chance to change the behaviour in ``open()`` to only invoke ``enable()`` when the user is not root -- this saves one unnecessary operation when we use the root user.
Temporary workaround: #12. |
mirceaulinic
added a commit
that referenced
this issue
Jul 26, 2022
Working around #11 until the next Netmiko release
Are we able to add support for the We have an account that has "sudo" privs on opengear already that does not prompt for a password as the code in #12 changed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With NAPALM 4.0.0 recently released, there's a requirement for Netmiko to be on a newer version. 4.x has introduced some backwards incompatible changes that are causing the following error in napalm-opengear:
The text was updated successfully, but these errors were encountered: