This repository provides a Python script that automates the process of configuring VLANs on an Aruba ProCurve switch using the Netmiko library.
The script uses a YAML file to specify the configuration for the switch and VLANs. Below is an example of a valid configuration:
switch:
host: 192.168.1.23
username: admin
password: admin
device_type: aruba_procurve
vlan:
- 2:
name: RENDER_FARM_VLAN
tagged: 1
untagged: 2-12
- 4:
name: LAB_VLAN
untagged: 32
- Python 3.x
- Netmiko
- PyYAML (for reading configuration from a YAML file, already bundled with Netmiko)
You can install the required Python libraries with:
pip install netmiko
python configure.py