Looking back, we now have a fair idea of the basics of writing Python scripts and how to get meaningful data out of information. We have covered how to write Python scripts, interact with network devices, and have also worked on the basics of PowerShell so that we can work with both PowerShell and Python scripts. Now we will move towards a deeper understanding of using Python by looking at various examples. In this chapter we will focus on working with various Network devices to dig or fetch relevant information from devices, working on that information to create new configurations and pushing it back to the devices for added or enhanced functionality.
We will work on some common scenarios that we may face and try to solve them with Python. These examples or scenarios can be extended depending on a programmer's needs, and can be used...