Closed ivanchakarov closed 3 months ago
Hey @ivanchakarov , The issue is actually caused due the name
attribute being just a number. The name attribute value should be either a shorthand like po6
or full string Port-Channel6
.
For example:
---
- name: Test play
hosts: vbox-switch
tasks:
- name: Configuring the LAG ports
arista.eos.eos_lag_interfaces:
config:
- name: po6 # or Port-Channel6
members:
- member: Ethernet3
mode: active
This will be idempotent.
A documentation update is incoming and will be updated.
Thank you!
SUMMARY
I'm trying to create a playbook which should configure a LAG on a switch port and then should control whether the switches configuration is matching the desired one in the playbook.
ISSUE TYPE
COMPONENT NAME
eos_lag_interfaces
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Execute the following simple palybook two times:
EXPECTED RESULTS
The first run always completes as expected. The command "channel-group 6 mode active" is applied to interface Ethernet3. The expectation is that when we run the same playbook again, Ansible should report that no changes have to be applied.
ACTUAL RESULTS
Unfortunately, on the second run (and every following) Ansible reports that it needs to apply the same command again. As you can see the "before" and "after" states are identical but "changed" is "true".