cisco-en-programmability / dnacentersdk

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

2.3.3.0 API add_vn method does not seem to be passing the site and vn to the API correctly/at all #122

Closed paulbauer1 closed 6 months ago

paulbauer1 commented 10 months ago

Prerequisites

Describe the bug When using the sdk with the 2.3.3.0 API version through Ansible or directly in python the add_vn method fails. I don't know if the API for this call has changed significantly, but the code in the method is different between 2.3.3.0 and 2.3.5.3. The 2.3.3.0 version has no parameters for the site and vn. The 2.3.5.3 API works as expected. Based on the compatibility matrix and my version of DNAC and Ansible I believe the recommended SDK version is 2.5.5 which has the same error but there is no option to move to the 2.3.5.3 API as 2.3.3.0 is the highest option in 2.5.5.

Expected behavior Virtual networks should be added to fabric site.

Screenshots failed_api_call successfull_api_call_dnac_explorer successfull_api_call_sdk

Environment (please complete the following information):

Additional context Add any other context about the problem here.

DbarrantesE commented 10 months ago

Hi @paulbauer1, try using the latest version of dnacentersdk (2.6.8). In this version, according to the comments on the issue, it was fixed. Try testing again to see if there's anything else we need to adjust in the code.

fmunozmiranda commented 6 months ago

Closed due inactivity.