CiscoDevNet / ansible-dcnm

Apache License 2.0
46 stars 36 forks source link

when the `state` is `overridden` in the `dcnm_interface` module, default policy of `leaf` should be trunk #282

Closed dsx1123 closed 5 months ago

dsx1123 commented 6 months ago

Community Note

Ansible Version and collection version

NDFC version

Affected module(s)

Ansible Playbook

# Copy-paste your anisble playbook here 
---
- hosts: ndfc2
  gather_facts: false
  vars:
    fabric: "{{ fabric2 }}"
  tasks:
    - name: Test interface overridden
      cisco.dcnm.dcnm_interface:
        fabric: "{{ fabric.name }}"
        state: overridden
        config: []

Debug Output

Expected Behavior

The ethernet interfaces of leaf switches should be reset to the trunk interface, but ethernet interfaces on the rest of the roles should be set to routed interfaces

Actual Behavior

Steps to Reproduce

References

mmudigon commented 6 months ago

@dsx1123 Hi Shangxin,

Will look into the issue and fix it

praveenramoorthy commented 5 months ago

Fixed as part of #287