napalm_ntp is module not proxy & lint cleanup

This commit is contained in:
Mircea Ulinic 2016-03-22 11:50:47 +00:00
parent 7147c6a42a
commit 205fa362eb
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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'))