Skip to content

Commit 4e3d952

Browse files
ph20Oleksandr Grynchuk
authored andcommitted
Correct handling user prompt on Cisco Nexus OS (NXOS)
1 parent faf38fc commit 4e3d952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Exscript/protocols/drivers/nxos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import re
2727
from Exscript.protocols.drivers.driver import Driver
2828

29-
_user_re = [re.compile(r'user ?name: ?$', re.I)]
29+
_user_re = [re.compile(r'user ?name: ?$', re.I), re.compile(r'[^:]* login: ?$', re.I)]
3030
_password_re = [re.compile(r'(?:[\r\n]Password: ?|last resort password:)$')]
3131
_prompt_re = [re.compile(r'[\r\n][\-\w+\.:/]+(?:\([^\)]+\))?[>#] ?$')]
3232
_error_re = [re.compile(r'%Error'),

0 commit comments

Comments
 (0)