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/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
5 years ago
..
aireos Update bare exceptions to specify Exception. 6 years ago
aruba Update bare exceptions to specify Exception. 6 years ago
asa ASA network/service object-group module (#52925) 6 years ago
basics code clean of old code from network modules updates (#21469) 8 years ago
checkpoint Add checkpoint_session module (#50930) 6 years ago
cli Add backup parameter to cli_config (#50206) 6 years ago
cloudvision Ensure that current uses of BaseException are required 6 years ago
cnos The module fails on switchport. Check added to fix. (#54970) 6 years ago
cumulus Remove wildcard import in test_nclu 7 years ago
dellos6 Update bare exceptions to specify Exception. 6 years ago
dellos9 Update bare exceptions to specify Exception. 6 years ago
dellos10 Update bare exceptions to specify Exception. 6 years ago
edgeos Update bare exceptions to specify Exception. 6 years ago
edgeswitch new network module: edgeswitch_vlan (#48041) 6 years ago
enos Update bare exceptions to specify Exception. 6 years ago
eos New module for BGP configuration management in Arista EOS (#52722) 6 years ago
exos Exos httpapi (#54405) 6 years ago
f5 Rename _facts -> _info (#57028) 5 years ago
fortimanager FortiManager Plugin Module Conversion: fmgr_ha (#52768) 6 years ago
frr frr: New module for BGP configuration management (#51281) 6 years ago
ftd Add latest updates from FTD Ansible downstream repository. (#53638) 6 years ago
ingate modules: network: ingate: Add module ig_store_edit (#47675) 6 years ago
ios Revert nxos, ios, iosxr return_timestamps (#56206) 6 years ago
iosxr Revert nxos, ios, iosxr return_timestamps (#56206) 6 years ago
ironware Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
itential itential iap_start_workflow module (#51238) 6 years ago
junos Add platform facts in network facts modules (#51434) 6 years ago
netact Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
netscaler Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
netvisor Pluribus Networks ipv6security raguard port module with UT (#57033) 5 years ago
nos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
nso NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981) 6 years ago
nuage Replace nose with pytest 6 years ago
nxos nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 5 years ago
onyx Adding New Model onyx_qos for Configuring QoS on Onyx Switches (#55127) 5 years ago
opx opx_cps_changes (#51952) 6 years ago
ovs Update bare exceptions to specify Exception. 6 years ago
radware Changing the license to Apache 2 5 years ago
routeros Update bare exceptions to specify Exception. 6 years ago
slxos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
voss Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 6 years ago
vyos Add platform facts in network facts modules (#51434) 6 years ago
__init__.py adds new module net_command for network devices (#19468) 8 years ago