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
State "replaced" for the collection "eos_static_routes" is not working as described in the documentation. It is working exactly the same way as state "merged".
If we don't have any static routes on the target switch, it works as expected. It configures both routes.
We have an issue if there is a third route configured on the switch, for example:
ip route 0.0.0.0/0 172.16.16.1
ip route 10.1.1.2/32 172.16.16.1
ip route 10.10.0.0/16 172.16.16.1
The expectation is that "ip route 10.1.1.2/32 172.16.16.1" has to be deleted. Unfortunately, it is not
ACTUAL RESULTS
As you can see below, in the "before" stage it sees that we have 3 routes on the switch and even though the desired state is to have only two the play does not delete the unnecessary one.
The documentation for the collection says that it should delete the third (and any unwanted) route.
SUMMARY
State "replaced" for the collection "eos_static_routes" is not working as described in the documentation. It is working exactly the same way as state "merged".
ISSUE TYPE
COMPONENT NAME
arista.eos.eos_static_routes
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Arista vEOS-lab
Software image version: 4.31.1F
STEPS TO REPRODUCE
I have the following play
EXPECTED RESULTS
If we don't have any static routes on the target switch, it works as expected. It configures both routes.
We have an issue if there is a third route configured on the switch, for example:
ip route 0.0.0.0/0 172.16.16.1
ip route 10.1.1.2/32 172.16.16.1
ip route 10.10.0.0/16 172.16.16.1
The expectation is that "ip route 10.1.1.2/32 172.16.16.1" has to be deleted. Unfortunately, it is not
ACTUAL RESULTS
As you can see below, in the "before" stage it sees that we have 3 routes on the switch and even though the desired state is to have only two the play does not delete the unnecessary one.
The documentation for the collection says that it should delete the third (and any unwanted) route.
The text was updated successfully, but these errors were encountered: