This allows you to connect to a switch via SSH and automate the creation of vlans by looping through a defined list of desired vlan number(s) and vlan name(s). The switch in this use case connects to the Cisco always on DevNet Sandbox. https://developer.cisco.com/site/nx-os/
PyATS is the core platform frame work and Genie is the SDK specializing in network device automation & validation. https://developer.cisco.com/docs/pyats/#!introduction/cisco-pyats-network-test--automation-solution
- Create a virtual environment
- Use pip to install PyATS (https://pypi.org/project/pyats/) and Genie SDK (https://pubhub.devnetcloud.com/media/genie-docs/docs/cookbooks/genie.html)
- Run the command 'pip install -r requirements.txt' to install all dependencies