Closed davama closed 2 years ago
Found the issue.
It was technically not napalm but netmiko.
With the latest netmiko version they added a read_timeout=10.0
to the _send_command
function under netmiko.base_connection.
i basically copied over the s350 napalm _send_command
into custom_napalm.s350 (which replaces the original function) and added read_timeout=20
to the netmiko call in self.device._send_command(bla, read_timeout=20)
Sooo , what is conclusion. Is the issue specific for your environment ?
Well the default netmiko read_timeout=10.0
setting is not specific, but my device taking more than 10 seconds to spit the config is.
Environment
Python version ('python3 --version'):
Python 3.9.7
SF302-08PP-K9
Steps to Reproduce
Expected Behavior
The
dict
output of the config.Observed Behavior
Under v3.4.1 (
pip install napalm==3.4.1
) I have no issues getting the output ofget_config
function. WIth napalm==4.0.0 the following results:I can see in the netmiko debug log that it runs the commands as expected (
show startup-config
) but as the config is being spit out, I eventually getPatter not detected
errorPlease let me know if need more information from me. First time posting here. Hope I did this right.
Thank you, Dave