How to automate Port Assignment?

Aleksandr Serov
Level 1
Level 1

Hello, 

Is there any way to automate port assignment by python? 

When I add new switches to the fabric I have to click on hundreds of ports and assign them to appropriate data ip pool, voice ip pool and authentication template. It isn't look like a convenient way (. Are there any other way? There is even no option to find the port by the name(.

 

I found this tool https://github.com/CiscoDevNet/dnacenter-host-onboarding

but I not sure that it is compatible with fabric host onboarding to an approriate ip pools and authentication template.

 

I also found function add_port_assignment_for_user_device in api but can not find well enough explanation how to use it.

 

Thank you in advance for any idea.