A simple script to apply interface-level configuration to all interface in particular VLAN. You specify the IP address of switch or list of switches, commands that need to be pushed and vlan
Files:
- ise-switch-int-apply-config.py - main script
- connect_to_device.py - includes functions: ping and connect SSH/Telnet to the device
- devices.csv - list of IP addresses
- local.py - credentials
- config_intf_ise.txt - configuration commands that need to be applied
- device-result.json - stores results of running script
- Python3
- Cisco IOS switch
python ise-switch-int-apply-config.py <IP_address> <vlan_id>
python ise-switch-int-apply-config.py device.csv <vlan_id>
Examples:
- python ise-switch-int-apply-config.py devices.csv 10
- python ise-switch-int-apply-config.py 10.10.10.10 10
How it works
- Created by Dmitry Golovach
- Web: https://dagolovachgolovach.com
- Twitter: @dagolovach
- LinkedIn: @dmitrygolovach
- feel free to contact me!