diff --git a/napalm/fortios.py b/napalm/fortios.py index f0945e4..4899767 100644 --- a/napalm/fortios.py +++ b/napalm/fortios.py @@ -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): diff --git a/test/unit/TestFortiOSDriver.py b/test/unit/TestFortiOSDriver.py index d4045c8..3e7b8d3 100644 --- a/test/unit/TestFortiOSDriver.py +++ b/test/unit/TestFortiOSDriver.py @@ -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()