From cca6b60f09956eeca83a7437259500726c0a91e6 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Thu, 25 Feb 2021 21:02:53 -0700 Subject: [PATCH] change timeout key passed to scrapli - fixes issue with long-running commands that exceed the standard timeout --- hyperglass/execution/drivers/ssh_scrapli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperglass/execution/drivers/ssh_scrapli.py b/hyperglass/execution/drivers/ssh_scrapli.py index 7ad2b2c..eed0674 100644 --- a/hyperglass/execution/drivers/ssh_scrapli.py +++ b/hyperglass/execution/drivers/ssh_scrapli.py @@ -87,7 +87,7 @@ class ScrapliConnection(SSHConnection): "host": host or self.device._target, "port": port or self.device.port, "auth_username": self.device.credential.username, - "timeout_transport": math.floor(params.request_timeout * 1.25), + "timeout_ops": math.floor(params.request_timeout * 1.25), "transport": "asyncssh", "auth_strict_key": False, "ssh_known_hosts_file": False,