community.general/lib/ansible/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 cloud/amazon/aws_config_recorder: add empty resourceTypes list if undefined (#50286) 2019-06-03 15:45:38 -07:00
clustering First batch _facts -> _info rename. (#56822) 2019-05-27 18:17:42 +02:00
commands [doc] expect module: mention all parameter types (#56394) 2019-05-14 09:06:00 -05:00
crypto openssl_pkcs12: fix crash due to wrong path used for loading key in check mode (#56808) 2019-05-22 23:34:42 +02:00
database postgresql_db: add note to doc about pg_dump (#57297) 2019-06-03 05:19:06 -04:00
files Add find module patterns option use cases documentation (#57089) 2019-06-03 10:00:15 -05:00
identity New module: keycloak_group (#35637) 2019-04-10 15:58:20 -04:00
inventory utilities: Clean up parameter types and add seealso (#53063) 2019-03-07 00:25:59 +01:00
messaging Update rabbitmq_queue.py (#56912) 2019-05-29 13:57:05 -05:00
monitoring Added sort option for zabbix_screen module (#56237) 2019-06-03 21:23:20 +02:00
net_tools Fixes typo in get_url (#57305) 2019-06-03 20:36:48 +05:30
network nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 2019-06-04 09:14:09 +05:30
notification modules/notification/irc: Fix channel joining for some IRC servers. (#55444) 2019-04-17 18:55:43 -04:00
packaging apt_repository: Fix crash caused by cache.update() raising an IOError on timeout. (#51996) 2019-05-29 15:59:51 -04:00
remote_management redfish: refactor service_root variable (#56198) 2019-05-23 10:57:22 +02:00
source_control Fixed error handling in github_issue module (#39652) 2019-05-15 02:35:11 -04:00
storage Fix workload profileId indexing in netapp_e_volume module (#56747) 2019-05-22 09:43:21 -04:00
system Fix CI issue 2019-05-31 14:12:20 -04:00
utilities Update include_role description (#56001) 2019-05-06 16:17:50 -04:00
web_infrastructure tower_credential: ssh_key_data isn't a path anymore (#57113) 2019-05-29 11:15:45 -05:00
windows Fix win_iis_virtualdirectory to remove a virtual directory that contains children (#56569) 2019-05-29 05:59:50 +10:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00