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
When you have multiple IPv4 addresses on an interface and you want to remove the one that is primary (promoting one of current secondary addresses to primary), the module does not complete this action successfully but does not report any errors. This happens because Cisco IOS does not allow removing a primary address when there are secondary addresses on the interface.
Controller node: Ubuntu 22.04
Managed network device: Cisco C9500-48Y4C, IOS XE Version 17.7.1 (other models and versions also affected, possibly all IOS)
STEPS TO REPRODUCE
Start with this configuration on router:
#sh run int Vlan111
Building configuration...
Current configuration : 106 bytes
!
interface Vlan111
ip address 10.0.22.1 255.255.255.0 secondary
ip address 10.0.1.1 255.255.255.0
end
interface Vlan111
ip address 10.0.22.1 255.255.255.0 secondary
ip address 10.0.1.1 255.255.255.0
end
If you try to run commands that module generates manually you get an error and command is rejected:
myrouter#sh run int Vlan111
Building configuration...
Current configuration : 106 bytes
!
interface Vlan111
ip address 10.0.22.1 255.255.255.0 secondary
ip address 10.0.1.1 255.255.255.0
end
myrouter#conf t
Enter configuration commands, one per line. End with CNTL/Z.
myrouter(config)#interface Vlan111
myrouter(config-if)#no ip address 10.0.1.1 255.255.255.0
Must delete secondary before deleting primary
myrouter(config-if)#end
myrouter#sh run int Vlan111
Building configuration...
Current configuration : 106 bytes
!
interface Vlan111
ip address 10.0.22.1 255.255.255.0 secondary
ip address 10.0.1.1 255.255.255.0
end
The text was updated successfully, but these errors were encountered:
SUMMARY
When you have multiple IPv4 addresses on an interface and you want to remove the one that is primary (promoting one of current secondary addresses to primary), the module does not complete this action successfully but does not report any errors. This happens because Cisco IOS does not allow removing a primary address when there are secondary addresses on the interface.
ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_l3_interfaces
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Controller node: Ubuntu 22.04
Managed network device: Cisco C9500-48Y4C, IOS XE Version 17.7.1 (other models and versions also affected, possibly all IOS)
STEPS TO REPRODUCE
Start with this configuration on router:
Run the following playbook:
EXPECTED RESULTS
Expected router config:
ACTUAL RESULTS
Verbose output from task:
Actual config on router:
If you try to run commands that module generates manually you get an error and command is rejected:
The text was updated successfully, but these errors were encountered: