-
Notifications
You must be signed in to change notification settings - Fork 33
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.adds_border_device virtualNetwork array not accepted as value #64
Comments
Hey @nextnoob , there´s a new version of dnacentersdk (2.5.3) with solved problem, try it and let us know if it works for you. |
Hey @fmunozmiranda , unfortunately the validation does not work yet. Error Message:
Detail:
|
@nextnoob, I see may be something wrong with the object creation. Malformed request details this structure: "l3Handoff": [
{
"virtualNetwork": [
{
"virtualNetworkName": "INFRA_VN",
"vlanId": "3200"
}
]
},
{
"virtualNetwork": [
{
"virtualNetworkName": "BECHTLAB",
"vlanId": "3201"
}
]
}
]
A valid request, should be like this: "l3Handoff": [
{
"virtualNetwork":
{
"virtualNetworkName": "INFRA_VN",
"vlanId": "3200"
}
},
{
"virtualNetwork":
{
"virtualNetworkName": "BECHTLAB",
"vlanId": "3201"
}
}
] |
Oh, my mistake. I still had the "old" syntax from the DNAC API documentation. Thank you for the fix. |
Prerequisites
Yes →
Example Payload:
Describe the bug
Class: classSda
Function: adds_border_device(headers=None, payload=None, active_validation=True, **request_parameters)
The scheme under Developer DNAC Docs wants arrays for the key virtualNetworkand as values. Unfortunately, in reality arrays are not accepted by the DNA Center here.
Payload:
Error message:
Expected behavior
The API should accept arrays according to the schema, but it does not.
Screenshots
Environment (please complete the following information):
Additional context
Thanks for maintaining the very good SDK 😊
The text was updated successfully, but these errors were encountered: