More efficient way of doing things with any programming language is using the loops.
https://wiki.python.org/moin/ForLoop
Example of creating 32 vlans on cisco switch :
The code looks more readable and you can scale it now 🙂
More efficient way of doing things with any programming language is using the loops.
https://wiki.python.org/moin/ForLoop
Example of creating 32 vlans on cisco switch :
The code looks more readable and you can scale it now 🙂
Just a short example how you can create a VLANs on Cisco switch.
Using Linux machine for executing the python and GNS3 Cisco Ether-switch
Just trying to get it working, this is definetely not an example how the production program should look like, at least the loop and more variables could be used here, but for now only hard-coding the stuff 🙂
Video number 2