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
-
ansible [core 2.19.3]
-
cisco.dcnm 3.9.1
DCNM version
- V 4.1.1g (tested also on 3.2.2)
Affected module(s)
Ansible Playbook
- name: Add Networks (Vxlans) and attach to Spines
when: networks != None
cisco.dcnm.dcnm_network:
fabric: "{{ fabric_settings.FABRIC_NAME }}"
config: "{{ networks }}"
state: merged
Debug Output
https://gist.github.com/FloBLeman/c17a01e1c112e18cae14129ad561af26
Expected Behavior
The network, already created before and renamed, should have his attributes modified (Network description for my case but why not Network name 😉 )
Actual Behavior
Failure with following error: A network with id already exists
Steps to Reproduce
Rename a Network inside NDFC Gui or try to rename inside YAML
References
When you rename a Network inside NDFC, there is in reality 2 attributes behind the GUI :
NDFC LAN Fabric API Reference: https://developer.cisco.com/docs/nexus-dashboard-fabric-controller/latest/api-reference-lan/
=> Look at POST /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/top-down/fabrics/{fabric-name}/networks
Community Note
Ansible Version and collection version
ansible [core 2.19.3]
cisco.dcnm 3.9.1
DCNM version
Affected module(s)
Ansible Playbook
Debug Output
https://gist.github.com/FloBLeman/c17a01e1c112e18cae14129ad561af26
Expected Behavior
The network, already created before and renamed, should have his attributes modified (Network description for my case but why not Network name 😉 )
Actual Behavior
Failure with following error: A network with id already exists
Steps to Reproduce
Rename a Network inside NDFC Gui or try to rename inside YAML
References
When you rename a Network inside NDFC, there is in reality 2 attributes behind the GUI :
NDFC LAN Fabric API Reference: https://developer.cisco.com/docs/nexus-dashboard-fabric-controller/latest/api-reference-lan/
=> Look at POST /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/top-down/fabrics/{fabric-name}/networks