Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco.nxos.nxos_evpn_vni does not show proper state in check mode #883

Open
heathdbrown opened this issue Aug 10, 2024 · 0 comments · May be fixed by #884
Open

cisco.nxos.nxos_evpn_vni does not show proper state in check mode #883

heathdbrown opened this issue Aug 10, 2024 · 0 comments · May be fixed by #884
Labels
has_pr This issue has an associated PR.

Comments

@heathdbrown
Copy link

SUMMARY

Running --check when using a playbook leveraging cixo.nxos.nxos_evpn_vni always shows not changed.

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.17.2]
  config file = None
  configured module search path = ['/home/omit/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/omit/network_automation/ansible/.venv/lib/python3.11/site-packages/ansible
  ansible collection location = /home/omit/.ansible/collections:/usr/share/ansible/collections
  executable location = .venv/bin/ansible
  python version = 3.11.3 (main, Aug 13 2023, 22:42:49) [GCC 11.3.0] (/home/omit/network_automation/ansible/.venv/bin/python)
  jinja version = 3.1.4
  libyaml = True
COLLECTION VERSION
Collection Version
---------- -------
cisco.nxos 9.1.0

CONFIGURATION
CONFIG_FILE() = None
OS / ENVIRONMENT

NXOS 9.3.12

STEPS TO REPRODUCE
ansible-playbook playbook.yaml -i inventory/hosts --check

---
- hosts: all
  connection: network_cli
  gather_facts: false

  tasks:
    - name: Add EVPN VNI
      cisco.nxos.nxos_evpn_vni:
          route_distinguisher: auto
          route_target_import: auto
          route_target_export: auto
          vni: 123456
EXPECTED RESULTS

When in --check mode when a change needs to be made and the return value has commands the result should show 'changed'.

changed: [switch] => "changed: true, "comands": ["evpn", "vni 123456" l2", "rd auto", "route-target import auto", "route-target export auto"]
ACTUAL RESULTS
ok: [switch] => "changed: true, "comands": ["evpn", "vni 123456" l2", "rd auto", "route-target import auto", "route-target export auto"]
@heathdbrown heathdbrown changed the title cisco.nxos.nxos_evpn_vni cisco.nxos.nxos_evpn_vni does not show proper state in check mode Aug 11, 2024
@KB-perByte KB-perByte added the has_pr This issue has an associated PR. label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has_pr This issue has an associated PR.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants