fixes timeout param in netconf provider for junos (#18634)
This change will now cause the netconf provider to honor the module
timeout value when making calls to pyez.
(cherry picked from commit a757a77159
)
This commit is contained in:
parent
4d7760c0b1
commit
b878e8f0f0
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ class Netconf(object):
|
|||
try:
|
||||
self.device = Device(host, **kwargs)
|
||||
self.device.open()
|
||||
self.device.timeout = params['timeout']
|
||||
except ConnectError:
|
||||
exc = get_exception()
|
||||
self.raise_exc('unable to connect to %s: %s' % (host, str(exc)))
|
||||
|
|
Loading…
Reference in a new issue