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

sda_layer3_virtual_networks_v1 PUT instead of POST #221

Open
WouterDePrins opened this issue Dec 18, 2024 · 3 comments
Open

sda_layer3_virtual_networks_v1 PUT instead of POST #221

WouterDePrins opened this issue Dec 18, 2024 · 3 comments

Comments

@WouterDePrins
Copy link

Name of the module
cisco.dnac.sda_layer3_virtual_networks_v1

Describe the bug
If you want to create a VN (without specifying the 'id'), Ansible is initiating a 'PUT' request.
The error output states that 'id is a required field'.

Expected behavior
I expect a 'POST' request as the 'id' is not specified and a new VN is going to be created.

Debug

        payload:
        - fabricIds:
          - "e3327bd5-e30b-40be-92ac-d6235f35a29b"
          virtualNetworkName: "Test2"

URL: https://10.10.10.10:443/dna/intent/api/v1/sda/layer3VirtualNetworks
Method: PUT
"detail": "Layer 3 Virtual Network Update failed for Test2 in SDA Fabric, id is a required field."

Environment (please complete the following information):

  • Cisco DNA Center Version and patch: 2.3.7.7-70047
  • Ansible Version: core 2.18.1
  • Collection version: latest
  • OS Version: MacOS 15.2
@simon-morin
Copy link

Running into the same issue with cisco.dnac.sda_anycast_gateways

@JosePabloOcampo1212
Copy link
Collaborator

Please update the library and test to verify if the error no longer occurs.

@JosePabloOcampo1212
Copy link
Collaborator

version 6.28.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants