Fixes handling of terminal_initial_prompt on dellos6 and dellos9 devices (#45273)

* Fix terminal initial prompt on dellos6 and dellos9

* Fix_pylint
pull/45566/head
abirami-n 6 years ago committed by Deepak Agrawal
parent eaf01d321f
commit 06fd9820a3

@ -50,6 +50,12 @@ class TerminalModule(TerminalBase):
]
terminal_initial_prompt = br"\(y/n\)"
terminal_initial_answer = b"y"
terminal_inital_prompt_newline = False
def on_become(self, passwd=None):
if self._get_prompt().endswith('#'):
return

@ -45,6 +45,10 @@ class TerminalModule(TerminalBase):
re.compile(br"'[^']' +returned error code: ?\d+"),
]
terminal_initial_prompt = br"\[y/n\]:"
terminal_initial_answer = b"y"
def on_open_shell(self):
try:
self._exec_cli_command(b'terminal length 0')

Loading…
Cancel
Save