Creating the vlans using Python and Loops

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 :)

August 25, 2017 · 1 min

Python, creating the vlans on the Cisco switch

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 def. 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 :)

August 24, 2017 · 1 min

Connecting to the Switch using Python

Starting to figure it out how python syntax is working and how we can use internal libraries to connect to switches. Let’s take the telnetlib Here is a short example of connecting to switch and changing it’s hostname. Example of script was taken from telnetlib: https://docs.python.org/2/library/telnetlib.html Great free content to learn the Python and Networking automation

August 24, 2017 · 1 min