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

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

View File

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