community.general/lib/ansible
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
..
cli ansible-vault: convert vault_password_files to list to prevent traceback (#57186) 2019-06-03 12:14:06 +02:00
compat Update bundled copy of selectors2 from 1.1.0 to 1.1.1 (#55457) 2019-04-23 11:52:24 -05:00
config Allow finer grained control for dupe YAML keys (#56933) 2019-05-28 11:57:16 -04:00
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
executor Plugin paths need to be sent in exectutor, too (#57126) 2019-05-31 11:44:42 -04:00
galaxy Update galaxy cli metadata file templates (#51398) 2019-02-22 00:54:02 -05:00
inventory The InventoryData class does not have a get_vars method and InventoryManager's get_vars never appears to have been used (#56804) 2019-05-22 13:56:47 -04:00
module_utils removed_module func: removed extra spaces from msg and docstring (#57209) 2019-06-03 10:00:19 -04:00
modules nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 2019-06-04 09:14:09 +05:30
parsing Allow finer grained control for dupe YAML keys (#56933) 2019-05-28 11:57:16 -04:00
playbook improve conditional warnings (#57190) 2019-06-03 12:12:32 +02:00
plugins New module postgresql_copy: copy data between a file and a table (#56835) 2019-06-03 19:11:50 +10:00
template Make query with errors='ignore' return a blank list (#57038) 2019-05-29 13:23:02 -04:00
utils some logging fixes (#56311) 2019-05-24 16:43:47 -04:00
vars Not native, but text (#55676) 2019-05-24 14:49:04 -04:00
__init__.py
constants.py removed previouslly deprecated settings (#55662) 2019-05-15 16:36:30 -04:00
context.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
release.py Cleanup the tree for post-2.8-branch 2019-04-12 12:57:35 -07:00