First Steps: Python and Network Automation
I won’t get into any of the arguments about what constitutes “network automation.” For me and the purposes of some of the posts, it’s simply about learning Python and some of the libraries to help simplify information gathering and or device configuration.
The first thing you have to deal with is connecting to your devices and issuing commands, that’s where Netmiko comes in.
Then you will want to parse configurations to either extract details or to help with configuration.
I am not good at this stuff, and I have been struggling with learning for about eight months now. I’ve made some progress and accomplished a few personal wins with some projects at work. I’d like to try sharing a little with others in case it helps. We need more like minded people thinking about and challenging the way things have been done to continue making progress.
I firmly believe sharing ideas and code helps everyone. Seeing other problems we hadn’t thought of or solutions we hadn’t considered helps us all grow.
In the meantime, I highly recommend these YouTube videos by Greg Mueller on “Automating Network Devices using Python and Netmiko“.