cisco-en-programmability / dnacentersdk

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

Mismatch in parameters from expected payload in the backend and payload sent by SDK for claiming a WLC #136

Closed abimishr closed 10 months ago

abimishr commented 10 months ago

Prerequisites

Describe the bug I am trying to claim a WLC using the API “claim a device to a site” (/onboarding/pnp-device/site-claim). Catalyst WLC requires additional parameters like Static IP, subnet mask, Vlan ID etc. Since, DNAC's developer tool kit has an issue with the documentation, the SDK is also following the same documentation. Current documentation and SDK code takes vlanID and InterfaceName. However, the API expects it to be vlanId and ipInterfaceName respectively in the backend. I have raised a documentaion bug previously with the API team and it's in progress. Hence, requesting here to make the same change in SDK's code under device_onboarding_pnp.py file in claim_a_device_to_a_site method.

Expected behavior Device gets claimed after calling the API, generates Day 0 config and gets provisioned on the DNAC GUI.

Screenshots

Screenshot 2023-11-14 at 10 25 16 PM Screenshot 2023-11-14 at 10 28 47 PM

Environment (please complete the following information):

Additional context Link to the bug raised for the API team: https://cdetsng.cisco.com/webui/#view=CSCwh91999

bvargasre commented 10 months ago

Hi @abimishr version 2.6.10 of dnacentersdk is available try this new version Most of the mentioned parameters were already there interfaceName to ipInterfaceName was corrected Test it and let us know it works for you

abimishr commented 10 months ago

Hi @bvargasre thanks for the update. I suppose 2.6.10 got available recently. Thanks for the super quick resolution. I have checked and its working.