From 6c6f86d32ea2c43fbe1d94b78c36b9d3b05fd419 Mon Sep 17 00:00:00 2001 From: malinoski Date: Tue, 27 Oct 2020 17:33:46 -0300 Subject: [PATCH] Junos plugin was reverted to use variablea like before, to follow the superclass architecture --- networkapi/plugins/Juniper/JUNOS/plugin.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/networkapi/plugins/Juniper/JUNOS/plugin.py b/networkapi/plugins/Juniper/JUNOS/plugin.py index 0e4d6125f..ec8a29b44 100644 --- a/networkapi/plugins/Juniper/JUNOS/plugin.py +++ b/networkapi/plugins/Juniper/JUNOS/plugin.py @@ -41,6 +41,13 @@ class JUNOS(BasePlugin): + configuration = None + quantity_of_times_to_try_lock = 3 + seconds_to_wait_to_try_lock = 10 + alternative_variable_base_path_list = ['path_to_tftpboot'] + alternative_static_base_path_list = ['/mnt/scripts/tftpboot/'] + ignore_warning_list = ['statement not found'] + def __init__(self, **kwargs): super(JUNOS, self).__init__(connect_port=830, **kwargs) if 'quantity_of_times_to_try_lock' in kwargs: @@ -49,13 +56,6 @@ def __init__(self, **kwargs): if 'seconds_to_wait_to_try_lock' in kwargs: self.seconds_to_wait_to_try_lock = kwargs.get('seconds_to_wait_to_try_lock') - self.configuration = None - self.quantity_of_times_to_try_lock = 3 - self.seconds_to_wait_to_try_lock = 10 - self.alternative_variable_base_path_list = ['path_to_tftpboot'] - self.alternative_static_base_path_list = ['/mnt/scripts/tftpboot/'] - self.ignore_warning_list = ['statement not found'] - def connect(self): """