You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parameter "IpAddressSpace" in the payload does not allow valid values. This is apparently due to the validator.
Error message:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/dnacentersdk/models/validators/v2_3_3_0/jsd_eecf4323cb285985be72a7e061891059.py", line 97, in validate
self._validator(request)
File "<string>", line 37, in validate
fastjsonschema.exceptions.JsonSchemaValueException: data.settings.ippool[0].IpAddressSpace must be one of ['IPv6 or IPv4']
When I adjust the validator, the API call works.
"IpAddressSpace": {
"enum": [
"IPv6",
"IPv4"
]
Expected behavior
"IPv4" or "IPv6" should be accepted as value for "IpAddressSpace".
Screenshots
Environment (please complete the following information):
Cisco DNA Center Version and patch: Version 2.2.3.5
Python version: Python 3.10.5
SDK version: 2.5.0
OS Version: Python:3 Docker Container
Additional context
Thanks for maintaining the very good SDK 😊
The text was updated successfully, but these errors were encountered:
Prerequisites
Yes →
Example Payload:
Describe the bug
Class: classNetworkSettings
Function: create_global_pool(settings=None, headers=None, payload=None, active_validation=True, **request_parameters)
The parameter "IpAddressSpace" in the payload does not allow valid values. This is apparently due to the validator.
Error message:
When I adjust the validator, the API call works.
Expected behavior
"IPv4" or "IPv6" should be accepted as value for "IpAddressSpace".
Screenshots
![CreateIPPool1](https://user-images.githubusercontent.com/22887888/178482108-8cca64a4-868f-4835-b963-7e115fbd2aba.png)
![CreateIPPool2](https://user-images.githubusercontent.com/22887888/178482127-24d537b6-319d-47a8-ae29-1644f53889f5.png)
![CreateIPPool3](https://user-images.githubusercontent.com/22887888/178482436-dee92660-0c68-4aa1-aa42-58f45263b8b3.png)
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: