Chapter 4: Configuring Network Devices Using Netmiko
In Chapter 2, Connecting to Network Devices via SSH Using Paramiko, we saw how to connect to a network device via SSH using the Paramiko library. While we can do pretty powerful things such as executing commands against our devices using Paramiko, it was built as an SSH library, not a library to connect to and configure network devices. Enter netmiko, a library purpose-built to connect to and configure network devices using Python.
The netmiko library is build on top of Paramiko, hence the similarity in name, which abstracts away some of the quirks of dealing with SSH connections, including differing escape codes, and is purpose-built for connecting to and configuring network devices using ...
Get Python Network Programming Techniques now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.