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/units/modules
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
..
cloud kubevirt_vm: Improve create VM from template (#56833) 7 years ago
crypto New LUKS devices management module (#48991) 7 years ago
files Fixes #34893 (#40166) 8 years ago
messaging Rabbitmq user permission fixes (#49404) 7 years ago
monitoring Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
net_tools Added support for infoblox member object (#53174) 7 years ago
network nxos_vlan purge fix 2.8 (#57442) 7 years ago
notification Add support for hex color in slack module (#49804) 7 years ago
packaging rename rhsm_repository_release to rhsm_release (#53430) 7 years ago
remote_management Fix test_oneview_ethernet_network unit test. 7 years ago
source_control Add Bitbucket Pipelines SSH key pair module (#54241) 7 years ago
storage Backport/2.8/57135 (#57137) 7 years ago
system pamd: fix idempotence issue when removing rules (#54105) 7 years ago
web_infrastructure Python 3.8 collections compatibility fixes. 7 years ago
__init__.py
conftest.py fix missing attribs with dirct module execution (#53875) 7 years ago
utils.py Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago