Book Image

Network Programming and Automation Essentials

By : Claus Töpke
Book Image

Network Programming and Automation Essentials

By: Claus Töpke

Overview of this book

Network programming and automation, unlike traditional networking, is a modern-day skill that helps in configuring, managing, and operating networks and network devices. This book will guide you with important information, helping you set up and start working with network programming and automation. With Network Programming and Automation Essentials, you’ll learn the basics of networking in brief. You’ll explore the network programming and automation ecosystem, learn about the leading programmable interfaces, and go through the protocols, tools, techniques, and technologies associated with network programming. You’ll also master network automation using Python and Go with hands-on labs and real network emulation in this comprehensive guide. By the end of this book, you’ll be well equipped to program and automate networks efficiently.
Table of Contents (16 chapters)
1
Part 1: Foundations for Network Automation
6
Part 2: Network Programming for Automation
11
Part 3: Testing, Hands-On, and Going Forward

Accessing network devices using libraries

So far, we have discussed how to run and work with libraries in Python and Go. Now, let’s focus on how to use Python and Go to access network devices, which is one of the most important points in our network automation work.

In Chapter 3, we discussed several methods to access network devices. One of the most popular ones is using a command-line interface (CLI). We also discussed SNMP, NETCONF, gRPC, and gNMI. In this section, we are going to explore a few examples of how to use libraries to access network devices, mainly using the CLI. Later, we are going to explain and show the libraries for accessing the network using other methods.

Libraries to access the network via a CLI

There are lots of libraries on the internet that can access network devices, and some of them might be obsolete or not used anymore. Here, we are going to present the most popular ones in chronological order, from the old to the newer ones.

The following...