ansible-dcnm icon indicating copy to clipboard operation
ansible-dcnm copied to clipboard

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

Open dsx1123 opened this issue 10 months ago • 1 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Ansible Version and collection version

NDFC version

  • V 12.1.3e

Affected module(s)

  • dcnm_interface

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

dsx1123 avatar Apr 09 '24 05:04 dsx1123

@dsx1123 Hi Shangxin,

Will look into the issue and fix it

mmudigon avatar Apr 09 '24 05:04 mmudigon

Fixed as part of #287

praveenramoorthy avatar Jun 03 '24 11:06 praveenramoorthy