|
|
@ -93,7 +93,11 @@ EXAMPLES = """
|
|
|
|
reboot: no
|
|
|
|
reboot: no
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
from jnpr.junos.utils.sw import SW
|
|
|
|
from jnpr.junos.utils.sw import SW
|
|
|
|
|
|
|
|
HAS_SW = True
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
HAS_SW = False
|
|
|
|
|
|
|
|
|
|
|
|
def install_package(module):
|
|
|
|
def install_package(module):
|
|
|
|
junos = SW(module.connection.device)
|
|
|
|
junos = SW(module.connection.device)
|
|
|
@ -126,6 +130,9 @@ def main():
|
|
|
|
module = get_module(argument_spec=spec,
|
|
|
|
module = get_module(argument_spec=spec,
|
|
|
|
supports_check_mode=True)
|
|
|
|
supports_check_mode=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not HAS_SW:
|
|
|
|
|
|
|
|
module.fail_json(msg='Missing jnpr.junos.utils.sw module')
|
|
|
|
|
|
|
|
|
|
|
|
result = dict(changed=False)
|
|
|
|
result = dict(changed=False)
|
|
|
|
|
|
|
|
|
|
|
|
do_upgrade = module.params['force'] or False
|
|
|
|
do_upgrade = module.params['force'] or False
|
|
|
|