Open mabraham21 opened 4 years ago
You probably would have to do a pull-request on this to pass in a special argument. You would pass this in via optional_args.
Can you provide a configuration snippet @mabraham21 ?
I only know about
aaa authentication password-prompt "YOURNEWPASSWORDPROMT: "
That command would change the passwordpromt for user EXEC mode and privileged EXEC mode , but that does not apply to your setup.
I think that would help , if someone else would create a PR for that feature.
Description of Issue/Question
Our company set a custom prompt when switching to enable mode on Cisco devices. I cannot change that, it's the policy. The prompt is "SecurID_PASSCODE:". By default, Napalm is looking for the "Password:" prompt in order to enter the enable password. Is there a way to tell Napalm to expect a different prompt for the enable mode?
Netmiko can do this in the enable method:
net_connect = ConnectHandler(**net_device) net_connect.enable(cmd='en', pattern='SecurID_PASSCODE:')
It looks like Napalm goes into enable mode automatically and doesn't allow for a custom enable prompt on Cisco devices.
I tried setting this in the optional arguments, but had no luck:
driver = napalm.get_network_driver('ios') device = driver(hostname=host, username='user', password='mypass', optional_args={'secret': 'mypass2#', 'pattern': 'SecurID_PASSCODE:'})
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)