From 8b051291f7985ad914081f9d8cf042e5bf7a3a3b Mon Sep 17 00:00:00 2001 From: Paul Tobias Date: Wed, 11 Mar 2026 17:25:20 +0700 Subject: [PATCH] ssh_netmiko.py: Add read_timeout to send_command() When a command runs for more than 10 seconds (for example traceroute), then the web UI shows "Something went wrong.". This happens because the default timeout for send_command() is 10 seconds: https://github.com/ktbyers/netmiko/blob/develop/netmiko/base_connection.py#L1664-L1668 --- hyperglass/execution/drivers/ssh_netmiko.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hyperglass/execution/drivers/ssh_netmiko.py b/hyperglass/execution/drivers/ssh_netmiko.py index e96f68c..c89744f 100644 --- a/hyperglass/execution/drivers/ssh_netmiko.py +++ b/hyperglass/execution/drivers/ssh_netmiko.py @@ -52,7 +52,10 @@ class NetmikoConnection(SSHConnection): global_args = netmiko_device_globals.get(self.device.platform, {}) - send_args = netmiko_device_send_args.get(self.device.platform, {}) + send_args = { + "read_timeout": params.request_timeout, + **netmiko_device_send_args.get(self.device.platform, {}), + } driver_kwargs = { "host": host or self.device._target,