mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
napalm_ntp is module not proxy & lint cleanup
This commit is contained in:
parent
7147c6a42a
commit
205fa362eb
@ -35,6 +35,7 @@ __proxyenabled__ = ['napalm']
|
|||||||
# property functions
|
# property functions
|
||||||
# ----------------------------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
def __virtual__():
|
def __virtual__():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ def __virtual__():
|
|||||||
# ----------------------------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
def peers(peer = ''):
|
def peers(peer=''):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Returns a dictionary containing all NTP peers and synchronization details.
|
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['PASSWORD'] = opts.get('proxy', {}).get('passwd')
|
||||||
NETWORK_DEVICE['DRIVER_NAME'] = opts.get('proxy', {}).get('driver')
|
NETWORK_DEVICE['DRIVER_NAME'] = opts.get('proxy', {}).get('driver')
|
||||||
|
|
||||||
|
|
||||||
NETWORK_DEVICE['UP'] = False
|
NETWORK_DEVICE['UP'] = False
|
||||||
|
|
||||||
_driver_ = napalm.get_network_driver(NETWORK_DEVICE.get('DRIVER_NAME'))
|
_driver_ = napalm.get_network_driver(NETWORK_DEVICE.get('DRIVER_NAME'))
|
||||||
|
Loading…
Reference in New Issue
Block a user