# DNAC-Site_Automation **Repository Path**: mirrors_CiscoDevNet/DNAC-Site_Automation ## Basic Information - **Project Name**: DNAC-Site_Automation - **Description**: Automate Site Creation and Automation and Device assignment using Cisco DNA Center APIs - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Cisco DNA Center - Assign Network Devices to Site Dynamically create and assign sites and devices using Cisco DNA Center APIs - Obtain the Device to Site Mapping - Source is a JSON file - Get Site and Device information - Assign Network Device to Site - Ready for Cisco DNA Center Automation and Assurance ## Getting Started Use the following command to create your sites in Cisco DNA Center. Sites are defined in [site-info.json](./site-info.json) file: ```bash python create-site.py site-info.json ``` After you've succesfully setup your sites, you can start assigning devices to sites. Device to site assignment is defined in [device-to-site.json](./device-to-site.json) file. Run the command below once ready: ```bash python device-to-site.py device-to-site.json ``` > Note: You change the controller credentials either through environment variables or by editing the dnac_config.py file ## Contributing Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.