cisco-en-programmability/dnacentersdk

Vlan name not used when adding a IP pool to a vn

Closed this issue · 2 comments

Prerequisites

  • Have you tested the operation in the API directly?
  • Do you have the latest SDK version?
  • Review the compatibility matrix before opening an issue.

Describe the bug
When adding a IP pool to a VN i want to give the VLAN a name. When i do this with the API it is not accepted and the name is auto-generated as if i do not give an name to the VLAN.

Expected behavior
When i give the vlanName variable a value i expect DNA to use that as the name of the vlan

Screenshots
Result of using the API directly or through own python script
image
image
Schema definition that has a vlanName variable that i try to use
image

Environment (please complete the following information):

  • Cisco DNA Center Version and patch: 2.3.3.7-72323
  • Python version: 3.8
  • SDK version: 2.6.9
  • OS Version: ubuntu 20.04

Additional context
Add any other context about the problem here.

Also when adding a AP vlan with an vlanName i get the following error:
APIerror: [400] Bad Request - 'namespace'

"status": "failed",
"description": "'namespace'",
"taskId": null,
"taskStatusUrl": "/dna/intent/api/v1/task/null",
"executionStatusUrl": "/dna/intent/api/v1/dnacaap/management/execution-status/d5f9db1c-f220-4d74-895d-986506a1a549",
"executionId": "d5f9db1c-f220-4d74-895d-986506a1a549"

{
"bapiKey": "2085-79ea-4ed9-8f4f",
"bapiName": "Add IP Pool in SDA Virtual Network",
"bapiExecutionId": "d5f9db1c-f220-4d74-895d-986506a1a549",
"startTime": "Tue Oct 10 14:25:02 UTC 2023",
"startTimeEpoch": 1696947902712,
"endTime": "Tue Oct 10 14:25:03 UTC 2023",
"endTimeEpoch": 1696947903844,
"timeDuration": 1132,
"status": "SUCCESS",
"runtimeInstanceId": "DNACP_Runtime_597b9aa5-c6c4-4251-bef8-3f2f120aa385"

}

Documentation on the cisco.developers site was not complete. Needed to use the --autogeneratevlanname flag. Was not an optional option. We can close this issue