summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/nxos/tests/integration
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/cisco/nxos/tests/integration
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/nxos/tests/integration')
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/defaults/main.yaml5
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/meta/main.yml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/cli.yaml32
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/main.yaml10
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/dis_policy.yaml85
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/hels.yaml101
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/isolate.yaml81
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/param.yaml258
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/sanity.yaml138
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/supp_fib.yaml120
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/defaults/main.yaml5
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/meta/main.yml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/cli.yaml32
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/main.yaml10
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/nxapi.yaml32
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/multisite.yaml132
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/sanity.yaml342
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/defaults/main.yaml5
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/meta/main.yml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/main.yaml10
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/nxapi.yaml32
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/multisite.yaml123
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml357
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/defaults/main.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/meta/main.yml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/cli.yaml32
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/main.yaml10
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/nxapi.yaml32
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/multisite.yaml117
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml295
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/defaults/main.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/meta/main.yml1
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/cli.yaml (renamed from ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/cli.yaml)4
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/main.yaml26
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/nxapi.yaml (renamed from ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/nxapi.yaml)4
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_populate_config.yaml25
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_remove_config.yaml8
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/deleted.yaml44
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/empty_config.yaml61
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/fixtures/parsed.cfg20
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/gathered.yaml20
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/merged.yaml72
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/overridden.yaml61
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/parsed.yaml14
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/rendered.yaml59
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/replaced.yaml61
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/vars/main.yml142
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tests/cli/sanity.yaml9
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli_config.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/redirection.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/templates/basic/acl_config.j25
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tests/cli/replace_block.yaml35
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_devicealias/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tests/common/all_facts.yaml7
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/vars/main.yml30
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/httpapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/network_cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tests/common/overridden.yaml104
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/merged.yaml4
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/overridden.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tests/common/overridden.yml92
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/nxapi.yaml8
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/cli.yaml6
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/main.yaml6
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/main.yaml15
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/deleted.yml31
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/merged.yml6
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/overridden.yml6
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/parsed.yml12
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rendered.yml5
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/replaced.yml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rtt.yml6
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/vars/main.yml46
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/nxapi.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/cli.yaml2
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vsan/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/cli.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/nxapi.yaml3
-rw-r--r--ansible_collections/cisco/nxos/tests/integration/targets/nxos_zone_zoneset/tasks/cli.yaml3
230 files changed, 1113 insertions, 2792 deletions
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_aaa_server_host/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/cli.yaml
index f41fb7360..3e5e72a07 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/nxapi.yaml
index 86c82adda..59a0777c5 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acl_interfaces/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/cli.yaml
index c34726ef5..3e5e72a07 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/cli.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/nxapi.yaml
index e0ebc3f54..59a0777c5 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_acls/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_banner/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_global/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/cli.yaml
index 9aa0d8690..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/cli.yaml
@@ -23,11 +23,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bfd_interfaces/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/defaults/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/defaults/main.yaml
deleted file mode 100644
index 525b7aab9..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/defaults/main.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-testcase: "*"
-vrfs:
- - default
- - myvrf
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/meta/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/meta/main.yml
deleted file mode 100644
index f504a6ab2..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/meta/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-dependencies:
- - prepare_nxos_tests
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/cli.yaml
deleted file mode 100644
index f6096901f..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/cli.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: Collect common test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: Collect CLI test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/cli"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: cli_cases
-
-- name: Set a fact for 'test_cases'
- ansible.builtin.set_fact:
- test_cases:
- files: "{{ test_cases.files + cli_cases.files }}"
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test cases (connection=ansible.netcommon.network_cli)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- vars:
- ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/main.yaml
deleted file mode 100644
index a1da90e57..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/main.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-- name: Include the CLI tasks
- ansible.builtin.include_tasks: cli.yaml
- tags:
- - cli
-
-- name: Include the NX-API tasks
- ansible.builtin.include_tasks: nxapi.yaml
- tags:
- - nxapi
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/dis_policy.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/dis_policy.yaml
deleted file mode 100644
index 0f4bd883e..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/dis_policy.yaml
+++ /dev/null
@@ -1,85 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp parameter test
-
-- ansible.builtin.debug:
- msg: This bgp_disable_policy is not supported on {{ image_version }}
- when: imagetag is search("A8|D1")
-
-- name: Set a fact for 'bgp_disable_policy'
- ansible.builtin.set_fact:
- bgp_disable_policy: false
-
-- name: Set a fact for 'bgp_disable_policy'
- ansible.builtin.set_fact:
- bgp_disable_policy: true
- when: imagetag is not search("A8|D1")
-
-- name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- block:
- - name: Set disable policy
- register: result
- when: bgp_disable_policy
- cisco.nxos.nxos_bgp: &id001
- asn: 65535
- disable_policy_batching: true
- disable_policy_batching_ipv4_prefix_list: v4_p
- disable_policy_batching_ipv6_prefix_list: v6_p
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
- when: bgp_disable_policy
-
- - name: Check idempotence
- register: result
- when: bgp_disable_policy
- cisco.nxos.nxos_bgp: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
- when: bgp_disable_policy
-
- - name: Reset disable policy
- register: result
- when: bgp_disable_policy
- cisco.nxos.nxos_bgp: &id003
- asn: 65535
- disable_policy_batching: false
- disable_policy_batching_ipv4_prefix_list: default
- disable_policy_batching_ipv6_prefix_list: default
-
- - ansible.builtin.assert: *id002
- when: bgp_disable_policy
-
- - name: Check idempotence
- register: result
- when: bgp_disable_policy
- cisco.nxos.nxos_bgp: *id003
-
- - ansible.builtin.assert: *id004
- when: bgp_disable_policy
- rescue:
- - ansible.builtin.debug:
- msg: Tests can fail on A8 or helsinki images
- always:
- - name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp parameter test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/hels.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/hels.yaml
deleted file mode 100644
index 65b7c7251..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/hels.yaml
+++ /dev/null
@@ -1,101 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp parameter test
-
-- ansible.builtin.debug:
- msg: This test is not supported on {{ image_version }}
- when: imagetag is search("D1")
-
-- name: Set a fact for 'test_helsinki'
- ansible.builtin.set_fact:
- test_helsinki: false
-
-- name: Set a fact for 'test_helsinki'
- ansible.builtin.set_fact:
- test_helsinki: true
- when: imagetag is not search("D1")
-
-- name: Disable 'feature bgp'
- ignore_errors: true
- when: test_helsinki
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- when: test_helsinki
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- block:
- - name: Set helsinki
- with_items: "{{ vrfs }}"
- register: result
- when: test_helsinki
- cisco.nxos.nxos_bgp: &id001
- asn: 65535
- vrf: "{{ item }}"
- graceful_restart_timers_restart: 130
- graceful_restart_timers_stalepath_time: 310
- neighbor_down_fib_accelerate: true
- reconnect_interval: 55
- timer_bgp_hold: 110
- timer_bgp_keepalive: 45
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
- when: test_helsinki
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- when: test_helsinki
- cisco.nxos.nxos_bgp: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
- when: test_helsinki
-
- - name: Reset helsinki
- with_items: "{{ vrfs }}"
- register: result
- when: test_helsinki
- cisco.nxos.nxos_bgp: &id003
- asn: 65535
- vrf: "{{ item }}"
- graceful_restart: true
- graceful_restart_timers_restart: default
- graceful_restart_timers_stalepath_time: default
- neighbor_down_fib_accelerate: false
- reconnect_interval: default
- timer_bgp_hold: default
- timer_bgp_keepalive: default
-
- - ansible.builtin.assert: *id002
- when: test_helsinki
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- when: test_helsinki
- cisco.nxos.nxos_bgp: *id003
-
- - ansible.builtin.assert: *id004
- when: test_helsinki
- rescue:
- - ansible.builtin.debug:
- msg: Tests can fail on helsinki images
- always:
- - name: Disable 'feature bgp'
- ignore_errors: true
- when: test_helsinki
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp parameter test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/isolate.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/isolate.yaml
deleted file mode 100644
index de4bafb11..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/isolate.yaml
+++ /dev/null
@@ -1,81 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp parameter test
-
-- ansible.builtin.debug:
- msg: This bgp_isolate is not supported on {{ image_version }}
- when: imagetag is search("A8")
-
-- name: Set a fact for 'bgp_isolate'
- ansible.builtin.set_fact:
- bgp_isolate: false
-
-- name: Set a fact for 'bgp_isolate'
- ansible.builtin.set_fact:
- bgp_isolate: true
- when: imagetag is not search("A8")
-
-- name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- block:
- - name: Set isolate
- register: result
- when: bgp_isolate
- cisco.nxos.nxos_bgp: &id001
- asn: 65535
- isolate: false
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
- when: bgp_isolate
-
- - name: Check idempotence
- register: result
- when: bgp_isolate
- cisco.nxos.nxos_bgp: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
- when: bgp_isolate
-
- - name: Reset isolate
- register: result
- when: bgp_isolate
- cisco.nxos.nxos_bgp: &id003
- asn: 65535
- isolate: true
-
- - ansible.builtin.assert: *id002
- when: bgp_isolate
-
- - name: Check idempotence
- register: result
- when: bgp_isolate
- cisco.nxos.nxos_bgp: *id003
-
- - ansible.builtin.assert: *id004
- when: bgp_isolate
- rescue:
- - ansible.builtin.debug:
- msg: Tests can fail on A8 images
- always:
- - name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp parameter test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/param.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/param.yaml
deleted file mode 100644
index a4d7c2ffa..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/param.yaml
+++ /dev/null
@@ -1,258 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp parameter test
-
-- name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- block:
- - name: Set multi VRF params
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: &id001
- asn: 65535
- vrf: "{{ item }}"
- router_id: 192.0.2.1
- bestpath_always_compare_med: true
- bestpath_aspath_multipath_relax: true
- bestpath_compare_routerid: true
- bestpath_cost_community_ignore: true
- bestpath_med_confed: true
- bestpath_med_missing_as_worst: true
- bestpath_med_non_deterministic: true
- graceful_restart_helper: true
- log_neighbor_changes: true
- maxas_limit: 50
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Reset multi VRF params
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: &id003
- asn: 65535
- vrf: "{{ item }}"
- bestpath_always_compare_med: false
- bestpath_aspath_multipath_relax: false
- bestpath_compare_routerid: false
- bestpath_cost_community_ignore: false
- bestpath_med_confed: false
- bestpath_med_missing_as_worst: false
- bestpath_med_non_deterministic: false
- graceful_restart_helper: false
- log_neighbor_changes: false
- maxas_limit: default
- router_id: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: Set clusterid
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: &id005
- asn: 65535
- vrf: "{{ item }}"
- cluster_id: 10.0.0.1
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Reset cluster_id
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: &id006
- asn: 65535
- vrf: "{{ item }}"
- cluster_id: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: *id006
-
- - ansible.builtin.assert: *id004
-
- - name: Set confederation
- register: result
- cisco.nxos.nxos_bgp: &id007
- asn: 65535
- confederation_id: 99
- confederation_peers:
- - 16
- - 22
- - 18
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id007
-
- - ansible.builtin.assert: *id004
-
- - name: Reset confederation
- register: result
- cisco.nxos.nxos_bgp: &id008
- asn: 65535
- confederation_id: default
- confederation_peers: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id008
-
- - ansible.builtin.assert: *id004
-
- - name: Set confederation_local_as
- register: result
- cisco.nxos.nxos_bgp: &id009
- asn: 65535
- vrf: myvrf
- local_as: 33
- confederation_id: 99
- confederation_peers:
- - 16
- - 22
- - 18
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id009
-
- - ansible.builtin.assert: *id004
-
- - name: Reset confederation local_as
- register: result
- cisco.nxos.nxos_bgp: &id010
- asn: 65535
- vrf: myvrf
- local_as: default
- confederation_id: default
- confederation_peers: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id010
-
- - ansible.builtin.assert: *id004
-
- - name: Set local_as
- register: result
- cisco.nxos.nxos_bgp: &id011
- asn: 65535
- vrf: myvrf
- local_as: 33
- confederation_id: 99
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id011
-
- - ansible.builtin.assert: *id004
-
- - name: Reset local_as
- register: result
- cisco.nxos.nxos_bgp: &id012
- asn: 65535
- vrf: myvrf
- confederation_id: default
- local_as: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id012
-
- - ansible.builtin.assert: *id004
-
- - name: Set default VRF params
- register: result
- cisco.nxos.nxos_bgp: &id013
- asn: 65535
- event_history_cli: size_medium
- event_history_detail: size_large
- event_history_events: size_medium
- event_history_periodic: size_small
- enforce_first_as: false
- fast_external_fallover: false
- flush_routes: true
- shutdown: true
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id013
-
- - ansible.builtin.assert: *id004
-
- - name: Reset default VRF params
- register: result
- cisco.nxos.nxos_bgp: &id014
- asn: 65535
- event_history_detail: default
- enforce_first_as: true
- fast_external_fallover: true
- flush_routes: false
- shutdown: false
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id014
-
- - ansible.builtin.assert: *id004
- always:
- - name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp parameter test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/sanity.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/sanity.yaml
deleted file mode 100644
index dc2b018cc..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/sanity.yaml
+++ /dev/null
@@ -1,138 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp sanity test
-
-- name: Set a fact for 'neighbor_down_fib_accelerate'
- ansible.builtin.set_fact:
- neighbor_down_fib_accelerate: true
- when: (not titanium) and ((imagetag != 'N1') and (imagetag != 'D1'))
-
-- name: Set a fact for 'reconnect_interval'
- ansible.builtin.set_fact:
- reconnect_interval: "55"
- when: (not titanium) and ((imagetag != 'N1') and (imagetag != 'D1'))
-
-- name: Set a fact for 'isolate'
- ansible.builtin.set_fact:
- isolate: false
- when: platform is not match("N35")
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- name: Setup
- ignore_errors: true
- register: result
- cisco.nxos.nxos_bgp: &id002
- asn: 65535
- state: absent
-
-- block:
- - name: Configure BGP defaults
- register: result
- cisco.nxos.nxos_bgp: &id001
- asn: 65535
- router_id: 192.0.2.1
- state: present
-
- - ansible.builtin.assert: &id003
- that:
- - result.changed == true
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Remove BGP
- register: result
- cisco.nxos.nxos_bgp: *id002
-
- - ansible.builtin.assert: *id003
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id002
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP non defaults
- register: result
- cisco.nxos.nxos_bgp: &id005
- asn: 65535
- router_id: 192.0.2.1
- bestpath_always_compare_med: true
- bestpath_aspath_multipath_relax: true
- bestpath_compare_routerid: true
- bestpath_cost_community_ignore: true
- bestpath_med_confed: true
- bestpath_med_missing_as_worst: true
- bestpath_med_non_deterministic: true
- cluster_id: 10.0.0.1
- confederation_id: 99
- disable_policy_batching: true
- enforce_first_as: false
- fast_external_fallover: false
- flush_routes: true
- graceful_restart_helper: true
- graceful_restart_timers_restart: 130
- graceful_restart_timers_stalepath_time: 310
- isolate: "{{isolate|default(omit)}}"
- log_neighbor_changes: true
- maxas_limit: 50
- neighbor_down_fib_accelerate: "{{neighbor_down_fib_accelerate|default(omit)}}"
- reconnect_interval: "{{reconnect_interval|default(omit)}}"
- shutdown: true
- timer_bestpath_limit: 255
- timer_bgp_hold: 110
- timer_bgp_keepalive: 45
- event_history_cli: size_medium
- event_history_detail: size_large
- event_history_events: size_medium
- event_history_periodic: size_small
- suppress_fib_pending: true
- state: present
-
- - ansible.builtin.assert: *id003
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- register: result
- cisco.nxos.nxos_bgp: *id002
-
- - ansible.builtin.assert: *id003
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp: *id002
-
- - ansible.builtin.assert: *id004
-
- - name: Disable 'feature bgp'
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
- rescue:
- - name: Cleanup BGP
- ignore_errors: true
- cisco.nxos.nxos_bgp: *id002
-
- - name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
- always:
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/supp_fib.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/supp_fib.yaml
deleted file mode 100644
index ead5a515e..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tests/common/supp_fib.yaml
+++ /dev/null
@@ -1,120 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp parameter test
-
-- name: Set a fact for 'bgp_best_path_limit'
- ansible.builtin.set_fact:
- bgp_best_path_limit: false
-
-- name: Set a fact for 'bgp_best_path_limit'
- ansible.builtin.set_fact:
- bgp_best_path_limit: true
- when: imagetag is not search("I2")
-
-- name: Set a fact for 'bgp_suppress_fib_supported'
- ansible.builtin.set_fact:
- bgp_suppress_fib_supported: false
-
-- name: Set a fact for 'bgp_suppress_fib_supported'
- ansible.builtin.set_fact:
- bgp_suppress_fib_supported: true
- when: imagetag is not search("A8|D1|I2|I4")
-
-- name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- block:
- - name: Set bestpath limit
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: &id001
- asn: 65535
- vrf: "{{ item }}"
- timer_bestpath_limit: 255
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Reset bestpath limit
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp: &id003
- asn: 65535
- vrf: "{{ item }}"
- timer_bestpath_limit: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- when: bgp_best_path_limit
- cisco.nxos.nxos_bgp: *id003
-
- - ansible.builtin.assert: *id004
- when: bgp_best_path_limit
-
- - name: Set suppress FIB
- register: result
- cisco.nxos.nxos_bgp: &id005
- asn: 65535
- suppress_fib_pending: false
-
- - ansible.builtin.assert: *id002
- when: bgp_suppress_fib_supported
-
- - name: Check idempotence
- register: result
- when: bgp_suppress_fib_supported
- cisco.nxos.nxos_bgp: *id005
-
- - ansible.builtin.assert: *id004
- when: bgp_suppress_fib_supported
-
- - name: Reset suppress FIB
- register: result
- cisco.nxos.nxos_bgp: &id006
- asn: 65535
- suppress_fib_pending: true
-
- - ansible.builtin.assert: *id002
- when: bgp_suppress_fib_supported
-
- - name: Check idempotence
- register: result
- when: bgp_suppress_fib_supported
- cisco.nxos.nxos_bgp: *id006
-
- - ansible.builtin.assert: *id004
- when: bgp_suppress_fib_supported
- rescue:
- - ansible.builtin.debug:
- msg: Tests can fail on I2/I4/A8/Fretta or helsinki images
- always:
- - name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp parameter test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_address_family/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/defaults/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/defaults/main.yaml
deleted file mode 100644
index 525b7aab9..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/defaults/main.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-testcase: "*"
-vrfs:
- - default
- - myvrf
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/meta/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/meta/main.yml
deleted file mode 100644
index f504a6ab2..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/meta/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-dependencies:
- - prepare_nxos_tests
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/cli.yaml
deleted file mode 100644
index f6096901f..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/cli.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: Collect common test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: Collect CLI test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/cli"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: cli_cases
-
-- name: Set a fact for 'test_cases'
- ansible.builtin.set_fact:
- test_cases:
- files: "{{ test_cases.files + cli_cases.files }}"
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test cases (connection=ansible.netcommon.network_cli)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- vars:
- ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/main.yaml
deleted file mode 100644
index a1da90e57..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/main.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-- name: Include the CLI tasks
- ansible.builtin.include_tasks: cli.yaml
- tags:
- - cli
-
-- name: Include the NX-API tasks
- ansible.builtin.include_tasks: nxapi.yaml
- tags:
- - nxapi
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/nxapi.yaml
deleted file mode 100644
index b4ed55204..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tasks/nxapi.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: Collect common test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: Collect NX-API test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/nxapi"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: nxapi_cases
-
-- name: Set a fact for 'test_cases'
- ansible.builtin.set_fact:
- test_cases:
- files: "{{ test_cases.files + nxapi_cases.files }}"
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test cases (connection=ansible.netcommon.httpapi)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- vars:
- ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/multisite.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/multisite.yaml
deleted file mode 100644
index 93eb7654c..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/multisite.yaml
+++ /dev/null
@@ -1,132 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp_af multisite sanity test
-
-- name: Enable 'feature bgp' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- name: Enable 'feature nv overlay' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: nv overlay
- state: enabled
-
-- name: Setup - multisite
- ignore_errors: true
- cisco.nxos.nxos_bgp:
- asn: 65535
- state: absent
-
-- name: Enable NV overlay EVPN - multisite
- when: platform is search('N9K')
- ignore_errors: true
- cisco.nxos.nxos_config:
- lines:
- - nv overlay evpn
-
-- name: Enable multisite border gateway - multisite
- ignore_errors: true
- register: multiout
- cisco.nxos.nxos_config:
- lines:
- - evpn multisite border-gateway 10
-
-- block:
- - name: Configure BGP_AF route target name
- register: result
- cisco.nxos.nxos_bgp_af: &id001
- asn: 65535
- afi: l2vpn
- safi: evpn
- state: present
- retain_route_target: abc
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_af: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Configure BGP_AF route target default
- register: result
- cisco.nxos.nxos_bgp_af: &id003
- asn: 65535
- afi: l2vpn
- safi: evpn
- state: present
- retain_route_target: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_af: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP_AF 1 route target all
- register: result
- cisco.nxos.nxos_bgp_af: &id005
- asn: 65535
- afi: l2vpn
- safi: evpn
- state: present
- retain_route_target: all
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_af: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP - route target
- register: result
- cisco.nxos.nxos_bgp_af:
- asn: 65535
- afi: l2vpn
- safi: evpn
- retain_route_target: all
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Disable multisite border gateway - multisite
- cisco.nxos.nxos_config:
- lines:
- - no evpn multisite border-gateway 10
- when: multiout is not search("Invalid command")
-
-- name: Disable 'feature bgp' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Disable 'feature nv overlay' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: nv overlay
- state: disabled
-
-- ansible.builtin.pause:
- seconds: 5
-
-- name: Remove NV overlay EVPN - multisite
- when: platform is search('N9K')
- cisco.nxos.nxos_config:
- lines:
- - no nv overlay evpn
-
-- ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp_af multisite sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/sanity.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/sanity.yaml
deleted file mode 100644
index fa06c19f9..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_af/tests/common/sanity.yaml
+++ /dev/null
@@ -1,342 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp_af sanity test
-
-- name: Set a fact for 'advertise_l2vpn_evpn'
- ansible.builtin.set_fact:
- advertise_l2vpn_evpn: true
- when: platform is search('N9K')
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- name: Enable 'feature nv overlay'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: nv overlay
- state: enabled
-
-- name: Setup
- ignore_errors: true
- cisco.nxos.nxos_bgp: &id012
- asn: 65535
- state: absent
-
-- block:
- - name: Enable NV overlay EVPN
- when: platform is search('N9K')
- cisco.nxos.nxos_config:
- lines:
- - nv overlay evpn
-
- - name: Configure BGP_AF 1
- register: result
- cisco.nxos.nxos_bgp_af: &id001
- asn: 65535
- vrf: testing
- afi: ipv4
- safi: unicast
- advertise_l2vpn_evpn: "{{advertise_l2vpn_evpn|default(omit)}}"
- state: present
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_af: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Remove BGP
- register: result
- cisco.nxos.nxos_bgp_af:
- asn: 65535
- vrf: testing
- afi: ipv4
- safi: unicast
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP_AF 2
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id003
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampening_state: true
- additional_paths_install: true
- additional_paths_receive: true
- additional_paths_selection: RouteMap
- additional_paths_send: true
- client_to_client: false
- default_information_originate: true
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP_AF def2
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id005
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampening_state: false
- additional_paths_install: false
- additional_paths_receive: false
- additional_paths_selection: default
- additional_paths_send: false
- client_to_client: true
- default_information_originate: false
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id008
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP_AF 3
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id006
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampening_routemap: abcd
- default_metric: 50
- distance_ebgp: 30
- distance_ibgp: 60
- distance_local: 90
- maximum_paths: 9
- maximum_paths_ibgp: 9
- next_hop_route_map: RouteMap
- suppress_inactive: true
- table_map: RouteMap
- table_map_filter: true
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id006
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP_AF def3
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id007
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampening_routemap: default
- default_metric: default
- distance_ebgp: default
- distance_ibgp: default
- distance_local: default
- maximum_paths: default
- maximum_paths_ibgp: default
- next_hop_route_map: default
- suppress_inactive: false
- table_map: default
- table_map_filter: false
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id007
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id008
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP_AF 4
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id009
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampen_igp_metric: 200
- dampening_half_time: 1
- dampening_max_suppress_time: 4
- dampening_reuse_time: 2
- dampening_suppress_time: 3
- inject_map:
- - - lax_inject_map
- - lax_exist_map
- - - nyc_inject_map
- - nyc_exist_map
- - copy-attributes
- - - fsd_inject_map
- - fsd_exist_map
- networks:
- - - 10.0.0.0/16
- - routemap_LA
- - - 192.168.1.1/32
- - Chicago
- - - 192.168.2.0/24
- - - 192.168.3.0/24
- - routemap_NYC
- redistribute:
- - - direct
- - rm_direct
- - - lisp
- - rm_lisp
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id009
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP_AF 5
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id010
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampen_igp_metric: 300
- dampening_half_time: 10
- dampening_max_suppress_time: 40
- dampening_reuse_time: 20
- dampening_suppress_time: 30
- inject_map:
- - - fsd_inject_map
- - fsd_exist_map
- networks:
- - - 192.168.2.0/24
- redistribute:
- - - lisp
- - rm_lisp
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id010
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP_AF def5
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: &id011
- asn: 65535
- vrf: "{{ item }}"
- afi: ipv4
- safi: unicast
- dampen_igp_metric: default
- dampening_half_time: default
- dampening_max_suppress_time: default
- dampening_reuse_time: default
- dampening_suppress_time: default
- inject_map: default
- networks: default
- redistribute: default
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id011
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id008
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_af: *id008
-
- - ansible.builtin.assert: *id004
- rescue:
- - name: Cleanup BGP
- ignore_errors: true
- cisco.nxos.nxos_bgp: *id012
- always:
- - name: Disable 'feature bgp'
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
- - name: Disable 'feature nv overlay'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: nv overlay
- state: disabled
-
- - ansible.builtin.pause:
- seconds: 5
-
- - name: Remove NV overlay EVPN
- when: platform is search('N9K')
- cisco.nxos.nxos_config:
- lines:
- - no nv overlay evpn
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp_af sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_global/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/defaults/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/defaults/main.yaml
deleted file mode 100644
index 525b7aab9..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/defaults/main.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-testcase: "*"
-vrfs:
- - default
- - myvrf
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/meta/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/meta/main.yml
deleted file mode 100644
index f504a6ab2..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/meta/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-dependencies:
- - prepare_nxos_tests
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/main.yaml
deleted file mode 100644
index a1da90e57..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/main.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-- name: Include the CLI tasks
- ansible.builtin.include_tasks: cli.yaml
- tags:
- - cli
-
-- name: Include the NX-API tasks
- ansible.builtin.include_tasks: nxapi.yaml
- tags:
- - nxapi
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/nxapi.yaml
deleted file mode 100644
index b4ed55204..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/nxapi.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: Collect common test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: Collect NX-API test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/nxapi"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: nxapi_cases
-
-- name: Set a fact for 'test_cases'
- ansible.builtin.set_fact:
- test_cases:
- files: "{{ test_cases.files + nxapi_cases.files }}"
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test cases (connection=ansible.netcommon.httpapi)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- vars:
- ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/multisite.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/multisite.yaml
deleted file mode 100644
index f567a6e04..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/multisite.yaml
+++ /dev/null
@@ -1,123 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp_neighbor multisite sanity test
-
-- name: Set a fact for 'intname'
- ansible.builtin.set_fact:
- intname: "{{ nxos_int1 }}"
-
-- name: "Setup: disable features - multisite"
- loop:
- - bgp
- - bfd
- - nv overlay
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: "{{ item }}"
- state: disabled
-
-- name: "Setup: enable features - multisite"
- loop:
- - bgp
- - bfd
- - nv overlay
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: "{{ item }}"
- state: enabled
-
-- name: Enable NV overlay EVPN - multisite
- when: platform is search('N9K')
- ignore_errors: true
- cisco.nxos.nxos_config:
- lines:
- - nv overlay evpn
-
-- name: Enable multisite border gateway - multisite
- ignore_errors: true
- register: multiout
- cisco.nxos.nxos_config:
- lines:
- - evpn multisite border-gateway 10
-
-- block:
- - name: Configure BGP neighbor1 - multisite
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id001
- asn: 65535
- neighbor: 192.0.2.3/32
- remote_as: 33.22
- description: just a description
- shutdown: true
- state: present
- peer_type: fabric_border_leaf
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Configure BGP neighbor2 - multisite
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id003
- asn: 65535
- neighbor: 192.0.2.3/32
- peer_type: disable
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor3 - multisite
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id005
- asn: 65535
- neighbor: 192.0.2.3/32
- peer_type: fabric_external
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Disable multisite border gateway - multisite
- cisco.nxos.nxos_config:
- lines:
- - no evpn multisite border-gateway 10
- when: multiout is not search("Invalid command")
-
-- name: "Teardown: disable features"
- loop:
- - bgp
- - bfd
- - nv overlay
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: "{{ item }}"
- state: disabled
-
-- ansible.builtin.pause:
- seconds: 5
-
-- name: Remove NV overlay EVPN - multisite
- when: platform is search('N9K')
- cisco.nxos.nxos_config:
- lines:
- - no nv overlay evpn
-
-- ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp_neighbor multisite sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml
deleted file mode 100644
index c2fff45a0..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml
+++ /dev/null
@@ -1,357 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp_neighbor sanity test
-
-- name: Set a fact for 'intname'
- ansible.builtin.set_fact:
- intname: "{{ nxos_int1 }}"
-
-- name: Set a fact for 'log_neighbor_changese'
- ansible.builtin.set_fact:
- log_neighbor_changese: enable
- when: (imagetag and imagetag is not search("D1|N1"))
-
-- name: Set a fact for 'log_neighbor_changesd'
- ansible.builtin.set_fact:
- log_neighbor_changesd: disable
- when: (imagetag and imagetag is not search("D1|N1"))
-
-- ansible.builtin.debug:
- var: titanium
-
-- name: Set a fact for 'remove_private_asa'
- ansible.builtin.set_fact:
- remove_private_asa: all
- when: not titanium
-
-- name: Set a fact for 'remove_private_asr'
- ansible.builtin.set_fact:
- remove_private_asr: replace-as
- when: not titanium
-
-- name: "Setup: disable features"
- loop:
- - bgp
- - bfd
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: "{{ item }}"
- state: disabled
-
-- name: "Setup: enable features"
- loop:
- - bgp
- - bfd
- cisco.nxos.nxos_feature:
- feature: "{{ item }}"
- state: enabled
-
-- block:
- - name: Configure BGP neighbor1
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id001
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- connected_check: true
- capability_negotiation: true
- dynamic_capability: true
- ebgp_multihop: 2
- low_memory_exempt: true
- maximum_peers: 10
- suppress_4_byte_as: true
- timers_keepalive: 90
- timers_holdtime: 270
- log_neighbor_changes: "{{log_neighbor_changese|default(omit)}}"
- local_as: 22.33
- remote_as: 33.22
- description: just a description
- update_source: "{{ intname.capitalize() }}"
- shutdown: true
- state: present
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Configure BGP neighbor2
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id003
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- connected_check: false
- capability_negotiation: false
- dynamic_capability: false
- ebgp_multihop: default
- low_memory_exempt: false
- maximum_peers: default
- suppress_4_byte_as: false
- timers_keepalive: default
- timers_holdtime: default
- log_neighbor_changes: "{{log_neighbor_changesd|default(omit)}}"
- local_as: default
- remote_as: default
- description: default
- update_source: default
- shutdown: false
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id005
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor3
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id006
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- description: tested by ansible
- remove_private_as: "{{remove_private_asa|default(omit)}}"
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id006
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor4
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id007
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- description: tested by ansible
- remove_private_as: "{{remove_private_asr|default(omit)}}"
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id007
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id005
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP neighbor 3des password
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id008
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- remote_as: 30
- pwd: 386c0565965f89de
- pwd_type: 3des
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id008
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id005
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP neighbor type 7 password
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id009
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- remote_as: 30
- pwd: 386c0565965f89de
- pwd_type: cisco_type_7
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id009
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP neighbor password
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id010
- asn: 65535
- neighbor: 192.0.2.3/32
- vrf: "{{ item }}"
- remote_as: 30
- pwd: default
- pwd_type: default
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id010
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id005
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP neighbor transport type passive
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id011
- asn: 65535
- neighbor: 192.0.2.3
- vrf: "{{ item }}"
- remote_as: 30
- transport_passive_only: true
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id011
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor transport type default
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id012
- asn: 65535
- neighbor: 192.0.2.3
- vrf: "{{ item }}"
- remote_as: 30
- transport_passive_only: false
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id012
-
- - ansible.builtin.assert: *id004
-
- - name: Remove BGP
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id013
- asn: 65535
- neighbor: 192.0.2.3
- vrf: "{{ item }}"
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- with_items: "{{ vrfs }}"
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id013
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BFD enable
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id014
- asn: 65535
- neighbor: 192.168.1.1
- bfd: enable
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check BFD enable idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id014
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BFD disable idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor: &id015
- asn: 65535
- neighbor: 192.168.1.1
- bfd: disable
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check BFD disable idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor: *id015
-
- - ansible.builtin.assert: *id004
- always:
- - name: "Teardown: disable features"
- loop:
- - bgp
- - bfd
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: "{{ item }}"
- state: disabled
-
-- ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp_neighbor sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_address_family/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/defaults/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/defaults/main.yaml
deleted file mode 100644
index 5f709c5aa..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/defaults/main.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-testcase: "*"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/meta/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/meta/main.yml
deleted file mode 100644
index f504a6ab2..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/meta/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-dependencies:
- - prepare_nxos_tests
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/cli.yaml
deleted file mode 100644
index f6096901f..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/cli.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: Collect common test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: Collect CLI test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/cli"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: cli_cases
-
-- name: Set a fact for 'test_cases'
- ansible.builtin.set_fact:
- test_cases:
- files: "{{ test_cases.files + cli_cases.files }}"
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test cases (connection=ansible.netcommon.network_cli)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- vars:
- ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/main.yaml
deleted file mode 100644
index a1da90e57..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/main.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-- name: Include the CLI tasks
- ansible.builtin.include_tasks: cli.yaml
- tags:
- - cli
-
-- name: Include the NX-API tasks
- ansible.builtin.include_tasks: nxapi.yaml
- tags:
- - nxapi
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/nxapi.yaml
deleted file mode 100644
index b4ed55204..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tasks/nxapi.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-- name: Collect common test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: Collect NX-API test cases
- ansible.builtin.find:
- paths: "{{ role_path }}/tests/nxapi"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: nxapi_cases
-
-- name: Set a fact for 'test_cases'
- ansible.builtin.set_fact:
- test_cases:
- files: "{{ test_cases.files + nxapi_cases.files }}"
-
-- name: Set test_items
- ansible.builtin.set_fact:
- test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: Run test cases (connection=ansible.netcommon.httpapi)
- ansible.builtin.include_tasks: "{{ test_case_to_run }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
- vars:
- ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/multisite.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/multisite.yaml
deleted file mode 100644
index 12c31f7a2..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/multisite.yaml
+++ /dev/null
@@ -1,117 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp_neighbor_af multisite sanity test
-
-- name: Set a fact for 'soft_reconfiguration_ina'
- ansible.builtin.set_fact:
- soft_reconfiguration_ina: always
- when: imagetag is not search("D1|N1")
-
-- name: Disable 'feature bgp' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- name: Enable 'feature nv overlay' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: nv overlay
- state: enabled
-
-- name: Enable NV overlay EVPN - multisite
- when: platform is search('N9K')
- cisco.nxos.nxos_config:
- lines:
- - nv overlay evpn
-
-- name: Enable multisite border gateway - multisite
- ignore_errors: true
- register: multiout
- cisco.nxos.nxos_config:
- lines:
- - evpn multisite border-gateway 10
-
-- block:
- - name: Configure EBGP - multisite
- cisco.nxos.nxos_bgp_neighbor:
- asn: 65535
- neighbor: 192.0.2.3
- remote_as: 2
-
- - name: Configure BGP neighbor - multisite
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id001
- asn: 65535
- neighbor: 192.0.2.3
- afi: l2vpn
- safi: evpn
- send_community: standard
- rewrite_evpn_rt_asn: true
- state: present
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Configure BGP neighbor 1 - multisite
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id003
- asn: 65535
- neighbor: 192.0.2.3
- afi: l2vpn
- safi: evpn
- send_community: standard
- rewrite_evpn_rt_asn: false
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: Disable multisite border gateway - multisite
- cisco.nxos.nxos_config:
- lines:
- - no evpn multisite border-gateway 10
- when: multiout is not search("Invalid command")
-
-- name: Disable 'feature bgp' - multisite
- cisco.nxos.nxos_feature:
- feature: bgp
- state: disabled
-
-- name: Disable 'feature nv overlay' - multisite
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: nv overlay
- state: disabled
-
-- ansible.builtin.pause:
- seconds: 5
-
-- name: Remove NV overlay EVPN - multisite
- when: platform is search('N9K')
- cisco.nxos.nxos_config:
- lines:
- - no nv overlay evpn
-
-- ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp_neighbor_af multisite sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml
deleted file mode 100644
index 3b680ad59..000000000
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor_af/tests/common/sanity.yaml
+++ /dev/null
@@ -1,295 +0,0 @@
----
-- ansible.builtin.debug:
- msg: START connection={{ ansible_connection }} nxos_bgp_neighbor_af sanity test
-
-- name: Set a fact for 'soft_reconfiguration_ina'
- ansible.builtin.set_fact:
- soft_reconfiguration_ina: always
- when: imagetag is not search("D1|N1")
-
-- name: Disable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature: &id013
- feature: bgp
- state: disabled
-
-- name: Enable 'feature bgp'
- ignore_errors: true
- cisco.nxos.nxos_feature:
- feature: bgp
- state: enabled
-
-- block:
- - name: Configure BGP neighbor address-family
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id001
- asn: 65535
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- additional_paths_receive: enable
- additional_paths_send: enable
- advertise_map_exist:
- - ansible_rm
- - my_exist_map
- allowas_in: true
- default_originate: true
- disable_peer_as_check: true
- filter_list_in: my_filter_list_in
- filter_list_out: my_filter_list_out
- max_prefix_limit: 100
- max_prefix_threshold: 50
- max_prefix_warning: "true"
- next_hop_self: true
- next_hop_third_party: false
- prefix_list_in: pfx_in
- prefix_list_out: pfx_out
- send_community: both
- soft_reconfiguration_in: enable
- suppress_inactive: true
- unsuppress_map: unsup_map
- weight: "30"
- state: present
-
- - ansible.builtin.assert: &id002
- that:
- - result.changed == true
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id001
-
- - ansible.builtin.assert: &id004
- that:
- - result.changed == false
-
- - name: Configure BGP neighbor address-family def1
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id003
- asn: 65535
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- additional_paths_receive: inherit
- additional_paths_send: inherit
- advertise_map_exist: default
- allowas_in: false
- default_originate: false
- disable_peer_as_check: false
- filter_list_in: default
- filter_list_out: default
- max_prefix_limit: default
- max_prefix_threshold: default
- max_prefix_warning: false
- next_hop_self: false
- next_hop_third_party: false
- prefix_list_in: default
- prefix_list_out: default
- send_community: none
- soft_reconfiguration_in: inherit
- suppress_inactive: false
- unsuppress_map: default
- weight: default
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id003
-
- - ansible.builtin.assert: *id004
-
- - name: "Setup: remove BGP configuration"
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id005
- asn: 65535
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor address-family
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id006
- asn: 65535
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- allowas_in_max: "5"
- advertise_map_non_exist:
- - ansible_rm
- - my_non_exist_map
- default_originate_route_map: my_route_map
- max_prefix_limit: 100
- max_prefix_interval: 30
- max_prefix_threshold: 50
- route_map_in: rm_in
- route_map_out: rm_out
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id006
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor address-family def2
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id007
- asn: 65535
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- allowas_in_max: default
- advertise_map_non_exist: default
- default_originate_route_map: default
- max_prefix_limit: default
- max_prefix_interval: default
- max_prefix_threshold: default
- route_map_in: default
- route_map_out: default
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id007
-
- - ansible.builtin.assert: *id004
-
- - name: "Setup: remove BGP configuration"
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id005
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id005
-
- - ansible.builtin.assert: *id004
-
- - name: Configure EBGP
- cisco.nxos.nxos_bgp_neighbor:
- asn: 65535
- vrf: blue
- neighbor: 192.0.2.3
- remote_as: 2
-
- - name: Configure BGP neighbor 3
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id008
- asn: 65535
- vrf: blue
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- additional_paths_receive: disable
- additional_paths_send: disable
- as_override: "true"
- send_community: standard
- soft_reconfiguration_in: "{{soft_reconfiguration_ina|default(omit)}}"
- soo: "3:3"
- next_hop_third_party: true
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id008
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor def3
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id009
- asn: 65535
- vrf: blue
- neighbor: 192.0.2.3
- afi: ipv4
- safi: unicast
- additional_paths_receive: inherit
- additional_paths_send: inherit
- as_override: false
- send_community: default
- soo: default
- state: present
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id009
-
- - ansible.builtin.assert: *id004
-
- - name: "Setup: remove BGP configuration"
- register: result
- cisco.nxos.nxos_bgp: &id012
- asn: 65535
- state: absent
-
- - ansible.builtin.assert: *id002
-
- - name: Configure BGP neighbor AF route_reflector_client
- cisco.nxos.nxos_bgp_neighbor:
- asn: 65535
- neighbor: 192.0.2.2
- remote_as: 65535
-
- - name: Configure BGP neighbor 4
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id010
- asn: 65535
- neighbor: 192.0.2.2
- afi: ipv4
- safi: unicast
- route_reflector_client: "true"
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id010
-
- - ansible.builtin.assert: *id004
-
- - name: Configure BGP neighbor def4
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: &id011
- asn: 65535
- neighbor: 192.0.2.2
- afi: ipv4
- safi: unicast
- route_reflector_client: false
-
- - ansible.builtin.assert: *id002
-
- - name: Check idempotence
- register: result
- cisco.nxos.nxos_bgp_neighbor_af: *id011
-
- - ansible.builtin.assert: *id004
- always:
- - name: Cleanup BGP
- ignore_errors: true
- cisco.nxos.nxos_bgp: *id012
-
- - name: Disable 'feature bgp'
- cisco.nxos.nxos_feature: *id013
-
- - ansible.builtin.debug:
- msg: END connection={{ ansible_connection }} nxos_bgp_neighbor_af sanity test
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/defaults/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/defaults/main.yaml
new file mode 100644
index 000000000..871ea460c
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/defaults/main.yaml
@@ -0,0 +1,2 @@
+---
+testcase: "[^_].*"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/meta/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/meta/main.yml
new file mode 100644
index 000000000..ed97d539c
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/meta/main.yml
@@ -0,0 +1 @@
+---
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/cli.yaml
index f6096901f..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_neighbor/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/cli.yaml
@@ -3,6 +3,7 @@
ansible.builtin.find:
paths: "{{ role_path }}/tests/common"
patterns: "{{ testcase }}.yaml"
+ use_regex: true
connection: local
register: test_cases
@@ -22,11 +23,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/main.yaml
new file mode 100644
index 000000000..026b6e477
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/main.yaml
@@ -0,0 +1,26 @@
+---
+- name: Enable 'feature bgp'
+ cisco.nxos.nxos_feature:
+ feature: bgp
+ vars:
+ ansible_connection: ansible.netcommon.network_cli
+
+- name: Run the CLI and NX-API tests
+ block:
+ - name: Include the CLI tasks
+ ansible.builtin.include_tasks: cli.yaml
+ tags:
+ - cli
+
+ - name: Include the NX-API tasks
+ ansible.builtin.include_tasks: nxapi.yaml
+ tags:
+ - nxapi
+
+ always:
+ - name: Disable 'feature bgp'
+ cisco.nxos.nxos_feature:
+ feature: bgp
+ state: disabled
+ vars:
+ ansible_connection: ansible.netcommon.network_cli
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/nxapi.yaml
index b4ed55204..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tasks/nxapi.yaml
@@ -3,6 +3,7 @@
ansible.builtin.find:
paths: "{{ role_path }}/tests/common"
patterns: "{{ testcase }}.yaml"
+ use_regex: true
connection: local
register: test_cases
@@ -22,11 +23,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_populate_config.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_populate_config.yaml
new file mode 100644
index 000000000..2fe977e28
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_populate_config.yaml
@@ -0,0 +1,25 @@
+---
+- name: "Setup - 1"
+ cisco.nxos.nxos_config:
+ lines:
+ - router bgp 65536
+ - template peer neighbor_tmplt_2
+ - description Test_BGP_PEER_TEMPLATE_2
+ - inherit peer-session psession1
+ - timers 45 100
+ - address-family ipv4 multicast
+ - advertise-map rmap1 exist-map emap1
+ - as-override
+ - filter-list flist1 in
+ - filter-list flist2 out
+ - template peer neighbor_tmplt_1
+ - bmp-activate-server 2
+ - capability suppress 4-byte-as
+ - description Test_BGP_PEER_TEMPLATE_1
+ - local-as 65536
+ - remote-as 65001
+ - address-family ipv4 unicast
+ - advertise-map rmap1 non-exist-map nemap1
+ - advertisement-interval 60
+ - disable-peer-as-check
+ match: none
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_remove_config.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_remove_config.yaml
new file mode 100644
index 000000000..af7092576
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/_remove_config.yaml
@@ -0,0 +1,8 @@
+---
+- name: Remove pre-existing BGP configurations
+ cisco.nxos.nxos_config:
+ lines:
+ - no router bgp 65536
+ ignore_errors: true
+ vars:
+ ansible_connection: ansible.netcommon.network_cli
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/deleted.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/deleted.yaml
new file mode 100644
index 000000000..ab2efb521
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/deleted.yaml
@@ -0,0 +1,44 @@
+---
+- ansible.builtin.debug:
+ msg: Start nxos_bgp_templates deleted integration tests connection={{ ansible_connection}}
+
+- ansible.builtin.include_tasks: _remove_config.yaml
+
+- ansible.builtin.include_tasks: _populate_config.yaml
+
+- block:
+ - name: Delete BGP configs handled by this module
+ cisco.nxos.nxos_bgp_templates: &id001
+ state: deleted
+ register: result
+
+ - name: Assert that before dicts are correctly generated
+ ansible.builtin.assert:
+ that:
+ - merged['after'] == result['before']
+
+ - ansible.builtin.debug:
+ msg: "{{ result['commands'] | symmetric_difference(deleted['commands']) }}"
+
+ - name: Assert that correct set of commands were generated
+ ansible.builtin.assert:
+ that:
+ - "{{ result['commands'] | symmetric_difference(deleted['commands']) |length == 0 }}"
+
+ - name: Assert that after dict is correctly generated
+ ansible.builtin.assert:
+ that:
+ - deleted['after'] == result['after']
+
+ - name: Delete BGP configs handled by this module (idempotent)
+ register: result
+ cisco.nxos.nxos_bgp_templates: *id001
+
+ - name: Assert that task was idempotent
+ ansible.builtin.assert:
+ that:
+ - result['changed'] == false
+ - result.commands|length == 0
+
+ always:
+ - ansible.builtin.include_tasks: _remove_config.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/empty_config.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/empty_config.yaml
new file mode 100644
index 000000000..f57679e8b
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/empty_config.yaml
@@ -0,0 +1,61 @@
+---
+- ansible.builtin.debug:
+ msg: START nxos_bgp_templates empty_config integration tests on connection={{ ansible_connection }}
+
+- name: Merged with empty configuration should give appropriate error message
+ register: result
+ ignore_errors: true
+ cisco.nxos.nxos_bgp_templates:
+ config:
+ state: merged
+
+- ansible.builtin.assert:
+ that:
+ - result.msg == 'value of config parameter must not be empty for state merged'
+
+- name: Replaced with empty configuration should give appropriate error message
+ register: result
+ ignore_errors: true
+ cisco.nxos.nxos_bgp_templates:
+ config:
+ state: replaced
+
+- ansible.builtin.assert:
+ that:
+ - result.msg == 'value of config parameter must not be empty for state replaced'
+
+- name: Overridden with empty configuration should give appropriate error message
+ register: result
+ ignore_errors: true
+ cisco.nxos.nxos_bgp_templates:
+ config:
+ state: overridden
+
+- ansible.builtin.assert:
+ that:
+ - result.msg == 'value of config parameter must not be empty for state overridden'
+
+- name: Rendered with empty configuration should give appropriate error message
+ register: result
+ ignore_errors: true
+ cisco.nxos.nxos_bgp_templates:
+ config:
+ state: rendered
+
+- ansible.builtin.assert:
+ that:
+ - result.msg == 'value of config parameter must not be empty for state rendered'
+
+- name: Parsed with empty configuration should give appropriate error message
+ register: result
+ ignore_errors: true
+ cisco.nxos.nxos_bgp_templates:
+ running_config:
+ state: parsed
+
+- ansible.builtin.assert:
+ that:
+ - result.msg == 'value of running_config parameter must not be empty for state parsed'
+
+- ansible.builtin.debug:
+ msg: END nxos_bgp_templates empty_config integration tests
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/fixtures/parsed.cfg b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/fixtures/parsed.cfg
new file mode 100644
index 000000000..615f7fa21
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/fixtures/parsed.cfg
@@ -0,0 +1,20 @@
+router bgp 65536
+ template peer neighbor_tmplt_1
+ bmp-activate-server 2
+ capability suppress 4-byte-as
+ description Test_BGP_PEER_TEMPLATE_1
+ local-as 65536
+ remote-as 65001
+ address-family ipv4 unicast
+ advertise-map rmap1 non-exist-map nemap1
+ advertisement-interval 60
+ disable-peer-as-check
+ template peer neighbor_tmplt_2
+ description Test_BGP_PEER_TEMPLATE_2
+ inherit peer-session psession1
+ timers 45 100
+ address-family ipv4 multicast
+ advertise-map rmap1 exist-map emap1
+ as-override
+ filter-list flist1 in
+ filter-list flist2 out
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/gathered.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/gathered.yaml
new file mode 100644
index 000000000..1cdf9a2f2
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/gathered.yaml
@@ -0,0 +1,20 @@
+---
+- ansible.builtin.debug:
+ msg: "START nxos_bgp_templates gathered integration tests"
+
+- ansible.builtin.include_tasks: _remove_config.yaml
+
+- ansible.builtin.include_tasks: _populate_config.yaml
+
+- block:
+ - name: Gather BGP templates facts using gathered
+ register: result
+ cisco.nxos.nxos_bgp_templates:
+ state: gathered
+
+ - name: Assert that facts were correctly generated
+ ansible.builtin.assert:
+ that: merged['after'] == result['gathered']
+
+ always:
+ - ansible.builtin.include_tasks: _remove_config.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/merged.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/merged.yaml
new file mode 100644
index 000000000..acacacd02
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/merged.yaml
@@ -0,0 +1,72 @@
+---
+- ansible.builtin.debug:
+ msg: Start nxos_bgp_templates merged integration tests connection={{ ansible_connection}}
+
+- ansible.builtin.include_tasks: _remove_config.yaml
+
+- block:
+ - name: Merge the provided configuration with the existing running configuration
+ cisco.nxos.nxos_bgp_templates: &id001
+ config:
+ as_number: 65536
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ route_map: rmap1
+ non_exist_map: nemap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ bmp_activate_server: 2
+ capability:
+ suppress_4_byte_as: true
+ description: Test_BGP_PEER_TEMPLATE_1
+ local_as: 65536
+ remote_as: 65001
+
+ - name: neighbor_tmplt_2
+ description: Test_BGP_PEER_TEMPLATE_2
+ address_family:
+ - afi: ipv4
+ safi: multicast
+ advertise_map:
+ route_map: rmap1
+ exist_map: emap1
+ as_override: true
+ filter_list:
+ inbound: flist1
+ outbound: flist2
+ inherit:
+ peer_session: psession1
+ timers:
+ holdtime: 100
+ keepalive: 45
+ register: result
+
+ - name: Assert that before dicts were correctly generated
+ ansible.builtin.assert:
+ that: "{{ result['before'] == {} }}"
+
+ - name: Assert that correct set of commands were generated
+ ansible.builtin.assert:
+ that:
+ - "{{ merged['commands'] | symmetric_difference(result['commands']) |length == 0 }}"
+
+ - name: Assert that after dicts were correctly generated
+ ansible.builtin.assert:
+ that:
+ - merged['after'] == result['after']
+
+ - name: Merge the provided configuration with the existing running configuration (idempotent)
+ cisco.nxos.nxos_bgp_templates: *id001
+ register: result
+
+ - name: Assert that the previous task was idempotent
+ ansible.builtin.assert:
+ that:
+ - result['changed'] == false
+ - result.commands|length == 0
+ always:
+ - ansible.builtin.include_tasks: _remove_config.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/overridden.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/overridden.yaml
new file mode 100644
index 000000000..c66b10284
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/overridden.yaml
@@ -0,0 +1,61 @@
+---
+- ansible.builtin.debug:
+ msg: Start nxos_bgp_templates replaced integration tests connection={{ ansible_connection}}
+
+- ansible.builtin.include_tasks: _remove_config.yaml
+
+- ansible.builtin.include_tasks: _populate_config.yaml
+
+- block:
+ - name: Override BGP templates configuration with provided configuration
+ cisco.nxos.nxos_bgp_templates: &id001
+ config:
+ as_number: 65536
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ route_map: rmap1
+ non_exist_map: nemap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ inherit:
+ peer_session: psession1
+ description: Test_BGP_PEER_TEMPLATE_1
+ local_as: 65537
+ state: overridden
+ register: result
+
+ - name: Assert that correct set of commands were generated
+ ansible.builtin.assert:
+ that:
+ - "{{ overridden['commands'] | symmetric_difference(result['commands']) |length == 0 }}"
+
+ - name: Assert that after dict is correctly generated
+ ansible.builtin.assert:
+ that:
+ - overridden['after'] == result['after']
+
+ - name: Assert that before dicts are correctly generated
+ ansible.builtin.assert:
+ that:
+ - merged['after'] == result['before']
+
+ - name: Override device configurations of listed OSPF processes with provided configurarions (idempotent)
+ register: result
+ cisco.nxos.nxos_bgp_templates: *id001
+
+ - name: Assert that task was idempotent
+ ansible.builtin.assert:
+ that:
+ - result['changed'] == false
+ - result.commands|length == 0
+
+ - name: Assert that before dict is correctly generated
+ ansible.builtin.assert:
+ that:
+ - overridden['after'] == result['before']
+ always:
+ - ansible.builtin.include_tasks: _remove_config.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/parsed.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/parsed.yaml
new file mode 100644
index 000000000..0a04fa376
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/parsed.yaml
@@ -0,0 +1,14 @@
+---
+- ansible.builtin.debug:
+ msg: START nxos_bgp_templates parsed integration tests on connection={{ ansible_connection }}
+
+- name: Parse externally provided BGP templates configuration
+ register: result
+ cisco.nxos.nxos_bgp_templates:
+ running_config: "{{ lookup('file', './fixtures/parsed.cfg') }}"
+ state: parsed
+
+- name: Assert that configuration was correctly parsed
+ ansible.builtin.assert:
+ that:
+ - merged['after'] == result['parsed']
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/rendered.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/rendered.yaml
new file mode 100644
index 000000000..411e8761f
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/rendered.yaml
@@ -0,0 +1,59 @@
+---
+- ansible.builtin.debug:
+ msg: START nxos_bgp_templates rendered integration tests on connection={{ ansible_connection }}
+
+- name: Render platform specific configuration lines with state rendered (without connecting to the device)
+ cisco.nxos.nxos_bgp_templates:
+ config:
+ as_number: 65536
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ route_map: rmap1
+ non_exist_map: nemap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ bmp_activate_server: 2
+ capability:
+ suppress_4_byte_as: true
+ description: Test_BGP_PEER_TEMPLATE_1
+ local_as: 65536
+ remote_as: 65001
+
+ - name: neighbor_tmplt_2
+ description: Test_BGP_PEER_TEMPLATE_2
+ address_family:
+ - afi: ipv4
+ safi: multicast
+ advertise_map:
+ route_map: rmap1
+ exist_map: emap1
+ as_override: true
+ filter_list:
+ inbound: flist1
+ outbound: flist2
+ inherit:
+ peer_session: psession1
+ timers:
+ holdtime: 100
+ keepalive: 45
+ state: rendered
+ register: result
+
+- name: Assert that correct set of commands were rendered
+ ansible.builtin.assert:
+ that:
+ - "{{ merged['commands'] | symmetric_difference(result['rendered']) |length == 0 }}"
+
+- name: Gather BGP templates facts
+ cisco.nxos.nxos_bgp_templates:
+ state: gathered
+ register: result
+
+- name: Ensure that no configuration changes were made
+ ansible.builtin.assert:
+ that:
+ - result.gathered == {}
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/replaced.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/replaced.yaml
new file mode 100644
index 000000000..73bd4b73f
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/tests/common/replaced.yaml
@@ -0,0 +1,61 @@
+---
+- ansible.builtin.debug:
+ msg: Start nxos_bgp_templates replaced integration tests connection={{ ansible_connection}}
+
+- ansible.builtin.include_tasks: _remove_config.yaml
+
+- ansible.builtin.include_tasks: _populate_config.yaml
+
+- block:
+ - name: Replace BGP templates configuration with provided configuration
+ cisco.nxos.nxos_bgp_templates: &id001
+ config:
+ as_number: 65536
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ route_map: rmap1
+ non_exist_map: nemap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ inherit:
+ peer_session: psession1
+ description: Test_BGP_PEER_TEMPLATE_1
+ local_as: 65537
+ state: replaced
+ register: result
+
+ - name: Assert that correct set of commands were generated
+ ansible.builtin.assert:
+ that:
+ - "{{ replaced['commands'] | symmetric_difference(result['commands']) |length == 0 }}"
+
+ - name: Assert that after dict is correctly generated
+ ansible.builtin.assert:
+ that:
+ - replaced['after'] == result['after']
+
+ - name: Assert that before dicts are correctly generated
+ ansible.builtin.assert:
+ that:
+ - merged['after'] == result['before']
+
+ - name: Replace device configurations of listed OSPF processes with provided configurarions (idempotent)
+ register: result
+ cisco.nxos.nxos_bgp_templates: *id001
+
+ - name: Assert that task was idempotent
+ ansible.builtin.assert:
+ that:
+ - result['changed'] == false
+ - result.commands|length == 0
+
+ - name: Assert that before dict is correctly generated
+ ansible.builtin.assert:
+ that:
+ - replaced['after'] == result['before']
+ always:
+ - ansible.builtin.include_tasks: _remove_config.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/vars/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/vars/main.yml
new file mode 100644
index 000000000..77acf1516
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_bgp_templates/vars/main.yml
@@ -0,0 +1,142 @@
+---
+merged:
+ commands:
+ - router bgp 65536
+ - template peer neighbor_tmplt_2
+ - description Test_BGP_PEER_TEMPLATE_2
+ - inherit peer-session psession1
+ - timers 45 100
+ - address-family ipv4 multicast
+ - advertise-map rmap1 exist-map emap1
+ - as-override
+ - filter-list flist1 in
+ - filter-list flist2 out
+ - template peer neighbor_tmplt_1
+ - bmp-activate-server 2
+ - capability suppress 4-byte-as
+ - description Test_BGP_PEER_TEMPLATE_1
+ - local-as 65536
+ - remote-as 65001
+ - address-family ipv4 unicast
+ - advertise-map rmap1 non-exist-map nemap1
+ - advertisement-interval 60
+ - disable-peer-as-check
+
+ after:
+ as_number: "65536"
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ non_exist_map: nemap1
+ route_map: rmap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ bmp_activate_server: 2
+ capability:
+ suppress_4_byte_as: true
+ description: Test_BGP_PEER_TEMPLATE_1
+ local_as: "65536"
+ remote_as: "65001"
+
+ - name: neighbor_tmplt_2
+ description: Test_BGP_PEER_TEMPLATE_2
+ address_family:
+ - afi: ipv4
+ safi: multicast
+ advertise_map:
+ exist_map: emap1
+ route_map: rmap1
+ as_override: true
+ filter_list:
+ inbound: flist1
+ outbound: flist2
+ inherit:
+ peer_session: psession1
+ timers:
+ holdtime: 100
+ keepalive: 45
+
+replaced:
+ commands:
+ - router bgp 65536
+ - template peer neighbor_tmplt_1
+ - no bmp-activate-server 2
+ - no capability suppress 4-byte-as
+ - inherit peer-session psession1
+ - local-as 65537
+ - no remote-as 65001
+
+ after:
+ as_number: "65536"
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ non_exist_map: nemap1
+ route_map: rmap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ description: Test_BGP_PEER_TEMPLATE_1
+ inherit:
+ peer_session: psession1
+ local_as: "65537"
+
+ - name: neighbor_tmplt_2
+ description: Test_BGP_PEER_TEMPLATE_2
+ address_family:
+ - afi: ipv4
+ safi: multicast
+ advertise_map:
+ exist_map: emap1
+ route_map: rmap1
+ as_override: true
+ filter_list:
+ inbound: flist1
+ outbound: flist2
+ inherit:
+ peer_session: psession1
+ timers:
+ holdtime: 100
+ keepalive: 45
+
+overridden:
+ commands:
+ - router bgp 65536
+ - template peer neighbor_tmplt_1
+ - no bmp-activate-server 2
+ - no capability suppress 4-byte-as
+ - inherit peer-session psession1
+ - local-as 65537
+ - no remote-as 65001
+ - no template peer neighbor_tmplt_2
+
+ after:
+ as_number: "65536"
+ neighbor:
+ - name: neighbor_tmplt_1
+ address_family:
+ - afi: ipv4
+ safi: unicast
+ advertise_map:
+ non_exist_map: nemap1
+ route_map: rmap1
+ advertisement_interval: 60
+ disable_peer_as_check: true
+ description: Test_BGP_PEER_TEMPLATE_1
+ inherit:
+ peer_session: psession1
+ local_as: "65537"
+
+deleted:
+ commands:
+ - router bgp 65536
+ - no template peer neighbor_tmplt_1
+ - no template peer neighbor_tmplt_2
+
+ after:
+ as_number: "65536"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tests/cli/sanity.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tests/cli/sanity.yaml
index 74c777bd5..bb8a3db43 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tests/cli/sanity.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_command/tests/cli/sanity.yaml
@@ -26,10 +26,11 @@
- name: Configure BGP defaults
register: result
- cisco.nxos.nxos_bgp:
- asn: 65535
- router_id: 192.0.2.1
- state: present
+ cisco.nxos.nxos_bgp_global:
+ config:
+ as_number: 65535
+ router_id: 192.0.2.1
+ state: merged
- ansible.builtin.assert:
that:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli_config.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli_config.yaml
index 4c960185d..79b7f90ab 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli_config.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/cli_config.yaml
@@ -10,7 +10,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test case (connection=ansible.netcommon.network_cli)
+- name: Run test case with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/redirection.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/redirection.yaml
index 0ef757aef..dde1662ea 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/redirection.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tasks/redirection.yaml
@@ -10,7 +10,7 @@
ansible.builtin.set_fact:
test_items: "{{ shortname_test_cases.files | map(attribute='path') | list }}"
-- name: Run test case (connection=ansible.netcommon.network_cli)
+- name: Run test case with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/templates/basic/acl_config.j2 b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/templates/basic/acl_config.j2
new file mode 100644
index 000000000..ec03c24a2
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/templates/basic/acl_config.j2
@@ -0,0 +1,5 @@
+ip access-list test
+ 10 permit ip 192.0.2.1/32 any log
+ 20 permit ip 192.0.2.2/32 any log
+ 30 permit ip 192.0.2.3/32 any log
+ 40 permit ip 192.0.2.4/32 any log
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tests/cli/replace_block.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tests/cli/replace_block.yaml
new file mode 100644
index 000000000..deb79b940
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_config/tests/cli/replace_block.yaml
@@ -0,0 +1,35 @@
+---
+- ansible.builtin.debug: msg="START cli/replace_block.yaml on connection={{ ansible_connection }}"
+
+- name: "setup"
+ cisco.nxos.nxos_config:
+ lines:
+ - "no ip access-list test"
+ ignore_errors: true
+
+- name: "Populate nxos acls configuration with replace block and lines options"
+ register: result1
+ cisco.nxos.nxos_config:
+ lines: "{{ lookup('template', 'basic/acl_config.j2') }}"
+ replace: block
+
+- ansible.builtin.assert:
+ that:
+ - result1.changed == true
+
+- name: "setup"
+ cisco.nxos.nxos_config:
+ lines:
+ - "no ip access-list test"
+ ignore_errors: true
+
+- name: "Populate acl configuration with replace block and src options"
+ register: result2
+ cisco.nxos.nxos_config:
+ src: basic/acl_config.j2
+ replace: block
+
+- ansible.builtin.assert:
+ that:
+ - result2.changed == true
+ - result1.commands == result2.commands
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_devicealias/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_devicealias/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_devicealias/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_devicealias/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_global/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_evpn_vni/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tests/common/all_facts.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tests/common/all_facts.yaml
index cce7c66a0..7aece91d1 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tests/common/all_facts.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/tests/common/all_facts.yaml
@@ -18,6 +18,7 @@
- result.ansible_facts.ansible_net_filesystems is defined
- result.ansible_facts.ansible_net_interfaces is defined
- result.ansible_facts.ansible_net_config is defined
+ - result.ansible_facts.ansible_net_cpu_utilization is defined
- result.ansible_facts.ansible_net_model is defined
- result.ansible_facts.ansible_net_memfree_mb > 1
- result.ansible_facts.ansible_net_memtotal_mb > 1
@@ -26,16 +27,12 @@
register: result
cisco.nxos.nxos_facts:
available_network_resources: true
- gather_network_resources: all
- name: Assert that correct available_network_resources returned
ansible.builtin.assert:
that:
- result.changed == false
- - >-
- {{ result['ansible_facts']['available_network_resources'] |
- symmetric_difference(result['ansible_facts']['ansible_net_gather_network_resources']) |
- length == 0 }}
+ - "{{ result['ansible_facts']['available_network_resources'] | symmetric_difference(available_network_resources) | length == 0 }}"
- ansible.builtin.debug:
msg: END connection={{ ansible_connection }}/all_facts.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/vars/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/vars/main.yml
new file mode 100644
index 000000000..5965c4191
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_facts/vars/main.yml
@@ -0,0 +1,30 @@
+---
+available_network_resources:
+ - acl_interfaces
+ - acls
+ - bfd_interfaces
+ - bgp_address_family
+ - bgp_global
+ - bgp_neighbor_address_family
+ - bgp_templates
+ - hostname
+ - hsrp_interfaces
+ - interfaces
+ - l2_interfaces
+ - l3_interfaces
+ - lacp
+ - lacp_interfaces
+ - lag_interfaces
+ - lldp_global
+ - lldp_interfaces
+ - logging_global
+ - ntp_global
+ - ospf_interfaces
+ - ospfv2
+ - ospfv3
+ - prefix_lists
+ - route_maps
+ - snmp_server
+ - static_routes
+ - telemetry
+ - vlans
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_feature/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/cli.yaml
index 311e39414..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/cli.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/nxapi.yaml
index 18bf1b6ef..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_gir_profile_management/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hostname/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/cli.yaml
index 9aa0d8690..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/cli.yaml
@@ -23,11 +23,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_hsrp_interfaces/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_interface/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/httpapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/httpapi.yaml
index 555aa8358..acefd4a4c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/httpapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/httpapi.yaml
@@ -10,11 +10,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (ansible_connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/network_cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/network_cli.yaml
index 476745353..df97b28bc 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/network_cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_install_os/tasks/network_cli.yaml
@@ -10,11 +10,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (ansible_connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_interfaces/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l2_interfaces/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_l3_interfaces/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tests/common/overridden.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tests/common/overridden.yaml
new file mode 100644
index 000000000..d6eb4fb93
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp/tests/common/overridden.yaml
@@ -0,0 +1,104 @@
+---
+- ansible.builtin.debug:
+ msg: Start nxos_lacp overridden integration tests connection={{ ansible_connection }}
+
+- name: Enable 'feature lacp'
+ cisco.nxos.nxos_feature:
+ feature: lacp
+
+- name: Set a fact for 'mac1' and 'mac2'
+ ansible.builtin.set_fact:
+ mac1: lacp system-mac 00c1.4c00.bd20 role primary
+ mac2:
+ address: 00c1.4c00.bd15
+ role: secondary
+ when: platform is search('N9K') and imagetag is not search('I[2-6]')
+
+- block:
+ - name: Setup1
+ cisco.nxos.nxos_config:
+ lines: lacp system-priority 11
+
+ - name: Setup2
+ cisco.nxos.nxos_config:
+ lines: "{{ mac1|default(omit) }}"
+
+ - name: Gather lacp facts
+ cisco.nxos.nxos_facts: &id001
+ gather_subset:
+ - "!all"
+ - "!min"
+ gather_network_resources: lacp
+
+ - name: Run overridden test
+ register: result
+ cisco.nxos.nxos_lacp: &id002
+ config:
+ system:
+ priority: 12
+ mac: "{{ mac2|default(omit) }}"
+ state: overridden
+
+ - ansible.builtin.assert:
+ that:
+ - ansible_facts.network_resources.lacp == result.before
+ - result.changed == true
+ - result.commands|length == 2
+ - "'no lacp system-priority' in result.commands"
+ - "'lacp system-priority 12' in result.commands"
+ when: platform is not search('N9K')
+
+ - ansible.builtin.assert:
+ that:
+ - ansible_facts.network_resources.lacp == result.before
+ - result.changed == true
+ - "'no lacp system-priority' in result.commands"
+ - "'no lacp system-mac' in result.commands"
+ - "'lacp system-priority 12' in result.commands"
+ - "'lacp system-mac 00c1.4c00.bd15 role secondary' in result.commands"
+ - result.commands|length == 4
+ when: platform is search('N9K') and imagetag is not search('I[2-6]')
+
+ - name: Gather lacp interfaces post facts
+ cisco.nxos.nxos_facts: *id001
+
+ - ansible.builtin.assert:
+ that:
+ - ansible_facts.network_resources.lacp == result.after
+ when: platform is search('N9K') and imagetag is not search('I[2-6]')
+
+ - name: Idempotence - overridden
+ register: result
+ cisco.nxos.nxos_lacp: *id002
+
+ - ansible.builtin.assert:
+ that:
+ - result.changed == false
+ - result.commands|length == 0
+
+ - name: Setup3
+ cisco.nxos.nxos_config:
+ lines: "{{ mac1|default(omit) }}"
+
+ - name: overridden
+ register: result
+ when: platform is search('N9K') and imagetag is not search('I[2-6]')
+ cisco.nxos.nxos_lacp:
+ config:
+ system:
+ priority: 1
+ state: overridden
+
+ - ansible.builtin.assert:
+ that:
+ - result.changed == true
+ - result.commands|length == 3
+ - "'no lacp system-mac' in result.commands"
+ - "'no lacp system-priority' in result.commands"
+ - "'lacp system-priority 1' in result.commands"
+ when: platform is search('N9K') and imagetag is not search('I[2-6]')
+ always:
+ - name: Teardown
+ cisco.nxos.nxos_feature:
+ feature: lacp
+ state: disabled
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/nxapi.yaml
index 18bf1b6ef..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lacp_interfaces/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/nxapi.yaml
index 18bf1b6ef..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/merged.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/merged.yaml
index 96b74273d..3a8e78976 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/merged.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/merged.yaml
@@ -35,9 +35,9 @@
- name: port-channel10
members:
- member: "{{ test_int1 }}"
-
- member: "{{ test_int2 }}"
- mode: true
+ mode: on # noqa yaml[truthy]
+ force: true
state: merged
- ansible.builtin.assert:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/overridden.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/overridden.yaml
index f2bafafb2..92c357f1d 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/overridden.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lag_interfaces/tests/common/overridden.yaml
@@ -92,7 +92,7 @@
that:
- "result.changed == True"
- "'interface Ethernet1/9' in result.commands"
- - "'channel-group 20 force mode active' in result.commands"
+ - "'channel-group 20 force mode active' in result.commands"
always:
- name: Teardown
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/cli.yaml
index 3bff52013..bb0e65506 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/nxapi.yaml
index e0ebc3f54..59a0777c5 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tests/common/overridden.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tests/common/overridden.yml
new file mode 100644
index 000000000..58c41c1f8
--- /dev/null
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_global/tests/common/overridden.yml
@@ -0,0 +1,92 @@
+---
+- ansible.builtin.debug:
+ msg: Start nxos_lldp_global overridden integration tests connection = {{ansible_connection}}
+
+- block:
+ - name: Set a fact for 'port_id' and 'tlv_power_mgmt'
+ ansible.builtin.set_fact:
+ port_id: 1
+ tlv_power_mgmt:
+ power_management: false
+ when: platform is not search('N[567]K') and imagetag is not search("I[2345]")
+
+ - name: Feature off to cleanup lldp
+ cisco.nxos.nxos_feature: &id002
+ feature: lldp
+ state: disabled
+
+ - name: Enable lldp feature
+ cisco.nxos.nxos_feature:
+ feature: lldp
+ state: enabled
+
+ - name: Setup
+ cisco.nxos.nxos_config:
+ lines:
+ - "lldp holdtime 125"
+ - "lldp tlv-select system-name"
+ - "no lldp tlv-select port-vlan"
+
+ - name: Setup2
+ when: port_id is defined
+ cisco.nxos.nxos_config:
+ lines:
+ - "lldp portid-subtype 1"
+ - "no lldp tlv-select power-management"
+
+ - name: Run overridden tests
+ register: result
+ cisco.nxos.nxos_lldp_global: &id001
+ config:
+ holdtime: 125
+ timer: 35
+ tlv_select:
+ system:
+ name: false
+ description: false
+ port:
+ vlan: false
+ dcbxp: false
+ state: overridden
+
+ - ansible.builtin.assert:
+ that:
+ - result.changed == true
+ - "'lldp timer 35' in result.commands"
+ - "'no lldp tlv-select system-name' in result.commands"
+ - "'no lldp tlv-select system-description' in result.commands"
+ - "'no lldp tlv-select dcbxp' in result.commands"
+
+ - ansible.builtin.assert:
+ that:
+ - "'no lldp portid-subtype 1' in result.commands"
+ when: port_id is defined
+
+ - ansible.builtin.assert:
+ that:
+ - "'lldp tlv-select power-management' in result.commands"
+ when: tlv_power_mgmt is defined
+
+ - name: Gather lldp_global post facts
+ cisco.nxos.nxos_facts:
+ gather_subset:
+ - "!all"
+ - "!min"
+ gather_network_resources: lldp_global
+
+ - ansible.builtin.assert:
+ that:
+ - ansible_facts.network_resources.lldp_global == result.after
+
+ - name: Idempotence - overridden
+ register: result
+ cisco.nxos.nxos_lldp_global: *id001
+
+ - ansible.builtin.assert:
+ that:
+ - result.changed == false
+ - result.commands|length == 0
+ always:
+ - name: Teardown
+ cisco.nxos.nxos_feature: *id002
+ when: platform is not search('N35')
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/cli.yaml
index c34726ef5..3e5e72a07 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/cli.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/nxapi.yaml
index e0ebc3f54..59a0777c5 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_lldp_interfaces/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_logging_global/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_auth/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_global/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ntp_options/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/nxapi.yaml
index 25cdd4904..0b2e4f778 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_nxapi/tasks/nxapi.yaml
@@ -22,20 +22,18 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
-
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
-- name: Run test cases (connection=local)
+
+- name: Run test cases with connection local
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: local
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospf_interfaces/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv2/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_ospfv3/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_overlay_global/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_interface/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_pim_rp_address/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_prefix_lists/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/nxapi.yaml
index 57e91e216..cdee9a584 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_reboot/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
@@ -30,4 +30,3 @@
tags: nxapi_httpapi
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/nxapi.yaml
index b4ed55204..74961c395 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rollback/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_route_maps/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/nxapi.yaml
index b4ed55204..74961c395 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_rpm/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/cli.yaml
index 1fa8d4e11..b335e711c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/cli.yaml
@@ -28,14 +28,13 @@
transport: cli
authorize: true
-- name: Run test cases (connection=network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: network_cli
- connection: "{{ cli }}"
# Temporarily disabling connection=local tests for CI issues
# - name: run test cases (connection=local)
@@ -47,9 +46,8 @@
# loop_control:
# loop_var: test_case_to_run
-- name: Run test cases (connection=network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ role_path }}/tests/common/caching.yaml"
vars:
ansible_connection: ansible.netcommon.network_cli
ansible_network_single_user_mode: true
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/nxapi.yaml
index f3a565f93..52aa1a100 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/nxapi.yaml
@@ -22,14 +22,13 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: httpapi
- connection: "{{ nxapi }}"
# Temporarily disabling connection=local tests for CI issues
# - name: run test cases (connection=local)
# ansible.builtin.include_tasks: "{{ test_case_to_run }}
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snapshot/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_community/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_contact/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_host/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_location/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/main.yaml
index cb885dee9..b46cbf998 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/main.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/main.yaml
@@ -6,7 +6,7 @@
- name: Grep admin user SNMP localized key
ansible.builtin.set_fact:
- # noqa var-spacing
+ # noqa jinja[spacing]
admin_snmp_passwd: "{{ result['stdout'][0] | regex_search('snmp-server user admin network-admin auth (md5|sha|sha-256) (\\S+)', '\\2') }}"
- name: Find admin user SNMP localized key
@@ -15,7 +15,7 @@
- name: Grep admin user SNMP localized key (second)
ansible.builtin.set_fact:
- admin_snmp_passwd_2: "{{ result['stdout'][0] | regex_search('snmp-server user admin auth (md5|sha|sha-256) (\\S+)', '\\2') }}" # noqa var-spacing
+ admin_snmp_passwd_2: "{{ result['stdout'][0] | regex_search('snmp-server user admin auth (md5|sha|sha-256) (\\S+)', '\\2') }}" # noqa jinja[spacing]
- name: Find admin user SNMP localized key (second)
ansible.builtin.set_fact:
@@ -23,7 +23,7 @@
- name: Grep admin user SNMP engineid (second)
ansible.builtin.set_fact:
- # noqa var-spacing
+ # # noqa jinja[spacing]
admin_snmp_engineid_2: "{{ result['stdout'][0] | regex_search('admin auth (md5|sha|sha-256) (\\S+) priv (\\S+) localizedkey engineID (\\S+)', '\\4') }}"
- name: Find admin user SNMP engineid (second)
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/nxapi.yaml
index 5cb76e671..4ae68868c 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_server/tasks/nxapi.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_traps/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_snmp_user/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/cli.yaml
index e22d5c622..fd8d12e79 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/main.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/main.yaml
index 159ffa2b9..10be7ff19 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/main.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tasks/main.yaml
@@ -1,4 +1,19 @@
---
+- name: Fetch vrf confext management output
+ cisco.nxos.nxos_command:
+ commands: show running-config | section 'vrf context management'
+ register: vrf_conf
+
+- name: Parse the config to structured data
+ cisco.nxos.nxos_static_routes:
+ state: parsed
+ running_config: "{{ vrf_conf['stdout'][0] }}"
+ register: vrf_mgmt
+
+- name: Setting booleans facts of management vrf
+ ansible.builtin.set_fact:
+ var_vrf_mgmt: "{{ vrf_mgmt['parsed'][0] }}"
+
- name: Include the CLI tasks
ansible.builtin.include_tasks: cli.yaml
tags:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/deleted.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/deleted.yml
index 67c89cc33..fbf316b41 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/deleted.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/deleted.yml
@@ -46,36 +46,5 @@
- "'no ip route 192.0.2.64/28 192.0.2.23 name merged_route 1' in result.commands"
- "result.commands | length == 3"
- - ansible.builtin.include_tasks: _remove_config.yaml
-
- - ansible.builtin.include_tasks: _populate_config.yaml
-
- - name: Deleted (all routes)
- cisco.nxos.nxos_static_routes: &deleted
- state: deleted
- register: result
-
- - name: Gather static_routes post facts
- cisco.nxos.nxos_facts: *facts
-
- - ansible.builtin.assert:
- that:
- - "'vrf context trial_vrf' in result.commands"
- - "'no ip route 192.0.2.64/28 192.0.2.22 tag 4' in result.commands"
- - "'no ip route 192.0.2.64/28 192.0.2.23 name merged_route 1' in result.commands"
- - "'configure terminal' in result.commands"
- - "'no ip route 192.0.2.16/28 192.0.2.24 name new_route' in result.commands"
- - "'no ip route 192.0.2.80/28 192.0.2.26 tag 12' in result.commands"
- - "result.changed == true"
- - "result.commands | length == 6"
-
- - name: Idempotence - deleted
- cisco.nxos.nxos_static_routes: *deleted
- register: result
-
- - ansible.builtin.assert:
- that:
- - "result.changed == false"
-
always:
- ansible.builtin.include_tasks: _remove_config.yaml
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/merged.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/merged.yml
index 6ba0a1b6a..11b748793 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/merged.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/merged.yml
@@ -18,11 +18,9 @@
next_hops:
- forward_router_address: 192.0.2.22
tag: 4
-
- forward_router_address: 192.0.2.23
route_name: merged_route
admin_distance: 1
-
- address_families:
- afi: ipv4
routes:
@@ -30,7 +28,6 @@
next_hops:
- forward_router_address: 192.0.2.24
route_name: new_route
-
- dest: 192.0.2.80/28
next_hops:
- forward_router_address: 192.0.2.26
@@ -41,13 +38,12 @@
- ansible.builtin.assert:
that:
- "result.changed == true"
- - "'configure terminal' in result.commands"
- "'ip route 192.0.2.16/28 192.0.2.24 name new_route' in result.commands"
- "'ip route 192.0.2.80/28 192.0.2.26 tag 12' in result.commands"
- "'vrf context trial_vrf' in result.commands"
- "'ip route 192.0.2.64/28 192.0.2.22 tag 4' in result.commands"
- "'ip route 192.0.2.64/28 192.0.2.23 name merged_route 1' in result.commands"
- - "result.commands | length == 6"
+ - "result.commands | length == 5"
- name: Idempotence - merged
cisco.nxos.nxos_static_routes: *merged
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/overridden.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/overridden.yml
index ae03e947f..e90c3cfbb 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/overridden.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/overridden.yml
@@ -26,12 +26,11 @@
- forward_router_address: 192.0.2.23
route_name: overridden_route1
admin_distance: 3
-
- forward_router_address: 192.0.2.45
route_name: overridden_route2
dest_vrf: destinationVRF
interface: "{{ nxos_int2 }}"
-
+ - "{{ var_vrf_mgmt }}"
state: overridden
register: result
@@ -43,10 +42,9 @@
- "'no ip route 192.0.2.64/28 192.0.2.23 name merged_route 1' in result.commands"
- "'ip route 192.0.2.16/28 192.0.2.23 name overridden_route1 3' in result.commands"
- "'ip route 192.0.2.16/28 {{ nxos_int2 }} 192.0.2.45 vrf destinationVRF name overridden_route2' in result.commands"
- - "'configure terminal' in result.commands"
- "'no ip route 192.0.2.16/28 192.0.2.24 name new_route' in result.commands"
- "'no ip route 192.0.2.80/28 192.0.2.26 tag 12' in result.commands"
- - "result.commands | length == 8"
+ - "result.commands | length == 7"
- name: Idempotence - overridden
cisco.nxos.nxos_static_routes: *overridden
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/parsed.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/parsed.yml
index 32cd5bd83..8590c4e3f 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/parsed.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/parsed.yml
@@ -2,7 +2,7 @@
- ansible.builtin.debug:
msg: "Start nxos_static_routes parsed tests connection={{ ansible_connection }}"
-- name: Parsed
+- name: Parsed test
cisco.nxos.nxos_static_routes: &parsed
running_config: |
ip route 192.0.2.16/28 192.0.2.24 name new_route
@@ -13,14 +13,8 @@
state: parsed
register: result
-- ansible.builtin.assert:
+- name: Assert parsed test
+ ansible.builtin.assert:
that:
- "result.changed == false"
- "result.parsed == parsed"
-
-- name: Idempotence - parsed
- cisco.nxos.nxos_static_routes: *parsed
- register: result
-
-- ansible.builtin.assert:
- that: "result.changed == false"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rendered.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rendered.yml
index 2348a64b6..99581bb11 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rendered.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rendered.yml
@@ -14,7 +14,6 @@
- forward_router_address: 2001:db8::1001
route_name: rendered_route
admin_distance: 3
-
- address_families:
- afi: ipv4
routes:
@@ -22,7 +21,6 @@
next_hops:
- forward_router_address: 192.0.2.24
route_name: new_route
-
- dest: 192.0.2.80/28
next_hops:
- forward_router_address: 192.0.2.26
@@ -33,12 +31,11 @@
- ansible.builtin.assert:
that:
- "result.changed == false"
- - "'configure terminal' in result.rendered"
- "'ip route 192.0.2.16/28 192.0.2.24 name new_route' in result.rendered"
- "'ip route 192.0.2.80/28 192.0.2.26 tag 12' in result.rendered"
- "'vrf context trial_vrf' in result.rendered"
- "'ipv6 route 2001:db8:12::/32 2001:db8::1001 name rendered_route 3' in result.rendered"
- - "result.rendered | length == 5"
+ - "result.rendered | length == 4"
- name: Idempotence - rendered
nxos_static_routes: *rendered
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/replaced.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/replaced.yml
index 73c122198..ca61c48e5 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/replaced.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/replaced.yml
@@ -23,7 +23,6 @@
- forward_router_address: 192.0.2.23
route_name: replaced_route1
admin_distance: 3
-
- forward_router_address: 192.0.2.45
route_name: replaced_route2
dest_vrf: destinationVRF
@@ -34,7 +33,6 @@
- ansible.builtin.assert:
that:
- "result.changed == true"
- - "'configure terminal' in result.commands"
- "'no ip route 192.0.2.16/28 192.0.2.24 name new_route' in result.commands"
- "'ip route 192.0.2.16/28 192.0.2.23 name replaced_route1 3' in result.commands"
- "'ip route 192.0.2.16/28 {{ nxos_int2 }} 192.0.2.45 vrf destinationVRF name replaced_route2' in result.commands"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rtt.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rtt.yml
index 1ee36a936..24b9fe9cf 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rtt.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/tests/common/rtt.yml
@@ -16,11 +16,9 @@
- forward_router_address: 192.0.2.32
route_name: test_route1
tag: 14
-
- forward_router_address: 192.0.2.48
route_name: test_route2
admin_distance: 2
-
- vrf: trial_vrf
address_families:
- afi: ipv4
@@ -51,6 +49,7 @@
- forward_router_address: 192.0.2.55
tag: 1
admin_distance: 1
+ - "{{ var_vrf_mgmt }}"
state: overridden
register: result
@@ -58,13 +57,12 @@
ansible.builtin.assert:
that:
- "result.changed == true"
- - "'configure terminal' in result.commands"
- "'no ip route 192.0.2.36/30 192.0.2.32 name test_route1 tag 14' in result.commands"
- "'no ip route 192.0.2.36/30 192.0.2.48 name test_route2 2'"
- "'ip route 192.0.2.44/30 192.0.2.55 tag 1 1' in result.commands"
- "'vrf context trial_vrf' in result.commands"
- "'no ip route 192.0.2.32/30 192.0.2.105 vrf test_dest_vrf' in result.commands"
- - "result.commands | length == 6"
+ - "result.commands | length == 5"
- name: Revert back to base configuration
cisco.nxos.nxos_static_routes:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/vars/main.yml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/vars/main.yml
index 958773252..82b180899 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/vars/main.yml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_static_routes/vars/main.yml
@@ -1,24 +1,24 @@
---
-"parsed":
- - "address_families":
- - "afi": "ipv4"
- "routes":
- - "dest": "192.0.2.64/28"
- "next_hops":
- - "forward_router_address": "192.0.2.22"
- "tag": 4
- - "admin_distance": 1
- "forward_router_address": "192.0.2.23"
- "route_name": "merged_route"
- "vrf": "trial_vrf"
- - "address_families":
- - "afi": "ipv4"
- "routes":
- - "dest": "192.0.2.16/28"
- "next_hops":
- - "forward_router_address": "192.0.2.24"
- "route_name": "new_route"
- - "dest": "192.0.2.80/28"
- "next_hops":
- - "forward_router_address": "192.0.2.26"
- "tag": 12
+parsed:
+ - address_families:
+ - afi: ipv4
+ routes:
+ - dest: 192.0.2.16/28
+ next_hops:
+ - forward_router_address: 192.0.2.24
+ route_name: new_route
+ - dest: 192.0.2.80/28
+ next_hops:
+ - forward_router_address: 192.0.2.26
+ tag: 12
+ - address_families:
+ - afi: ipv4
+ routes:
+ - dest: 192.0.2.64/28
+ next_hops:
+ - forward_router_address: 192.0.2.22
+ tag: 4
+ - admin_distance: 1
+ forward_router_address: 192.0.2.23
+ route_name: merged_route
+ vrf: trial_vrf
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_system/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/cli.yaml
index 311e39414..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/cli.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/nxapi.yaml
index 18bf1b6ef..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_telemetry/tasks/nxapi.yaml
@@ -22,7 +22,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_udld_interface/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_user/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/cli.yaml
index 9e4fb34bc..e3e64747b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/cli.yaml
@@ -23,7 +23,7 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vlans/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/cli.yaml
index f6096901f..988ef2894 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vpc_interface/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/cli.yaml
index f6096901f..988ef2894 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_af/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrf_interface/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vrrp/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vsan/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vsan/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vsan/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vsan/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/nxapi.yaml
index b4ed55204..74961c395 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_domain/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/nxapi.yaml
index b4ed55204..5fec0f43b 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_password/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/nxapi.yaml
index b4ed55204..74961c395 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vtp_version/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/nxapi.yaml
index b4ed55204..74961c395 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/nxapi.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/nxapi.yaml
index b4ed55204..6a7129481 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/nxapi.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_vxlan_vtep_vni/tasks/nxapi.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.httpapi)
+- name: Run test cases with connection httpapi
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.httpapi
- connection: "{{ nxapi }}"
diff --git a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_zone_zoneset/tasks/cli.yaml b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_zone_zoneset/tasks/cli.yaml
index f6096901f..d3d521f2a 100644
--- a/ansible_collections/cisco/nxos/tests/integration/targets/nxos_zone_zoneset/tasks/cli.yaml
+++ b/ansible_collections/cisco/nxos/tests/integration/targets/nxos_zone_zoneset/tasks/cli.yaml
@@ -22,11 +22,10 @@
ansible.builtin.set_fact:
test_items: "{{ test_cases.files | map(attribute='path') | list }}"
-- name: Run test cases (connection=ansible.netcommon.network_cli)
+- name: Run test cases with connection network_cli
ansible.builtin.include_tasks: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
vars:
ansible_connection: ansible.netcommon.network_cli
- connection: "{{ cli }}"