mirror of https://github.com/ansible/ansible.git
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.
* 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
|
7 years ago | |
|---|---|---|
| .. | ||
| fixtures | 7 years ago | |
| __init__.py | 9 years ago | |
| nxos_module.py | 7 years ago | |
| test_nxos_acl.py | 7 years ago | |
| test_nxos_acl_interface.py | 7 years ago | |
| test_nxos_banner.py | 7 years ago | |
| test_nxos_bgp.py | 7 years ago | |
| test_nxos_bgp_af.py | 7 years ago | |
| test_nxos_bgp_neighbor.py | 7 years ago | |
| test_nxos_bgp_neighbor_af.py | 7 years ago | |
| test_nxos_command.py | 7 years ago | |
| test_nxos_config.py | 7 years ago | |
| test_nxos_evpn_global.py | 7 years ago | |
| test_nxos_evpn_vni.py | 7 years ago | |
| test_nxos_feature.py | 7 years ago | |
| test_nxos_hsrp.py | 7 years ago | |
| test_nxos_interface.py | 7 years ago | |
| test_nxos_interface_ospf.py | 7 years ago | |
| test_nxos_ip_interface.py | 7 years ago | |
| test_nxos_l3_interface.py | 7 years ago | |
| test_nxos_nxapi.py | 7 years ago | |
| test_nxos_ospf.py | 7 years ago | |
| test_nxos_ospf_vrf.py | 7 years ago | |
| test_nxos_overlay_global.py | 7 years ago | |
| test_nxos_pim.py | 7 years ago | |
| test_nxos_pim_interface.py | 7 years ago | |
| test_nxos_pim_rp_address.py | 7 years ago | |
| test_nxos_portchannel.py | 7 years ago | |
| test_nxos_static_route.py | 7 years ago | |
| test_nxos_switchport.py | 7 years ago | |
| test_nxos_system.py | 7 years ago | |
| test_nxos_vlan.py | 7 years ago | |
| test_nxos_vpc.py | 7 years ago | |
| test_nxos_vpc_interface.py | 7 years ago | |
| test_nxos_vrf.py | 7 years ago | |
| test_nxos_vrf_af.py | 7 years ago | |
| test_nxos_vxlan_vtep.py | 7 years ago | |
| test_nxos_vxlan_vtep_vni.py | 7 years ago | |