how to perform netmiko.send_command_timing() method on napalm? #1908
-
Hi everybody, I'm a beginner on network automation. Basically, I am trying to use napalm library to create a ethernet loopback on a cisco device. But I have an issue at some point after editing the interface, which is running this command
But napalm.cli() method doesn't accept expect_string argument.
Netmiko.send_command_timing() method helps me as it requires a confirmation for the device to proceed How can I accomplish same task (steps) using napalm.cli() method? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
.cli() doesn't support that. I would just do the following: # napalm_obj.device is the Netmiko connection object
netmiko_conn = napalm_obj.device
netmiko_conn.send_command_timing(...)
# or, alternatively
netmiko_conn.send_command(cmd, expect_string="whatever") |
Beta Was this translation helpful? Give feedback.
-
It perfectly works in both way as But as I said it solved my issue. Thanks again for all your support. |
Beta Was this translation helpful? Give feedback.
.cli() doesn't support that.
I would just do the following: