Skip to content

Conversation

@SoulSniper1212
Copy link

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

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 davidbombal#14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GNS3 Talks: Python for Network Engineers with GNS3 (Part 5) - Multiple switches, multiple VLANs - ISSUE

1 participant