ansible/test/units/modules/network
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
..
aireos Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
aruba Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
asa ASA network/service object-group module (#52925) 2019-04-03 23:22:45 +05:30
basics
checkpoint Add checkpoint_session module (#50930) 2019-01-16 13:19:36 +01:00
cli Add backup parameter to cli_config (#50206) 2018-12-21 09:55:14 -05:00
cloudvision Ensure that current uses of BaseException are required 2018-12-16 15:03:19 -08:00
cnos The module fails on switchport. Check added to fix. (#54970) 2019-04-08 10:41:36 +05:30
cumulus Remove wildcard import in test_nclu 2017-10-09 21:41:02 -07:00
dellos6 Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
dellos9 Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
dellos10 Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
edgeos Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
edgeswitch new network module: edgeswitch_vlan (#48041) 2018-12-17 11:30:17 +05:30
enos Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
eos New module for BGP configuration management in Arista EOS (#52722) 2019-03-12 17:31:58 +05:30
exos Exos httpapi (#54405) 2019-03-27 14:44:04 +01:00
f5 Rename _facts -> _info (#57028) 2019-05-28 13:43:04 +02:00
fortimanager FortiManager Plugin Module Conversion: fmgr_ha (#52768) 2019-03-07 12:31:17 +05:30
frr frr: New module for BGP configuration management (#51281) 2019-03-04 15:02:56 +05:30
ftd Add latest updates from FTD Ansible downstream repository. (#53638) 2019-04-01 18:08:01 +05:30
ingate modules: network: ingate: Add module ig_store_edit (#47675) 2019-01-17 23:05:45 -05:00
ios Revert nxos, ios, iosxr return_timestamps (#56206) 2019-05-08 20:49:29 +05:30
iosxr Revert nxos, ios, iosxr return_timestamps (#56206) 2019-05-08 20:49:29 +05:30
ironware Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
itential itential iap_start_workflow module (#51238) 2019-03-07 13:23:40 -05:00
junos Add platform facts in network facts modules (#51434) 2019-03-11 10:56:39 +05:30
netact Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
netscaler Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
netvisor Pluribus Networks ipv6security raguard port module with UT (#57033) 2019-06-03 11:44:28 +05:30
nos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
nso NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981) 2019-02-25 14:17:56 +00:00
nuage Replace nose with pytest 2018-11-26 13:41:57 -08:00
nxos nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 2019-06-04 09:14:09 +05:30
onyx Adding New Model onyx_qos for Configuring QoS on Onyx Switches (#55127) 2019-05-17 14:20:56 -04:00
opx opx_cps_changes (#51952) 2019-03-07 03:41:36 -05:00
ovs Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
radware Changing the license to Apache 2 2019-05-20 10:14:32 -07:00
routeros Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
slxos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
voss Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
vyos Add platform facts in network facts modules (#51434) 2019-03-11 10:56:39 +05:30
__init__.py