You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With tag 'delete1' (state: deleted) it clears the name, state, mtu of the VLAN and shuts it down but leaves the VLAN present
With tag 'delete2' (state: purged) it runs 'no vlan configuration 812' which with an unconfigured VLAN does nothing but leaves the VLAN present.
Trying a different approach, 'delete3' (state: deleted using ios_interfaces instead, also tried this with state: purged) it doesn't even seem to detect there's a VLAN that needs deleting and does nothing at all. The documentation shows an example using a VLAN.
I don't know whether it's a bug, or simply that I'm not using the right modules. There's no documentation that I could see on the ios_vlans page to say what should happen with state: purged, and examples for state: deleted that show it actually deleting the VLAN. I'm just making the assumption here that one of these methods ought to delete the VLAN that the same module created.
The text was updated successfully, but these errors were encountered:
SUMMARY
None of the methods I'd expect to delete a VLAN actually delete it from the switch.
ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_vlans
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04 running in venv
test switch Cisco 2960 running IOS 15.0(2)SE11
STEPS TO REPRODUCE
On switch create a VLAN, let's use ID 812.
Run the below playbook, using the different tags to try different methods.
EXPECTED RESULTS
One of the methods to actually delete the VLAN.
ACTUAL RESULTS
With tag 'delete1' (state: deleted) it clears the name, state, mtu of the VLAN and shuts it down but leaves the VLAN present
With tag 'delete2' (state: purged) it runs 'no vlan configuration 812' which with an unconfigured VLAN does nothing but leaves the VLAN present.
Trying a different approach, 'delete3' (state: deleted using ios_interfaces instead, also tried this with state: purged) it doesn't even seem to detect there's a VLAN that needs deleting and does nothing at all. The documentation shows an example using a VLAN.
I don't know whether it's a bug, or simply that I'm not using the right modules. There's no documentation that I could see on the ios_vlans page to say what should happen with state: purged, and examples for state: deleted that show it actually deleting the VLAN. I'm just making the assumption here that one of these methods ought to delete the VLAN that the same module created.
The text was updated successfully, but these errors were encountered: