Using Python to Manage Network Devices

Now we have a fair knowledge about how to use and install Python in different operating systems and also how to build the network topology using the EVE-NG. In this chapter, we will discover how to leverage many network automation libraries, used today to automate various network tasks. Python can interact with network devices on many layers.

First, it can handle low-level layers with socket programming and socket modules, which serve as low-level networking interfaces between operating systems that run Python and the network device. Also, Python modules provide higher-level interaction through telnet, SSH, and API. In this chapter, we will dive deep into how to use Python to establish remote connections ...

Get Hands-On Enterprise Automation with Python. 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.