Closed nextnoob closed 2 years ago
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 ,
the implementation worked, thank you very much!
What about the DNAC API docs? Will this be adapted or can it be that in newer DNAC versions only Boolean will be accepted again?
We are going to report it, however that does not fall on us, we only provide support to the sdk. If there´s anything else, please close issue.
Prerequisites
Yes →
Example Payload:
Describe the bug
Class: classSda Function: adds_border_device(headers=None, payload=None, active_validation=True, **request_parameters)
First issue: The scheme under Developer DNAC Docs wants booleans for the keys borderWithExternalConnectivity and connectedToInternet as values. Unfortunately, in reality only strings are accepted by the DNA Center here.
Payload:
Error message:
When I adjust the validator, the API call works.
Also following values are accepted with adjusted validators:
Expected behavior The API should accept Boolean according to the schema, but it does not.
Screenshots
![image](https://user-images.githubusercontent.com/22887888/183751878-206e0c05-e42c-45a5-b5b0-25a40350d22c.png)
Environment (please complete the following information):
Additional context
Thanks for maintaining the very good SDK :blush: