Netmiko nornir send_command needs enable=
Closed this issue · 6 comments
Right now if you go into >
mode on cisco_ios and you don't have permissions to run show run
it isn't going to try the DEVICE_SECRET
and go into enable mode to get the config.
The job itself shows successful but the backup itself in Git is saved as:
^
% Invalid input detected at '^' marker.
changing line 237 to
result = task.run(task=netmiko_send_command, command_string=command, enable=True)
does work as a workaround.
Duplication steps:
- Use either creds_env or settings_env credential paths.
- Have your PASSWORD and SECRET be different values. (not positive this matters)
- Run a backup on a device that drops the user into > and user doesn't have
show run
access unless they go into enable mode.
@jvanderaa this is related to GC plugin, where I was able to duplicate this.
Hey guys, any chance we could get @merriry's suggestion merged into the main library? The fix works great, but I'm currently having to maintain this workaround as part of our build process and its such a small thing I was hoping we could just make make it available by default.