I'm trying to use netmiko to work as well as cli_command module for Ansible. cli_command allows to send arbitrary list of strings into device (f.e. configure, sh te 1/0/1, exit in a single multi-line string) and it works without issues.
Netmiko requires a separate send_config and send_command and causes hangs for connection if 'configure' is send as a command.
Is there any way to force netmiko to accept modified prompt in configure mode like it's a normal command?
Basically, I want this to work:
connection.send_command('''
configure
shutdown te 1/0/1
end
show interface te 1/0/1
''')