ansible/test/units/modules
Chris Van Heuveln 6bb13bbb84 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
2019-06-04 09:14:09 +05:30
..
cloud route53_zone: return existing zone id in check mode (#56702) 2019-05-24 16:28:55 +05:30
crypto New LUKS devices management module (#48991) 2019-02-15 09:25:14 +00:00
files
messaging Rabbitmq user permission fixes (#49404) 2018-12-07 13:19:08 +00:00
monitoring Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
net_tools Hetzner failover IP: refactoring (#56203) 2019-05-10 08:33:51 +02:00
network nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 2019-06-04 09:14:09 +05:30
notification Add support for hex color in slack module (#49804) 2018-12-12 08:41:49 +00:00
packaging rename rhsm_repository_release to rhsm_release (#53430) 2019-03-21 10:21:45 -05:00
remote_management Fix test_oneview_ethernet_network unit test. 2019-03-20 22:13:26 -07:00
source_control Add Bitbucket Pipelines SSH key pair module (#54241) 2019-03-29 14:13:59 +01:00
storage NetApp ONTAP module for manage ipspaces (#49821) 2019-05-10 11:24:02 -04:00
system pamd: fix idempotence issue when removing rules (#54105) 2019-04-01 10:18:33 -04:00
web_infrastructure Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
__init__.py
conftest.py fix missing attribs with dirct module execution (#53875) 2019-04-04 09:59:52 -04:00
utils.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00