ansible/test/units/modules/network/nxos/fixtures
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
..
_nxos_switchport
nxos_acl
nxos_acl_interface
nxos_bgp
nxos_command
nxos_config
nxos_evpn_global
nxos_feature
nxos_interface
nxos_interface_ospf
nxos_l3_interface
nxos_nxapi
nxos_pim
nxos_pim_interface
nxos_pim_rp_address
nxos_vlan nxos_vlan: fix broken purge behavior (issue #57101) (#57229) 2019-06-04 09:14:09 +05:30
nxos_vpc
nxos_vpc_interface
nxos_vrf
nxos_vxlan_vtep
nxos_vxlan_vtep_vni
_nxos_ip_interface.cfg
nxos_evpn_vni_config.cfg
nxos_overlay_global_config.cfg
nxos_static_route.cfg
nxos_system_config.cfg