Remove unused variables / imports (#60505)

These helps with the clean up of migrating eos to a collection.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/60278/head
Paul Belanger 5 years ago committed by Nilashish Chakraborty
parent 645eebdbbb
commit 55d3ecff01

@ -31,7 +31,7 @@ import json
import os
import time
from ansible.module_utils._text import to_text, to_native
from ansible.module_utils._text import to_text
from ansible.module_utils.basic import env_fallback
from ansible.module_utils.connection import Connection, ConnectionError
from ansible.module_utils.network.common.config import NetworkConfig, dumps

@ -8,7 +8,6 @@ from ansible.module_utils.six import iteritems
from ansible.module_utils.network.common.utils import to_list
from ansible.module_utils.network.eos.providers.providers import CliProvider
from ansible.module_utils.network.eos.providers.cli.config.bgp.neighbors import AFNeighbors
from ansible.module_utils.common.network import to_netmask
class AddressFamily(CliProvider):

@ -174,7 +174,7 @@ import time
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.network.eos.eos import run_commands, load_config
from ansible.module_utils.six import iteritems
from ansible.module_utils.network.eos.eos import eos_argument_spec, check_args
from ansible.module_utils.network.eos.eos import eos_argument_spec
def check_transport(module):

@ -53,7 +53,7 @@ commands:
- lldp run
"""
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.network.eos.eos import get_config, load_config, run_commands
from ansible.module_utils.network.eos.eos import get_config, load_config
from ansible.module_utils.network.eos.eos import eos_argument_spec

@ -94,7 +94,7 @@ from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.network.common.utils import is_masklen, validate_ip_address
from ansible.module_utils.network.common.utils import remove_default_spec, validate_prefix
from ansible.module_utils.network.eos.eos import get_config, load_config
from ansible.module_utils.network.eos.eos import eos_argument_spec, check_args
from ansible.module_utils.network.eos.eos import eos_argument_spec
def is_address(value):

@ -169,7 +169,6 @@ def validate_privilege(value, module):
def map_obj_to_commands(updates, module):
commands = list()
state = module.params['state']
update_password = module.params['update_password']
for update in updates:

@ -121,7 +121,6 @@ commands:
- vlan 20
- name test-vlan
"""
import re
import time
from copy import deepcopy
@ -145,9 +144,7 @@ def map_obj_to_commands(updates, module):
for w in want:
vlan_id = w['vlan_id']
name = w['name']
state = w['state']
interfaces = w['interfaces']
obj_in_have = search_obj_in_list(vlan_id, have)

@ -144,7 +144,6 @@ def map_obj_to_commands(updates, module):
for w in want:
name = w['name']
rd = w['rd']
interfaces = w['interfaces']
obj_in_have = search_obj_in_list(name, have)

Loading…
Cancel
Save