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
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
..
cli Remove unused internal -a argument and functionality (#52602) 7 years ago
compat
config
contrib
errors
executor Move type checking methods out of basic.py and add unit tests (#53687) 7 years ago
inventory_test_data/group_vars
mock Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
module_utils [stable-2.8] Ensure uri module always returns status even on failure (#56240) 7 years ago
modules nxos_vlan purge fix 2.8 (#57442) 7 years ago
parsing
playbook Don't pollute include_variables (#54687) 7 years ago
plugins Fix tests for the psrp connection plugin (#55061) 7 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 7 years ago
template
utils
vars Fix inventory cache interface (#50446) 7 years ago
__init__.py
ansible.cfg
conftest.py Update handling of the non_local test alias. 7 years ago
test_constants.py
test_context.py