From 462ab6b1dbe5a69996f8695f4120641de5d67b9a Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 30 Jan 2017 15:31:59 -0800 Subject: [PATCH] PEP 8 E111 cleanup for nxos modules. --- .../modules/network/nxos/nxos_aaa_server.py | 12 ++--- .../network/nxos/nxos_aaa_server_host.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_acl.py | 12 ++--- .../network/nxos/nxos_acl_interface.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_bgp.py | 12 ++--- .../modules/network/nxos/nxos_bgp_af.py | 12 ++--- .../modules/network/nxos/nxos_bgp_neighbor.py | 12 ++--- .../network/nxos/nxos_bgp_neighbor_af.py | 12 ++--- .../modules/network/nxos/nxos_evpn_global.py | 12 ++--- .../modules/network/nxos/nxos_evpn_vni.py | 12 ++--- .../modules/network/nxos/nxos_feature.py | 12 ++--- .../modules/network/nxos/nxos_file_copy.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_gir.py | 12 ++--- .../nxos/nxos_gir_profile_management.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_hsrp.py | 16 +++---- lib/ansible/modules/network/nxos/nxos_igmp.py | 12 ++--- .../network/nxos/nxos_igmp_interface.py | 12 ++--- .../network/nxos/nxos_igmp_snooping.py | 12 ++--- .../modules/network/nxos/nxos_install_os.py | 12 ++--- .../modules/network/nxos/nxos_interface.py | 12 ++--- .../network/nxos/nxos_interface_ospf.py | 12 ++--- .../modules/network/nxos/nxos_ip_interface.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_mtu.py | 16 +++---- lib/ansible/modules/network/nxos/nxos_ntp.py | 12 ++--- .../modules/network/nxos/nxos_ntp_auth.py | 12 ++--- .../modules/network/nxos/nxos_ntp_options.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_ospf.py | 12 ++--- .../modules/network/nxos/nxos_ospf_vrf.py | 16 +++---- .../network/nxos/nxos_overlay_global.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_pim.py | 12 ++--- .../network/nxos/nxos_pim_interface.py | 20 ++++---- .../network/nxos/nxos_pim_rp_address.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_ping.py | 12 ++--- .../modules/network/nxos/nxos_portchannel.py | 12 ++--- .../modules/network/nxos/nxos_reboot.py | 12 ++--- .../modules/network/nxos/nxos_rollback.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_smu.py | 12 ++--- .../modules/network/nxos/nxos_snapshot.py | 12 ++--- .../network/nxos/nxos_snmp_community.py | 12 ++--- .../modules/network/nxos/nxos_snmp_contact.py | 12 ++--- .../modules/network/nxos/nxos_snmp_host.py | 12 ++--- .../network/nxos/nxos_snmp_location.py | 12 ++--- .../modules/network/nxos/nxos_snmp_traps.py | 12 ++--- .../modules/network/nxos/nxos_snmp_user.py | 12 ++--- .../modules/network/nxos/nxos_static_route.py | 12 ++--- .../modules/network/nxos/nxos_switchport.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_udld.py | 12 ++--- .../network/nxos/nxos_udld_interface.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_vlan.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_vpc.py | 12 ++--- .../network/nxos/nxos_vpc_interface.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_vrf.py | 16 +++---- .../modules/network/nxos/nxos_vrf_af.py | 16 +++---- .../network/nxos/nxos_vrf_interface.py | 12 ++--- lib/ansible/modules/network/nxos/nxos_vrrp.py | 12 ++--- .../modules/network/nxos/nxos_vtp_domain.py | 12 ++--- .../modules/network/nxos/nxos_vtp_password.py | 16 +++---- .../modules/network/nxos/nxos_vtp_version.py | 12 ++--- .../modules/network/nxos/nxos_vxlan_vtep.py | 12 ++--- .../network/nxos/nxos_vxlan_vtep_vni.py | 20 ++++---- test/sanity/pep8/legacy-files.txt | 47 ------------------- 61 files changed, 380 insertions(+), 427 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_aaa_server.py b/lib/ansible/modules/network/nxos/nxos_aaa_server.py index f106ba42c91..51ed607a252 100644 --- a/lib/ansible/modules/network/nxos/nxos_aaa_server.py +++ b/lib/ansible/modules/network/nxos/nxos_aaa_server.py @@ -173,12 +173,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_aaa_server_host.py b/lib/ansible/modules/network/nxos/nxos_aaa_server_host.py index 1faf21ce23d..47a8b3f0040 100644 --- a/lib/ansible/modules/network/nxos/nxos_aaa_server_host.py +++ b/lib/ansible/modules/network/nxos/nxos_aaa_server_host.py @@ -168,12 +168,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_acl.py b/lib/ansible/modules/network/nxos/nxos_acl.py index bdf00b1a315..cf2dc9a7fb6 100644 --- a/lib/ansible/modules/network/nxos/nxos_acl.py +++ b/lib/ansible/modules/network/nxos/nxos_acl.py @@ -259,12 +259,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_acl_interface.py b/lib/ansible/modules/network/nxos/nxos_acl_interface.py index 8dd74922b3c..f5219aa06d1 100644 --- a/lib/ansible/modules/network/nxos/nxos_acl_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_acl_interface.py @@ -117,12 +117,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_bgp.py b/lib/ansible/modules/network/nxos/nxos_bgp.py index e30c80645b0..8c4cc10d2a7 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp.py @@ -372,12 +372,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_af.py b/lib/ansible/modules/network/nxos/nxos_bgp_af.py index 36fa5f37211..08f603f519e 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_af.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_af.py @@ -312,12 +312,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py index cffc80db13d..960e2d966f4 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py @@ -256,12 +256,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): 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 a93796ecc81..ebb886760ad 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py @@ -333,12 +333,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_evpn_global.py b/lib/ansible/modules/network/nxos/nxos_evpn_global.py index 0838061715d..20f6f8784e7 100644 --- a/lib/ansible/modules/network/nxos/nxos_evpn_global.py +++ b/lib/ansible/modules/network/nxos/nxos_evpn_global.py @@ -84,12 +84,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py index b6c8c6160e3..08c73d69114 100644 --- a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py @@ -138,12 +138,12 @@ from ansible.module_utils.network import NetworkModule def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_feature.py b/lib/ansible/modules/network/nxos/nxos_feature.py index 1bbeb11b0ef..3e23d22d08a 100644 --- a/lib/ansible/modules/network/nxos/nxos_feature.py +++ b/lib/ansible/modules/network/nxos/nxos_feature.py @@ -115,12 +115,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_file_copy.py b/lib/ansible/modules/network/nxos/nxos_file_copy.py index e47fc0f2c20..8f241658f0d 100644 --- a/lib/ansible/modules/network/nxos/nxos_file_copy.py +++ b/lib/ansible/modules/network/nxos/nxos_file_copy.py @@ -103,12 +103,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_gir.py b/lib/ansible/modules/network/nxos/nxos_gir.py index 1568a5e29b0..cb22ae12d40 100644 --- a/lib/ansible/modules/network/nxos/nxos_gir.py +++ b/lib/ansible/modules/network/nxos/nxos_gir.py @@ -175,12 +175,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_gir_profile_management.py b/lib/ansible/modules/network/nxos/nxos_gir_profile_management.py index af0444b6755..5d7751141b9 100644 --- a/lib/ansible/modules/network/nxos/nxos_gir_profile_management.py +++ b/lib/ansible/modules/network/nxos/nxos_gir_profile_management.py @@ -131,12 +131,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_hsrp.py b/lib/ansible/modules/network/nxos/nxos_hsrp.py index a183a0c0ee4..c5f766ca7a2 100644 --- a/lib/ansible/modules/network/nxos/nxos_hsrp.py +++ b/lib/ansible/modules/network/nxos/nxos_hsrp.py @@ -155,12 +155,12 @@ from ansible.module_utils.network import NetworkModule def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -574,8 +574,8 @@ def is_default(interface, module): def validate_config(body, vip, module): new_body = ''.join(body) if "invalid ip address" in new_body.lower(): - module.fail_json(msg="Invalid VIP. Possible duplicate IP address.", - vip=vip) + module.fail_json(msg="Invalid VIP. Possible duplicate IP address.", + vip=vip) def validate_params(param, module): diff --git a/lib/ansible/modules/network/nxos/nxos_igmp.py b/lib/ansible/modules/network/nxos/nxos_igmp.py index 70731eaa6a3..7cc36bb3921 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp.py @@ -124,12 +124,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py index 36bba1a6874..1432c4d47f3 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py @@ -250,12 +250,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py b/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py index 75383c37708..f63b75f0ed8 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp_snooping.py @@ -145,12 +145,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_install_os.py b/lib/ansible/modules/network/nxos/nxos_install_os.py index 65497b9e8ec..f0ba09be7c2 100644 --- a/lib/ansible/modules/network/nxos/nxos_install_os.py +++ b/lib/ansible/modules/network/nxos/nxos_install_os.py @@ -129,12 +129,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_interface.py b/lib/ansible/modules/network/nxos/nxos_interface.py index 424d52c4ca1..fafbae89ea9 100644 --- a/lib/ansible/modules/network/nxos/nxos_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_interface.py @@ -174,12 +174,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_interface_ospf.py b/lib/ansible/modules/network/nxos/nxos_interface_ospf.py index 3f37517deb8..0fbcb9e1901 100644 --- a/lib/ansible/modules/network/nxos/nxos_interface_ospf.py +++ b/lib/ansible/modules/network/nxos/nxos_interface_ospf.py @@ -178,12 +178,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_ip_interface.py b/lib/ansible/modules/network/nxos/nxos_ip_interface.py index da7ddebb6d1..e2ae39955ce 100644 --- a/lib/ansible/modules/network/nxos/nxos_ip_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_ip_interface.py @@ -128,12 +128,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_mtu.py b/lib/ansible/modules/network/nxos/nxos_mtu.py index 4486e42c5a3..35b3303c36d 100644 --- a/lib/ansible/modules/network/nxos/nxos_mtu.py +++ b/lib/ansible/modules/network/nxos/nxos_mtu.py @@ -135,12 +135,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -548,8 +548,8 @@ def main(): if sysmtu: if ((int(sysmtu) < 576 or int(sysmtu) > 9216 or ((int(sysmtu) % 2) != 0))): - module.fail_json(msg='Invalid MTU- needs to be an even ' - 'number between 576 and 9216') + module.fail_json(msg='Invalid MTU- needs to be an even ' + 'number between 576 and 9216') args = dict(mtu=mtu, sysmtu=sysmtu) proposed = dict((k, v) for k, v in args.items() if v is not None) diff --git a/lib/ansible/modules/network/nxos/nxos_ntp.py b/lib/ansible/modules/network/nxos/nxos_ntp.py index 441dbb2aad6..721fc473f74 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp.py @@ -141,12 +141,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_ntp_auth.py b/lib/ansible/modules/network/nxos/nxos_ntp_auth.py index 66ed69a374a..4d094c49cd6 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp_auth.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp_auth.py @@ -139,12 +139,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_ntp_options.py b/lib/ansible/modules/network/nxos/nxos_ntp_options.py index 121602347bc..0bf1fb70f72 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp_options.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp_options.py @@ -120,12 +120,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_ospf.py b/lib/ansible/modules/network/nxos/nxos_ospf.py index fbb452ce25b..ead87ee71d6 100644 --- a/lib/ansible/modules/network/nxos/nxos_ospf.py +++ b/lib/ansible/modules/network/nxos/nxos_ospf.py @@ -92,12 +92,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py b/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py index f9728c978d4..81d77e1c137 100644 --- a/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py +++ b/lib/ansible/modules/network/nxos/nxos_ospf_vrf.py @@ -183,12 +183,12 @@ from ansible.module_utils.shell import ShellError def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -394,8 +394,8 @@ def get_existing(module, args): vrf_index = False for index in range(0, len(splitted_config) - 1): if 'vrf' in splitted_config[index].strip(): - vrf_index = index - break + vrf_index = index + break if vrf_index: config = '\n'.join(splitted_config[0:vrf_index]) diff --git a/lib/ansible/modules/network/nxos/nxos_overlay_global.py b/lib/ansible/modules/network/nxos/nxos_overlay_global.py index a0325a2bd53..5d31b049a8f 100644 --- a/lib/ansible/modules/network/nxos/nxos_overlay_global.py +++ b/lib/ansible/modules/network/nxos/nxos_overlay_global.py @@ -123,12 +123,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_pim.py b/lib/ansible/modules/network/nxos/nxos_pim.py index 785df52fe5e..74e679bbaf3 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim.py +++ b/lib/ansible/modules/network/nxos/nxos_pim.py @@ -87,12 +87,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_pim_interface.py b/lib/ansible/modules/network/nxos/nxos_pim_interface.py index 179a449eb34..ba90299a9ef 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_pim_interface.py @@ -204,12 +204,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -737,10 +737,10 @@ def default_pim_interface_policies(existing, jp_bidir): if jp_bidir: if existing.get('jp_policy_in') or existing.get('jp_policy_out'): - if existing.get('jp_type_in') == 'prefix': - command = 'no ip pim jp-policy prefix-list {0}'.format( - existing.get('jp_policy_in') - ) + if existing.get('jp_type_in') == 'prefix': + command = 'no ip pim jp-policy prefix-list {0}'.format( + existing.get('jp_policy_in') + ) if command: commands.append(command) 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 58150fb4af5..f32bee8dfb2 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim_rp_address.py +++ b/lib/ansible/modules/network/nxos/nxos_pim_rp_address.py @@ -117,12 +117,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_ping.py b/lib/ansible/modules/network/nxos/nxos_ping.py index 551c409b718..3a9b628f943 100644 --- a/lib/ansible/modules/network/nxos/nxos_ping.py +++ b/lib/ansible/modules/network/nxos/nxos_ping.py @@ -133,12 +133,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_portchannel.py b/lib/ansible/modules/network/nxos/nxos_portchannel.py index ee759a25a0d..3be15094594 100644 --- a/lib/ansible/modules/network/nxos/nxos_portchannel.py +++ b/lib/ansible/modules/network/nxos/nxos_portchannel.py @@ -142,12 +142,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_reboot.py b/lib/ansible/modules/network/nxos/nxos_reboot.py index 3a83ff4b64b..f113873fd04 100644 --- a/lib/ansible/modules/network/nxos/nxos_reboot.py +++ b/lib/ansible/modules/network/nxos/nxos_reboot.py @@ -75,12 +75,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_rollback.py b/lib/ansible/modules/network/nxos/nxos_rollback.py index d525f7780fe..a429e1992f9 100644 --- a/lib/ansible/modules/network/nxos/nxos_rollback.py +++ b/lib/ansible/modules/network/nxos/nxos_rollback.py @@ -91,12 +91,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_smu.py b/lib/ansible/modules/network/nxos/nxos_smu.py index 87b902748a0..76c72f2b0cc 100644 --- a/lib/ansible/modules/network/nxos/nxos_smu.py +++ b/lib/ansible/modules/network/nxos/nxos_smu.py @@ -98,12 +98,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snapshot.py b/lib/ansible/modules/network/nxos/nxos_snapshot.py index 0bc4d8ee49d..61dd094b517 100644 --- a/lib/ansible/modules/network/nxos/nxos_snapshot.py +++ b/lib/ansible/modules/network/nxos/nxos_snapshot.py @@ -224,12 +224,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_community.py b/lib/ansible/modules/network/nxos/nxos_snmp_community.py index c1c45662f5e..aac8c02ef6e 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_community.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_community.py @@ -114,12 +114,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_contact.py b/lib/ansible/modules/network/nxos/nxos_snmp_contact.py index f5618f3e932..02601c6de64 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_contact.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_contact.py @@ -99,12 +99,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_host.py b/lib/ansible/modules/network/nxos/nxos_snmp_host.py index 740bb69f7f3..8643b4da7c7 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_host.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_host.py @@ -147,12 +147,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_location.py b/lib/ansible/modules/network/nxos/nxos_snmp_location.py index dc7adb174f0..7f6e46e0330 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_location.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_location.py @@ -106,12 +106,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_traps.py b/lib/ansible/modules/network/nxos/nxos_snmp_traps.py index f494efbcf3e..d9e8ec5b213 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_traps.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_traps.py @@ -117,12 +117,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_user.py b/lib/ansible/modules/network/nxos/nxos_snmp_user.py index aa7b100b152..5520a7d8dc9 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_user.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_user.py @@ -128,12 +128,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_static_route.py b/lib/ansible/modules/network/nxos/nxos_static_route.py index 903e90b3c7a..ed0bcdd25a3 100644 --- a/lib/ansible/modules/network/nxos/nxos_static_route.py +++ b/lib/ansible/modules/network/nxos/nxos_static_route.py @@ -122,12 +122,12 @@ from ansible.module_utils.network import NetworkModule def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_switchport.py b/lib/ansible/modules/network/nxos/nxos_switchport.py index 594775fab83..d02f7e76602 100644 --- a/lib/ansible/modules/network/nxos/nxos_switchport.py +++ b/lib/ansible/modules/network/nxos/nxos_switchport.py @@ -170,12 +170,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_udld.py b/lib/ansible/modules/network/nxos/nxos_udld.py index e1d1cba02dc..06d6d4176b1 100644 --- a/lib/ansible/modules/network/nxos/nxos_udld.py +++ b/lib/ansible/modules/network/nxos/nxos_udld.py @@ -124,12 +124,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_udld_interface.py b/lib/ansible/modules/network/nxos/nxos_udld_interface.py index ecf90e9ae65..37230e3e2cc 100644 --- a/lib/ansible/modules/network/nxos/nxos_udld_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_udld_interface.py @@ -123,12 +123,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vlan.py b/lib/ansible/modules/network/nxos/nxos_vlan.py index 69579e7023e..6e350b89fb7 100644 --- a/lib/ansible/modules/network/nxos/nxos_vlan.py +++ b/lib/ansible/modules/network/nxos/nxos_vlan.py @@ -171,12 +171,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vpc.py b/lib/ansible/modules/network/nxos/nxos_vpc.py index 18f1fc254a8..87bde5ad67d 100644 --- a/lib/ansible/modules/network/nxos/nxos_vpc.py +++ b/lib/ansible/modules/network/nxos/nxos_vpc.py @@ -162,12 +162,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vpc_interface.py b/lib/ansible/modules/network/nxos/nxos_vpc_interface.py index a5e31ae60b9..2ac23411a2e 100644 --- a/lib/ansible/modules/network/nxos/nxos_vpc_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_vpc_interface.py @@ -114,12 +114,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vrf.py b/lib/ansible/modules/network/nxos/nxos_vrf.py index 574a51d4b5e..899c4722ef5 100644 --- a/lib/ansible/modules/network/nxos/nxos_vrf.py +++ b/lib/ansible/modules/network/nxos/nxos_vrf.py @@ -131,12 +131,12 @@ from ansible.module_utils.network import NetworkModule def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -502,8 +502,8 @@ def main(): command = get_commands_to_config_vrf(delta, vrf) commands.extend(command) elif delta: - command = get_commands_to_config_vrf(delta, vrf) - commands.extend(command) + command = get_commands_to_config_vrf(delta, vrf) + commands.extend(command) if commands: if proposed.get('vni'): diff --git a/lib/ansible/modules/network/nxos/nxos_vrf_af.py b/lib/ansible/modules/network/nxos/nxos_vrf_af.py index 086eef1bfc1..28d4e29c11e 100644 --- a/lib/ansible/modules/network/nxos/nxos_vrf_af.py +++ b/lib/ansible/modules/network/nxos/nxos_vrf_af.py @@ -118,12 +118,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -301,8 +301,8 @@ def get_existing(module, args): vrf_index = False for index in range(0, len(splitted_config) - 1): if 'vrf' in splitted_config[index].strip(): - vrf_index = index - break + vrf_index = index + break if vrf_index: config = '\n'.join(splitted_config[0:vrf_index]) diff --git a/lib/ansible/modules/network/nxos/nxos_vrf_interface.py b/lib/ansible/modules/network/nxos/nxos_vrf_interface.py index 95e509393a0..1a9f96c753e 100644 --- a/lib/ansible/modules/network/nxos/nxos_vrf_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_vrf_interface.py @@ -115,12 +115,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vrrp.py b/lib/ansible/modules/network/nxos/nxos_vrrp.py index 5fa1c99b25e..86f6a223755 100644 --- a/lib/ansible/modules/network/nxos/nxos_vrrp.py +++ b/lib/ansible/modules/network/nxos/nxos_vrrp.py @@ -153,12 +153,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vtp_domain.py b/lib/ansible/modules/network/nxos/nxos_vtp_domain.py index f364b266bc7..abd126858f4 100644 --- a/lib/ansible/modules/network/nxos/nxos_vtp_domain.py +++ b/lib/ansible/modules/network/nxos/nxos_vtp_domain.py @@ -100,12 +100,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vtp_password.py b/lib/ansible/modules/network/nxos/nxos_vtp_password.py index c7ae9e314ac..c1cfe1337e5 100644 --- a/lib/ansible/modules/network/nxos/nxos_vtp_password.py +++ b/lib/ansible/modules/network/nxos/nxos_vtp_password.py @@ -117,12 +117,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -440,8 +440,8 @@ def main(): "state=present.") else: if not existing.get('domain'): - module.fail_json(msg='Cannot remove a vtp password ' - 'before vtp domain is set.') + module.fail_json(msg='Cannot remove a vtp password ' + 'before vtp domain is set.') elif existing['vtp_password'] != ('\\'): commands.append(['no vtp password']) diff --git a/lib/ansible/modules/network/nxos/nxos_vtp_version.py b/lib/ansible/modules/network/nxos/nxos_vtp_version.py index 2cc1f5f923c..0754c3bb261 100644 --- a/lib/ansible/modules/network/nxos/nxos_vtp_version.py +++ b/lib/ansible/modules/network/nxos/nxos_vtp_version.py @@ -95,12 +95,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): diff --git a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py index 96d3513ac0f..08ac7692c75 100644 --- a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py +++ b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py @@ -138,12 +138,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): 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 cfdf7ea364e..4abfd33f8c4 100644 --- a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py @@ -157,12 +157,12 @@ except ImportError: def to_list(val): - if isinstance(val, (list, tuple)): - return list(val) - elif val is not None: - return [val] - else: - return list() + if isinstance(val, (list, tuple)): + return list(val) + elif val is not None: + return [val] + else: + return list() class CustomNetworkConfig(NetworkConfig): @@ -555,10 +555,10 @@ def main(): 'the switch.') elif (existing and state == 'absent' and existing['vni'] != module.params['vni']): - module.fail_json(msg="ERROR: VNI delete failed: Could not find" - " vni node for {0}".format( - module.params['vni']), - existing_vni=existing['vni']) + module.fail_json(msg="ERROR: VNI delete failed: Could not find" + " vni node for {0}".format( + module.params['vni']), + existing_vni=existing['vni']) else: candidate = CustomNetworkConfig(indent=3) invoke('state_%s' % state, module, existing, proposed, candidate) diff --git a/test/sanity/pep8/legacy-files.txt b/test/sanity/pep8/legacy-files.txt index 0e8fb90f8dd..5659a1f5b35 100644 --- a/test/sanity/pep8/legacy-files.txt +++ b/test/sanity/pep8/legacy-files.txt @@ -173,66 +173,19 @@ lib/ansible/modules/network/f5/bigip_pool_member.py lib/ansible/modules/network/f5/bigip_virtual_server.py lib/ansible/modules/network/haproxy.py lib/ansible/modules/network/nmcli.py -lib/ansible/modules/network/nxos/nxos_aaa_server.py -lib/ansible/modules/network/nxos/nxos_aaa_server_host.py -lib/ansible/modules/network/nxos/nxos_acl.py -lib/ansible/modules/network/nxos/nxos_acl_interface.py lib/ansible/modules/network/nxos/nxos_bgp.py lib/ansible/modules/network/nxos/nxos_bgp_af.py lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py lib/ansible/modules/network/nxos/nxos_bgp_neighbor_af.py -lib/ansible/modules/network/nxos/nxos_evpn_global.py lib/ansible/modules/network/nxos/nxos_evpn_vni.py lib/ansible/modules/network/nxos/nxos_feature.py -lib/ansible/modules/network/nxos/nxos_file_copy.py lib/ansible/modules/network/nxos/nxos_gir.py -lib/ansible/modules/network/nxos/nxos_gir_profile_management.py -lib/ansible/modules/network/nxos/nxos_hsrp.py -lib/ansible/modules/network/nxos/nxos_igmp.py -lib/ansible/modules/network/nxos/nxos_igmp_interface.py -lib/ansible/modules/network/nxos/nxos_igmp_snooping.py lib/ansible/modules/network/nxos/nxos_install_os.py -lib/ansible/modules/network/nxos/nxos_interface.py lib/ansible/modules/network/nxos/nxos_interface_ospf.py -lib/ansible/modules/network/nxos/nxos_ip_interface.py -lib/ansible/modules/network/nxos/nxos_mtu.py -lib/ansible/modules/network/nxos/nxos_ntp.py -lib/ansible/modules/network/nxos/nxos_ntp_auth.py -lib/ansible/modules/network/nxos/nxos_ntp_options.py -lib/ansible/modules/network/nxos/nxos_ospf.py -lib/ansible/modules/network/nxos/nxos_ospf_vrf.py -lib/ansible/modules/network/nxos/nxos_overlay_global.py -lib/ansible/modules/network/nxos/nxos_pim.py lib/ansible/modules/network/nxos/nxos_pim_interface.py -lib/ansible/modules/network/nxos/nxos_pim_rp_address.py -lib/ansible/modules/network/nxos/nxos_ping.py -lib/ansible/modules/network/nxos/nxos_portchannel.py -lib/ansible/modules/network/nxos/nxos_reboot.py -lib/ansible/modules/network/nxos/nxos_rollback.py -lib/ansible/modules/network/nxos/nxos_smu.py lib/ansible/modules/network/nxos/nxos_snapshot.py -lib/ansible/modules/network/nxos/nxos_snmp_community.py -lib/ansible/modules/network/nxos/nxos_snmp_contact.py -lib/ansible/modules/network/nxos/nxos_snmp_host.py -lib/ansible/modules/network/nxos/nxos_snmp_location.py -lib/ansible/modules/network/nxos/nxos_snmp_traps.py -lib/ansible/modules/network/nxos/nxos_snmp_user.py -lib/ansible/modules/network/nxos/nxos_static_route.py -lib/ansible/modules/network/nxos/nxos_switchport.py -lib/ansible/modules/network/nxos/nxos_udld.py -lib/ansible/modules/network/nxos/nxos_udld_interface.py lib/ansible/modules/network/nxos/nxos_vlan.py lib/ansible/modules/network/nxos/nxos_vpc.py -lib/ansible/modules/network/nxos/nxos_vpc_interface.py -lib/ansible/modules/network/nxos/nxos_vrf.py -lib/ansible/modules/network/nxos/nxos_vrf_af.py -lib/ansible/modules/network/nxos/nxos_vrf_interface.py -lib/ansible/modules/network/nxos/nxos_vrrp.py -lib/ansible/modules/network/nxos/nxos_vtp_domain.py -lib/ansible/modules/network/nxos/nxos_vtp_password.py -lib/ansible/modules/network/nxos/nxos_vtp_version.py -lib/ansible/modules/network/nxos/nxos_vxlan_vtep.py -lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py lib/ansible/modules/network/panos/panos_nat_policy.py lib/ansible/modules/network/snmp_facts.py lib/ansible/modules/notification/hall.py