Remove unused imports / variables from vyos modules (#60333)

This code is not used, lets remove it.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/60341/head
Paul Belanger 5 years ago committed by GitHub
parent 2e90efd4a7
commit 4f78b694f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,8 +16,6 @@ from ansible.module_utils.network.common.facts.facts import FactsBase
from ansible.module_utils.network.vyos.facts.interfaces.interfaces import InterfacesFacts
from ansible.module_utils.network.vyos.facts.l3_interfaces.l3_interfaces import L3_interfacesFacts
from ansible.module_utils.network.vyos.facts.legacy.base import Default, Neighbors, Config
from ansible.module_utils. \
network.vyos.vyos import run_commands, get_capabilities
FACT_LEGACY_SUBSETS = dict(

@ -201,7 +201,7 @@ def main():
if commands:
commit = not module.check_mode
response = load_config(module, commands, commit=commit)
load_config(module, commands, commit=commit)
result['changed'] = True
module.exit_json(**result)

@ -149,7 +149,6 @@ def validate_level(value, module):
def spec_to_commands(updates, module):
commands = list()
state = module.params['state']
update_password = module.params['update_password']
def needs_update(want, have, x):

@ -209,7 +209,6 @@ def map_params_to_obj(module):
def map_config_to_obj(module):
objs = []
interfaces = list()
output = run_commands(module, 'show interfaces')
lines = output[0].strip().splitlines()[3:]

Loading…
Cancel
Save