arista.eos icon indicating copy to clipboard operation
arista.eos copied to clipboard

cannot suppress idempotency warning in eos_config

Open fansari opened this issue 2 years ago • 0 comments

SUMMARY

When I remove an ACL from an Arista switch I always get this warning:

[WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the running configuration on device

I tried to get rid of this with "match: none" but this has no effect.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

eos_config

ANSIBLE VERSION
ansible [core 2.12.1]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.9 (main, Nov 22 2021, 00:00:00) [GCC 11.2.1 20211019 (Red Hat 11.2.1-6)]
  jinja version = 2.11.3
  libyaml = True
COLLECTION VERSION
arista.eos        4.1.1
CONFIGURATION
COLOR_ERROR(/etc/ansible/ansible.cfg) = bright red
DEFAULT_MANAGED_STR(/etc/ansible/ansible.cfg) = Ansible managed: modified on %Y-%m-%d %H:%M:%S
DISPLAY_SKIPPED_HOSTS(/etc/ansible/ansible.cfg) = False
TRANSFORM_INVALID_GROUP_CHARS(/etc/ansible/ansible.cfg) = always
OS / ENVIRONMENT

CentOS Stream 9 (docker container)

STEPS TO REPRODUCE
---
- name: remove ACL for vlan 20
  eos_config:
    lines:
    - no ip access-list vlan-20-in
    match: none
EXPECTED RESULTS

I don't expect to get a warning.

ACTUAL RESULTS
TASK [xxx.eos-acl : remove ACL for vlan 20] *****************************************************************************************
[WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the running configuration on device

fansari avatar Sep 08 '22 08:09 fansari