Skip to content

Commit

Permalink
Junos plugin was reverted to use variablea like before, to follow the…
Browse files Browse the repository at this point in the history
… superclass architecture
  • Loading branch information
Malinoski committed Oct 27, 2020
1 parent 5167356 commit 6c6f86d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions networkapi/plugins/Juniper/JUNOS/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):

"""
Expand Down

0 comments on commit 6c6f86d

Please sign in to comment.