diff --git a/lib/ansible/module_utils/network/nxos/nxos.py b/lib/ansible/module_utils/network/nxos/nxos.py index 383d2cfb86e..01a1f5c77b2 100644 --- a/lib/ansible/module_utils/network/nxos/nxos.py +++ b/lib/ansible/module_utils/network/nxos/nxos.py @@ -107,10 +107,6 @@ def get_provider_argspec(): return nxos_provider_spec -def check_args(module, warnings): - pass - - def load_params(module): provider = module.params.get('provider') or dict() for key, value in iteritems(provider): diff --git a/lib/ansible/modules/network/nxos/nxos_aaa_server.py b/lib/ansible/modules/network/nxos/nxos_aaa_server.py index d47a2c848e1..f78bb204c31 100644 --- a/lib/ansible/modules/network/nxos/nxos_aaa_server.py +++ b/lib/ansible/modules/network/nxos/nxos_aaa_server.py @@ -112,7 +112,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -247,7 +247,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} server_type = module.params['server_type'] diff --git a/lib/ansible/modules/network/nxos/nxos_acl.py b/lib/ansible/modules/network/nxos/nxos_acl.py index 17c2f81c0c5..e2e27c37188 100644 --- a/lib/ansible/modules/network/nxos/nxos_acl.py +++ b/lib/ansible/modules/network/nxos/nxos_acl.py @@ -171,7 +171,7 @@ commands: sample: ["ip access-list ANSIBLE", "10 permit tcp 192.0.2.1/24 any"] ''' from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -392,7 +392,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) results = dict(changed=False, warnings=warnings) diff --git a/lib/ansible/modules/network/nxos/nxos_acl_interface.py b/lib/ansible/modules/network/nxos/nxos_acl_interface.py index 37ca503b224..ccc3a12fd9f 100644 --- a/lib/ansible/modules/network/nxos/nxos_acl_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_acl_interface.py @@ -79,7 +79,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -153,7 +153,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) results = dict(changed=False, warnings=warnings) diff --git a/lib/ansible/modules/network/nxos/nxos_banner.py b/lib/ansible/modules/network/nxos/nxos_banner.py index b1b8457daec..6e7b9e13f5d 100644 --- a/lib/ansible/modules/network/nxos/nxos_banner.py +++ b/lib/ansible/modules/network/nxos/nxos_banner.py @@ -88,7 +88,7 @@ commands: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec import re @@ -178,8 +178,6 @@ def main(): warnings = list() - check_args(module, warnings) - result = {'changed': False} if warnings: result['warnings'] = warnings diff --git a/lib/ansible/modules/network/nxos/nxos_bfd_global.py b/lib/ansible/modules/network/nxos/nxos_bfd_global.py index 6084c66c055..d8bbca497d2 100644 --- a/lib/ansible/modules/network/nxos/nxos_bfd_global.py +++ b/lib/ansible/modules/network/nxos/nxos_bfd_global.py @@ -141,7 +141,7 @@ cmds: import re from ansible.module_utils.network.nxos.nxos import NxosCmdRef -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import load_config from ansible.module_utils.basic import AnsibleModule @@ -310,7 +310,6 @@ def main(): argument_spec.update(nxos_argument_spec) module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) cmd_ref = NxosCmdRef(module, BFD_CMD_REF) cmd_ref.get_existing() diff --git a/lib/ansible/modules/network/nxos/nxos_bgp.py b/lib/ansible/modules/network/nxos/nxos_bgp.py index a324a88410e..79829e55ccd 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp.py @@ -235,7 +235,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -601,7 +601,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) result = dict(changed=False, warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_af.py b/lib/ansible/modules/network/nxos/nxos_bgp_af.py index b50db52ddec..2f076b1cd71 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_af.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_af.py @@ -215,7 +215,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -715,7 +715,6 @@ def main(): ) warnings = list() - check_args(module, warnings) result = dict(changed=False, warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py index 41ddf9cf4d5..92e322b0db0 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py @@ -180,7 +180,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -434,7 +434,6 @@ def main(): ) warnings = list() - check_args(module, warnings) result = dict(changed=False, warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py index 32e285138a5..a9b648296e2 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py @@ -233,7 +233,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -625,7 +625,6 @@ def main(): ) warnings = list() - check_args(module, warnings) result = dict(changed=False, warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_command.py b/lib/ansible/modules/network/nxos/nxos_command.py index d207a528315..9fcad38a5e3 100644 --- a/lib/ansible/modules/network/nxos/nxos_command.py +++ b/lib/ansible/modules/network/nxos/nxos_command.py @@ -128,7 +128,7 @@ from ansible.module_utils._text import to_text from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.parsing import Conditional, FailedConditionalError from ansible.module_utils.network.common.utils import transform_commands, to_lines -from ansible.module_utils.network.nxos.nxos import check_args, nxos_argument_spec, run_commands +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, run_commands def parse_commands(module, warnings): @@ -174,7 +174,6 @@ def main(): warnings = list() result = {'changed': False, 'warnings': warnings} - check_args(module, warnings) commands = parse_commands(module, warnings) wait_for = module.params['wait_for'] or list() diff --git a/lib/ansible/modules/network/nxos/nxos_config.py b/lib/ansible/modules/network/nxos/nxos_config.py index 8e84b49ccb5..3fa5d66d182 100644 --- a/lib/ansible/modules/network/nxos/nxos_config.py +++ b/lib/ansible/modules/network/nxos/nxos_config.py @@ -308,7 +308,6 @@ from ansible.module_utils.connection import ConnectionError from ansible.module_utils.network.common.config import NetworkConfig, dumps from ansible.module_utils.network.nxos.nxos import get_config, load_config, run_commands, get_connection from ansible.module_utils.network.nxos.nxos import nxos_argument_spec -from ansible.module_utils.network.nxos.nxos import check_args as nxos_check_args from ansible.module_utils.network.common.utils import to_list @@ -408,7 +407,6 @@ def main(): supports_check_mode=True) warnings = list() - nxos_check_args(module, warnings) result = {'changed': False, 'warnings': warnings} diff --git a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py index 686b86f8283..e3bb7c568c0 100644 --- a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py @@ -96,7 +96,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -245,7 +245,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = dict(changed=False, warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_igmp.py b/lib/ansible/modules/network/nxos/nxos_igmp.py index 7837f5c80c8..cb645e7a042 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp.py @@ -82,7 +82,7 @@ updates: sample: ["ip igmp flush-routes"] ''' from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -115,7 +115,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) current = get_current(module) desired = get_desired(module) diff --git a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py index afb55b6fc9f..57299338aff 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py @@ -190,7 +190,7 @@ changed: ''' from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import get_interface_type from ansible.module_utils.basic import AnsibleModule @@ -514,7 +514,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) state = module.params['state'] interface = module.params['interface'] diff --git a/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py b/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py index 0f54f1b1ded..f25aef5fa9d 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py @@ -96,7 +96,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -250,7 +250,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} snooping = module.params['snooping'] diff --git a/lib/ansible/modules/network/nxos/nxos_install_os.py b/lib/ansible/modules/network/nxos/nxos_install_os.py index dfb8571f16d..37c2b283d4b 100644 --- a/lib/ansible/modules/network/nxos/nxos_install_os.py +++ b/lib/ansible/modules/network/nxos/nxos_install_os.py @@ -123,7 +123,7 @@ install_state: import re from time import sleep from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -568,7 +568,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) # Get system_image_file(sif), kickstart_image_file(kif) and # issu settings from module params. diff --git a/lib/ansible/modules/network/nxos/nxos_interface_ospf.py b/lib/ansible/modules/network/nxos/nxos_interface_ospf.py index d483fbcc703..bb5de390eb9 100644 --- a/lib/ansible/modules/network/nxos/nxos_interface_ospf.py +++ b/lib/ansible/modules/network/nxos/nxos_interface_ospf.py @@ -145,7 +145,7 @@ import re import struct import socket from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -457,7 +457,6 @@ def main(): module.params['interface'] = module.params['interface'].capitalize() warnings = list() - check_args(module, warnings) result = {'changed': False, 'commands': [], 'warnings': warnings} for param in ['message_digest_encryption_type', diff --git a/lib/ansible/modules/network/nxos/nxos_logging.py b/lib/ansible/modules/network/nxos/nxos_logging.py index 89e7f663579..c3c5be2bac7 100644 --- a/lib/ansible/modules/network/nxos/nxos_logging.py +++ b/lib/ansible/modules/network/nxos/nxos_logging.py @@ -182,7 +182,7 @@ import re import copy from ansible.module_utils.network.nxos.nxos import get_config, load_config, run_commands, save_module_context, read_module_context -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args, normalize_interface +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, normalize_interface from ansible.module_utils.basic import AnsibleModule @@ -761,7 +761,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) result = {'changed': False} if warnings: diff --git a/lib/ansible/modules/network/nxos/nxos_ntp.py b/lib/ansible/modules/network/nxos/nxos_ntp.py index 8bd9de059dd..51f3b451401 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp.py @@ -107,7 +107,7 @@ changed: import re from ansible.module_utils.basic import AnsibleModule -from ansible.module_utils.network.nxos.nxos import check_args, load_config, nxos_argument_spec, run_commands +from ansible.module_utils.network.nxos.nxos import load_config, nxos_argument_spec, run_commands def execute_show_command(command, module, command_type='cli_show'): @@ -317,7 +317,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) server = module.params['server'] or None peer = module.params['peer'] or None diff --git a/lib/ansible/modules/network/nxos/nxos_ntp_auth.py b/lib/ansible/modules/network/nxos/nxos_ntp_auth.py index febbc8a590c..10fef0b4924 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp_auth.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp_auth.py @@ -87,7 +87,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -251,7 +251,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) key_id = module.params['key_id'] md5string = module.params['md5string'] diff --git a/lib/ansible/modules/network/nxos/nxos_ntp_options.py b/lib/ansible/modules/network/nxos/nxos_ntp_options.py index da6b82dc70f..719c16224da 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp_options.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp_options.py @@ -76,7 +76,7 @@ updates: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -113,7 +113,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) master = module.params['master'] stratum = module.params['stratum'] diff --git a/lib/ansible/modules/network/nxos/nxos_ospf.py b/lib/ansible/modules/network/nxos/nxos_ospf.py index 409c6c17821..74205b35314 100644 --- a/lib/ansible/modules/network/nxos/nxos_ospf.py +++ b/lib/ansible/modules/network/nxos/nxos_ospf.py @@ -59,7 +59,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -119,7 +119,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) result = dict(changed=False, warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py b/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py index 60a3e6348dc..98aa9a0ad1c 100644 --- a/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py +++ b/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py @@ -137,7 +137,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -400,7 +400,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) result = dict(changed=False, commands=[], warnings=warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_overlay_global.py b/lib/ansible/modules/network/nxos/nxos_overlay_global.py index 1a4520cf2f4..2f79bcdb94e 100644 --- a/lib/ansible/modules/network/nxos/nxos_overlay_global.py +++ b/lib/ansible/modules/network/nxos/nxos_overlay_global.py @@ -56,7 +56,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -164,7 +164,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) result = {'changed': False, 'commands': [], 'warnings': warnings} args = PARAM_TO_COMMAND_KEYMAP.keys() diff --git a/lib/ansible/modules/network/nxos/nxos_pim.py b/lib/ansible/modules/network/nxos/nxos_pim.py index aa67c408124..af7cf39ead2 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim.py +++ b/lib/ansible/modules/network/nxos/nxos_pim.py @@ -78,7 +78,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -153,7 +153,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) result = {'changed': False, 'commands': [], 'warnings': warnings} params = module.params diff --git a/lib/ansible/modules/network/nxos/nxos_pim_interface.py b/lib/ansible/modules/network/nxos/nxos_pim_interface.py index fdd5d08c2c5..44c42e26705 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_pim_interface.py @@ -146,7 +146,7 @@ commands: import re from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.nxos.nxos import get_config, load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import get_interface_type @@ -497,7 +497,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_pim_rp_address.py b/lib/ansible/modules/network/nxos/nxos_pim_rp_address.py index 50c732a0c45..03c8813eb4d 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim_rp_address.py +++ b/lib/ansible/modules/network/nxos/nxos_pim_rp_address.py @@ -81,7 +81,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -191,7 +191,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) result = {'changed': False, 'commands': [], 'warnings': warnings} state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_ping.py b/lib/ansible/modules/network/nxos/nxos_ping.py index 26056f84246..be4e0239764 100644 --- a/lib/ansible/modules/network/nxos/nxos_ping.py +++ b/lib/ansible/modules/network/nxos/nxos_ping.py @@ -107,7 +107,7 @@ packet_loss: sample: "0.00%" ''' from ansible.module_utils.network.nxos.nxos import run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -189,7 +189,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) destination = module.params['dest'] state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_reboot.py b/lib/ansible/modules/network/nxos/nxos_reboot.py index 6c782e585b4..05803c735a9 100644 --- a/lib/ansible/modules/network/nxos/nxos_reboot.py +++ b/lib/ansible/modules/network/nxos/nxos_reboot.py @@ -59,7 +59,7 @@ rebooted: ''' from ansible.module_utils.network.nxos.nxos import load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -78,7 +78,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = dict(changed=False, warnings=warnings) if module.params['confirm']: diff --git a/lib/ansible/modules/network/nxos/nxos_smu.py b/lib/ansible/modules/network/nxos/nxos_smu.py index 5164ee07caa..7859a6c194b 100644 --- a/lib/ansible/modules/network/nxos/nxos_smu.py +++ b/lib/ansible/modules/network/nxos/nxos_smu.py @@ -66,7 +66,7 @@ commands: import time from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -130,7 +130,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} pkg = module.params['pkg'] diff --git a/lib/ansible/modules/network/nxos/nxos_snapshot.py b/lib/ansible/modules/network/nxos/nxos_snapshot.py index 9eebc9b30f5..3acdef6c03c 100644 --- a/lib/ansible/modules/network/nxos/nxos_snapshot.py +++ b/lib/ansible/modules/network/nxos/nxos_snapshot.py @@ -136,7 +136,7 @@ import re from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec def execute_show_command(command, module): @@ -322,7 +322,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) action = module.params['action'] comparison_results_file = module.params['comparison_results_file'] diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_community.py b/lib/ansible/modules/network/nxos/nxos_snmp_community.py index b0c4a0cfb13..c39efdfdb69 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_community.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_community.py @@ -74,7 +74,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -178,7 +178,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} access = module.params['access'] diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_contact.py b/lib/ansible/modules/network/nxos/nxos_snmp_contact.py index 69a1829db53..409d8cb9ceb 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_contact.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_contact.py @@ -67,7 +67,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -113,7 +113,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} contact = module.params['contact'] diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_host.py b/lib/ansible/modules/network/nxos/nxos_snmp_host.py index 35648b175f5..06c1ac250c2 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_host.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_host.py @@ -104,7 +104,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -360,7 +360,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} snmp_host = module.params['snmp_host'] diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_location.py b/lib/ansible/modules/network/nxos/nxos_snmp_location.py index f5cf9eb6cd0..aa8ce688b37 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_location.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_location.py @@ -71,7 +71,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -117,7 +117,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} location = module.params['location'] diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_traps.py b/lib/ansible/modules/network/nxos/nxos_snmp_traps.py index b0a32bc251c..2161092c75b 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_traps.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_traps.py @@ -77,7 +77,7 @@ commands: from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import get_capabilities from ansible.module_utils.basic import AnsibleModule @@ -210,7 +210,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} group = module.params['group'].lower() diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_user.py b/lib/ansible/modules/network/nxos/nxos_snmp_user.py index c98051e5892..bd23a4ce64b 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_user.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_user.py @@ -93,7 +93,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -308,7 +308,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'commands': [], 'warnings': warnings} user = module.params['user'] diff --git a/lib/ansible/modules/network/nxos/nxos_system.py b/lib/ansible/modules/network/nxos/nxos_system.py index e5c8870fae0..fb7dc2e9e3d 100644 --- a/lib/ansible/modules/network/nxos/nxos_system.py +++ b/lib/ansible/modules/network/nxos/nxos_system.py @@ -114,7 +114,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.six import iteritems from ansible.module_utils.network.common.config import NetworkConfig @@ -378,7 +378,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) result = {'changed': False} if warnings: diff --git a/lib/ansible/modules/network/nxos/nxos_vpc.py b/lib/ansible/modules/network/nxos/nxos_vpc.py index e71be21aabf..518fdbcbf4f 100644 --- a/lib/ansible/modules/network/nxos/nxos_vpc.py +++ b/lib/ansible/modules/network/nxos/nxos_vpc.py @@ -155,7 +155,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -369,7 +369,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) results = {'changed': False, 'warnings': warnings} domain = module.params['domain'] diff --git a/lib/ansible/modules/network/nxos/nxos_vpc_interface.py b/lib/ansible/modules/network/nxos/nxos_vpc_interface.py index b267e9e495f..01eac1cf2c7 100644 --- a/lib/ansible/modules/network/nxos/nxos_vpc_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_vpc_interface.py @@ -74,7 +74,7 @@ commands: ''' from ansible.module_utils.network.nxos.nxos import get_config, load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule @@ -251,7 +251,6 @@ def main(): warnings = list() commands = [] - check_args(module, warnings) results = {'changed': False, 'warnings': warnings} portchannel = module.params['portchannel'] diff --git a/lib/ansible/modules/network/nxos/nxos_vrf_af.py b/lib/ansible/modules/network/nxos/nxos_vrf_af.py index a00b994c7ab..224668fc76f 100644 --- a/lib/ansible/modules/network/nxos/nxos_vrf_af.py +++ b/lib/ansible/modules/network/nxos/nxos_vrf_af.py @@ -71,7 +71,7 @@ commands: sample: ["vrf context ntc", "address-family ipv4 unicast"] ''' from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import NetworkConfig @@ -89,7 +89,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) warnings = list() - check_args(module, warnings) result = {'changed': False, 'warnings': warnings} diff --git a/lib/ansible/modules/network/nxos/nxos_vtp_domain.py b/lib/ansible/modules/network/nxos/nxos_vtp_domain.py index 4caa484b6cb..87f844696ca 100644 --- a/lib/ansible/modules/network/nxos/nxos_vtp_domain.py +++ b/lib/ansible/modules/network/nxos/nxos_vtp_domain.py @@ -88,7 +88,7 @@ changed: from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import get_capabilities from ansible.module_utils.basic import AnsibleModule import re @@ -175,7 +175,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) domain = module.params['domain'] diff --git a/lib/ansible/modules/network/nxos/nxos_vtp_password.py b/lib/ansible/modules/network/nxos/nxos_vtp_password.py index 2609801eb3d..301a8b67dfe 100644 --- a/lib/ansible/modules/network/nxos/nxos_vtp_password.py +++ b/lib/ansible/modules/network/nxos/nxos_vtp_password.py @@ -100,7 +100,7 @@ changed: ''' from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import get_capabilities from ansible.module_utils.basic import AnsibleModule import re @@ -203,7 +203,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) vtp_password = module.params['vtp_password'] or None state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_vtp_version.py b/lib/ansible/modules/network/nxos/nxos_vtp_version.py index 28a7b4588f2..0526e658728 100644 --- a/lib/ansible/modules/network/nxos/nxos_vtp_version.py +++ b/lib/ansible/modules/network/nxos/nxos_vtp_version.py @@ -83,7 +83,7 @@ changed: sample: true ''' from ansible.module_utils.network.nxos.nxos import load_config, run_commands -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import get_capabilities from ansible.module_utils.basic import AnsibleModule import re @@ -170,7 +170,6 @@ def main(): supports_check_mode=True) warnings = list() - check_args(module, warnings) version = module.params['version'] diff --git a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py index e24d30204a4..1c51fdc6f73 100644 --- a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py +++ b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py @@ -113,7 +113,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.network.nxos.nxos import run_commands from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -365,7 +365,6 @@ def main(): warnings = list() result = {'changed': False, 'commands': [], 'warnings': warnings} - check_args(module, warnings) state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py index 1fa2c4246c6..1b4e82cff12 100644 --- a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py @@ -97,7 +97,7 @@ commands: import re from ansible.module_utils.network.nxos.nxos import get_config, load_config -from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args +from ansible.module_utils.network.nxos.nxos import nxos_argument_spec from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.common.config import CustomNetworkConfig @@ -314,7 +314,6 @@ def main(): ) warnings = list() - check_args(module, warnings) result = {'changed': False, 'commands': [], 'warnings': warnings} if module.params['peer_list']: