mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
napalm_ntp is module not proxy & lint cleanup
This commit is contained in:
parent
7147c6a42a
commit
205fa362eb
@ -27,7 +27,7 @@ log = logging.getLogger(__file__)
|
||||
# module properties
|
||||
# ----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
__virtualname__ = 'netntp'
|
||||
__virtualname__ = 'netntp'
|
||||
__proxyenabled__ = ['napalm']
|
||||
# uses NAPALM-based proxy to interact with network devices
|
||||
|
||||
@ -35,6 +35,7 @@ __proxyenabled__ = ['napalm']
|
||||
# property functions
|
||||
# ----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
def __virtual__():
|
||||
return True
|
||||
|
||||
@ -47,7 +48,7 @@ def __virtual__():
|
||||
# ----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
def peers(peer = ''):
|
||||
def peers(peer=''):
|
||||
|
||||
"""
|
||||
Returns a dictionary containing all NTP peers and synchronization details.
|
@ -97,7 +97,6 @@ def init(opts):
|
||||
NETWORK_DEVICE['PASSWORD'] = opts.get('proxy', {}).get('passwd')
|
||||
NETWORK_DEVICE['DRIVER_NAME'] = opts.get('proxy', {}).get('driver')
|
||||
|
||||
|
||||
NETWORK_DEVICE['UP'] = False
|
||||
|
||||
_driver_ = napalm.get_network_driver(NETWORK_DEVICE.get('DRIVER_NAME'))
|
||||
|
Loading…
Reference in New Issue
Block a user