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

Update extreme_ers_ssh.py #3258

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions netmiko/extreme/extreme_ers_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
from netmiko.cisco_base_connection import CiscoSSHConnection
from netmiko.exceptions import NetmikoAuthenticationException
import time

# Extreme ERS presents Enter Ctrl-Y to begin.
CTRL_Y = "\x19"
Expand All @@ -27,6 +28,10 @@ def special_login_handler(self, delay_factor: float = 1.0) -> None:

Older devices the Ctrl-Y is before SSH-login (not 100% sure of this).

Few devices after SSH-login the Ctrl-Y turns to blank screen-no pattern \

prompt appears after Enter/Return ( tested ).

Newer devices this is after SSH-login.
"""

Expand All @@ -46,6 +51,9 @@ def special_login_handler(self, delay_factor: float = 1.0) -> None:

if cntl_y in new_data:
self.write_channel(CTRL_Y)
time.sleep(1 * delay_factor)
# no pattern, blank for few devices till Return keypress
self.write_channel(self.RETURN)
elif "Press ENTER" in new_data:
self.write_channel(self.RETURN)
elif uname in new_data:
Expand Down
Loading