Added timeout to base for description
This commit is contained in:
1 parent
c9fc641b60
commit
c75ddecbf4
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -37,11 +37,11 @@ def execute_get(device, cmd, separator=':', auto=False):
|
||||
|
||||
class FortiOSDriver(NetworkDriver):
|
||||
|
||||
def __init__(self, hostname, username, password):
|
||||
def __init__(self, hostname, username, password, timeout=60):
|
||||
self.hostname = hostname
|
||||
self.username = username
|
||||
self.password = password
|
||||
self.device = FortiOS(hostname, username=username, password=password)
|
||||
self.device = FortiOS(hostname, username=username, password=password, timeout=timeout)
|
||||
self.config_replace = False
|
||||
|
||||
def open(self):
|
||||
|
||||
@@ -27,5 +27,5 @@ class TestFortiOSDriver(unittest.TestCase, TestNetworkDriver):
|
||||
password = 'this_is_not_a_secure_password'
|
||||
cls.vendor = 'fortios'
|
||||
|
||||
cls.device = FortiOSDriver(hostname, username, password)
|
||||
cls.device = FortiOSDriver(hostname, username, password, timeout=60)
|
||||
cls.device.open()
|
||||
Reference in new issue
Block a user