You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration
Trishna Guha 30aba1a7fd nxos_vlan purge fix 2.8 (#57442)
* nxos_vlan: fix broken purge behavior (issue #57101) (#57229)

* nxos_vlan: fix broken purge behavior (issue #57101)

Symptoms/Analysis:
- `nxos_vlan` `purge: true` would fail when `purge` was trying to delete all unspecified vlans, including vlan 1.
- `nxos` devices do not allow removing vlan 1 and raise a cli exception error
- Previous fix #55144 caused a side effect when `purge` was used: vlan changes specified by `aggregate` were ignored; e.g.
 - vlan 4 is not present; playbook specifies `aggregate: { vlan: 4 }, purge: true`
 - results in proper purging but vlan 4 is not created

Solutions:
- ignore vlan 1 when purging
- remove the `not purge` check from state present logic

Added additional unit tests and integration tests.
Tested against all regression platforms.

* PEP fixes

* Add agg_show_vlan_brief.txt fixture

* Add warning for removing vlan 1

* change method name check

(cherry picked from commit 6bb13bbb84)

* changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
7 years ago
..
host_vars ansible-test: Use psrp for 2008 host ci_complete (#55273) 7 years ago
targets nxos_vlan purge fix 2.8 (#57442) 7 years ago
cloud-config-aws.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-azure.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-cloudscale.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-cs.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-gcp.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-gitlab.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-hcloud.ini.template Add Hetzner Cloud to CI integration tests. 7 years ago
cloud-config-hwc.yml.template cloud: huawei: Add new module hwc_network_vpc (#54102) 7 years ago
cloud-config-opennebula.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-openshift.kubeconfig.template Initial OpenShift integration test support. (#36207) 8 years ago
cloud-config-scaleway.ini.template Migrate Scaleway tests to integration tests 7 years ago
cloud-config-tower.ini.template Overhaul ansible-test cloud test plugins. (#53044) 7 years ago
cloud-config-vultr.ini.template tests: vultr: convert legacy tests to targets (#50156) 7 years ago
integration.cfg Force tests to set ansible_python_interpreter. (#54191) 7 years ago
integration_config.yml Fix pip integration test. 8 years ago
inventory Overhaul ansible-test code coverage and injector. (#53510) 7 years ago
inventory.networking.template Rename MSC modules to MSO nomenclature (#50959) 7 years ago
inventory.remote.template
inventory.winrm.template Cleanup integration test inventory. (#50753) 7 years ago
network-integration.cfg Enable force_handlers for integration tests. 7 years ago
target-prefixes.network Rename MSC modules to MSO nomenclature (#50959) 7 years ago
windows-integration.cfg Enable force_handlers for integration tests. 7 years ago