mirror of https://github.com/ansible/ansible.git
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.
* 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
|
7 years ago | |
|---|---|---|
| .. | ||
| host_vars | 7 years ago | |
| targets | 7 years ago | |
| cloud-config-aws.ini.template | 7 years ago | |
| cloud-config-azure.ini.template | 7 years ago | |
| cloud-config-cloudscale.ini.template | 7 years ago | |
| cloud-config-cs.ini.template | 7 years ago | |
| cloud-config-gcp.ini.template | 7 years ago | |
| cloud-config-gitlab.ini.template | 7 years ago | |
| cloud-config-hcloud.ini.template | 7 years ago | |
| cloud-config-hwc.yml.template | 7 years ago | |
| cloud-config-opennebula.ini.template | 7 years ago | |
| cloud-config-openshift.kubeconfig.template | 8 years ago | |
| cloud-config-scaleway.ini.template | 7 years ago | |
| cloud-config-tower.ini.template | 7 years ago | |
| cloud-config-vultr.ini.template | 7 years ago | |
| integration.cfg | 7 years ago | |
| integration_config.yml | 8 years ago | |
| inventory | 7 years ago | |
| inventory.networking.template | 7 years ago | |
| inventory.remote.template | ||
| inventory.winrm.template | 7 years ago | |
| network-integration.cfg | 7 years ago | |
| target-prefixes.network | 7 years ago | |
| windows-integration.cfg | 7 years ago | |