pythonvideos icon indicating copy to clipboard operation
pythonvideos copied to clipboard

fix(script): Configure all switches in the loop

Open CommitToday opened this issue 1 month ago • 0 comments

The configuration logic was incorrectly indented outside the main loop, which resulted in only the last switch being configured.

This commit moves the configuration commands inside the loop to ensure each switch is configured sequentially. It also updates the script to Python 3, adds basic error handling for the Telnet connection, and includes a command to save the running configuration.

Fixes #14


Closes #14

CommitToday avatar Nov 05 '25 19:11 CommitToday