Hi Stephen,
I installed Python 2.7 on my workstation, then ran the script against a .cfg file I uploaded from the switch. Some ports were renamed, and others were not. Below are some examples where the ports did not rename, or there is a space between the colon and port number:
Original line is: configure stpd s0 add vlan v11-FLL ports 57 dot1d
After running script: configure stpd s0 add vlan v11-FLL ports 57 1:dot1d
Original line is: configure vlan v53-OC3 add ports 3, 5-6, 49, 57 tagged
After running script: configure vlan v53-OC3 add ports 1:3,1: 5-6, 49, 57 tagged
Other lines renamed the ports OK:
configure vlan default delete ports all
configure vr VR-Default delete ports 1:1-64
configure vr VR-Default add ports 1:1-64
configure vlan default delete ports 1:1-64
configure ports 1:6 auto off speed 10000 duplex full
disable port 1:7
configure ports 1:7 auto off speed 10000 duplex full
disable port 1:8
I am not sure if I did something wrong or not. Any advice would be greatly appreciated.