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
The cisco.ios.ios_vlans resource module fails with state replaced and overridden for Catalyst 9k devices running IOS-XE when altering or deleting vlans because it tries to execute the none-existing vlan configuration command no mtu 1500.
I expect the module to replace the vlan configuration for the provided vlan(s) in the task.
ACTUAL RESULTS
If the vlan is already present; the module fails because it tries to execute the command no mtu 1500 which is not a valid command in Cisco IOS-XE.
fatal: [dev-leaf-1]: FAILED! => {"changed": false,"module_stderr": "no mtu 1500\r\nno mtu 1500\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\ndev-leaf-1(config-vlan)#","module_stdout": "","msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"}
The text was updated successfully, but these errors were encountered:
jiholland
changed the title
cisco.ios.ios_vlans mtu bug for state replaced and overridden on the Catalyst 9k platformcisco.ios.ios_vlans mtu bug for state replaced and overridden on the Catalyst 9k platform
Nov 27, 2024
SUMMARY
The
cisco.ios.ios_vlans
resource module fails with statereplaced
andoverridden
for Catalyst 9k devices running IOS-XE when altering or deleting vlans because it tries to execute the none-existing vlan configuration commandno mtu 1500
.ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_vlans
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Execute the provided example playbook on a Catalyst 9k device running IOS-XE 17.X.
EXPECTED RESULTS
I expect the module to replace the vlan configuration for the provided vlan(s) in the task.
ACTUAL RESULTS
If the vlan is already present; the module fails because it tries to execute the command
no mtu 1500
which is not a valid command in Cisco IOS-XE.The text was updated successfully, but these errors were encountered: