Run a play which configures VRFs and assign interfaces to it. The play works as expected if this is new configuration. Unfortunately, if the configuration is already present on the device, it doesn't care and push the same changes. For example we already have the following configuration applied on a switch and we run the task:
interface Vlan10
vrf blue_vrf
ip address 10.1.1.1/30
!
interface Vlan20
vrf red_vrf
ip address 10.1.2.1/30
SUMMARY
The "eos_vrf" doesn't work corectly. It does not check what is configured on the device and always makes changes.
ISSUE TYPE
COMPONENT NAME
arista.eos.eos_snmp_vrf
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Arista vEOS-lab Software image version: 4.31.1F
STEPS TO REPRODUCE
Run a play which configures VRFs and assign interfaces to it. The play works as expected if this is new configuration. Unfortunately, if the configuration is already present on the device, it doesn't care and push the same changes. For example we already have the following configuration applied on a switch and we run the task:
EXPECTED RESULTS
I expect that Ansible checks the running configuration of the switch, sees that the configuration is already there and does nothing.
ACTUAL RESULTS