cisco-en-programmability / dnacentersdk

Cisco DNA Center Python SDK
https://dnacentersdk.readthedocs.io/en/latest/
MIT License
70 stars 33 forks source link

Create_Network malformed request for 2.3.3 #62

Closed pablmartC closed 2 years ago

pablmartC commented 2 years ago

Hi team,

I've DNAC 2.3.3.3 and using the dnacentersdk. I'm trying to configure the network settings of DNAC by using the create_network function under network_settings class.

I'm passing the following schema

{ "settings" : { "dnsServer": { "domainName" : "domain.local", "primaryIpAddress": "x.x.x.x" } } }

The SDK returns "MalformedRequest", Reason: data.settings.dnsServer.domainName must be one of ['can only contain alphanumeric characters or hypen']

However, when I call the API directly with Python or using the DNAC GUI developer toolkit with exactly the same schema as above, it passes and gets configured.

Regards.

bvargasre commented 2 years ago

Hi @pablmartC, thanks for reporting the bug, dnacentersdk has been updated to version 2.5.2, so try this new version and tell me if it works.

pablmartC commented 2 years ago

Thank you. It's working now.