cisco.nxos icon indicating copy to clipboard operation
cisco.nxos copied to clipboard

cisco.nxos.nxos_vxlan_vtep_vni: suppress_arp ignored if vni already exists

Open andrewbonney opened this issue 3 years ago • 1 comments

SUMMARY

If a VNI has already been associated with an NVE interface, the cisco.nxos.nxos_vxlan_vtep_vni module fails to apply changes to the suppress_arp parameter during subsequent operations.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

cisco.nxos.nxos_vxlan_vtep_vni

ANSIBLE VERSION
ansible 2.10.15
  config file = ....
  configured module search path = ['....']
  ansible python module location = /..../python3.8/site-packages/ansible
  executable location = /..../venv/bin/ansible
  python version = 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]

COLLECTION VERSION
# /..../collections/ansible_collections
Collection Version
---------- -------
cisco.nxos 2.7.1
CONFIGURATION

OS / ENVIRONMENT

NXOS 9.3(3) Nexus 92160

STEPS TO REPRODUCE
  1. Associate a VNI with the NVE interface
- cisco.nxos.nxos_vxlan_vtep_vni:
    interface: "nve1"
    vni: "1003000"
    multicast_group: "239.0.0.1"
  1. Re-run the above, but with suppress_arp now defined
- cisco.nxos.nxos_vxlan_vtep_vni:
    interface: "nve1"
    vni: "1003000"
    multicast_group: "239.0.0.1"
    suppress_arp: "yes"
EXPECTED RESULTS

NVE interface is changed with config as follows:

member vni 1003000
  mcast-group 239.0.0.1
  suppress-arp
ACTUAL RESULTS

The switch config remains unchanged from when the VNI was originally set up. No changes are identified in the second Ansible run.

member vni 1003000
  mcast-group 239.0.0.1

If the suppress_arp parameter was included in the initial module run the config would have applied correctly, but any future changes to its value are not possible.

andrewbonney avatar Nov 19 '21 16:11 andrewbonney

I can confirm that also changing the suppress-arp from true to false doesn't change anything. The suppress-arp command stays in config of the switch under configured nve-interface.

saruter avatar Nov 04 '22 22:11 saruter