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 f106ba42c9..51ed607a25 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 1faf21ce23..47a8b3f004 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 bdf00b1a31..cf2dc9a7fb 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 8dd74922b3..f5219aa06d 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 e30c80645b..8c4cc10d2a 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 36fa5f3721..08f603f519 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 cffc80db13..960e2d966f 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 a93796ecc8..ebb886760a 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 0838061715..20f6f8784e 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 b6c8c6160e..08c73d6911 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 1bbeb11b0e..3e23d22d08 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 e47fc0f2c2..8f241658f0 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 1568a5e29b..cb22ae12d4 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 af0444b675..5d7751141b 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 a183a0c0ee..c5f766ca7a 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 70731eaa6a..7cc36bb392 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 36bba1a687..1432c4d47f 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 75383c3770..f63b75f0ed 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 65497b9e8e..f0ba09be7c 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 424d52c4ca..fafbae89ea 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 3f37517deb..0fbcb9e190 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 da7ddebb6d..e2ae39955c 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 4486e42c5a..35b3303c36 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 441dbb2aad..721fc473f7 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 66ed69a374..4d094c49cd 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 121602347b..0bf1fb70f7 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 fbb452ce25..ead87ee71d 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 f9728c978d..81d77e1c13 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 a0325a2bd5..5d31b049a8 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 785df52fe5..74e679bbaf 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 179a449eb3..ba90299a9e 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 58150fb4af..f32bee8dfb 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 551c409b71..3a9b628f94 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 ee759a25a0..3be1509459 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 3a83ff4b64..f113873fd0 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 d525f7780f..a429e1992f 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 87b902748a..76c72f2b0c 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 0bc4d8ee49..61dd094b51 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 c1c45662f5..aac8c02ef6 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 f5618f3e93..02601c6de6 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 740bb69f7f..8643b4da7c 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 dc7adb174f..7f6e46e033 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 f494efbcf3..d9e8ec5b21 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 aa7b100b15..5520a7d8dc 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 903e90b3c7..ed0bcdd25a 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 594775fab8..d02f7e7660 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 e1d1cba02d..06d6d4176b 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 ecf90e9ae6..37230e3e2c 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 69579e7023..6e350b89fb 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 18f1fc254a..87bde5ad67 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 a5e31ae60b..2ac23411a2 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 574a51d4b5..899c4722ef 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 086eef1bfc..28d4e29c11 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 95e509393a..1a9f96c753 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 5fa1c99b25..86f6a22375 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 f364b266bc..abd126858f 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 c7ae9e314a..c1cfe1337e 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 2cc1f5f923..0754c3bb26 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 96d3513ac0..08ac7692c7 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 cfdf7ea364..4abfd33f8c 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 0e8fb90f8d..5659a1f5b3 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