In today's landscape, the success of enterprise networks hinges on proficiency in understanding how networks behave, and knowing how to optimise their performance at scale. Therefore, this book is written for professionals who already know the basics and want to learn about scaling up. Covering Python 3.14 as an everyday operations tool, this book is a must-read for network engineers, network and system administrators, network architects and enterprise architects. It teaches you to transform a basic reachability probe into a complete application which can audit routers, Linux hosts, cloud accounts, and Kubernetes clusters.
You will practically experience automating devices over SSH, NETCONF and RESTCONF; managing Linux networking through netlink, and switching from SNMP polling to gNMI streaming telemetry for monitoring. It covers everything from hardening firewalls, TLS and VPNs to building your own network API with FastAPI, managing configuration with NAPALM, Nornir, NetBox and Ansible, and validating every change in a CI pipeline with Batfish and pyATS before it reaches production. Each step is accompanied by a dry run and a rollback option, and every lab runs in containers on your own machine.
Key Learnings
Build your Python 3.14 tooling, and choosing between free-threaded and standard builds.
Automate multi-vendor devices using Netmiko and Scrapli.
Parse device output using TextFSM, TTP and Genie over Regex.
Apply safe changes using NETCONF candidate datastores, confirmed commits and automatic rollback.
Manage Linux interfaces, routes and namespaces using netlink with pyroute2.
Scale to hundreds of devices using asyncio TaskGroups, timeouts and semaphores.
Replace SNMP polling with gNMI streaming telemetry for Prometheus and OpenTelemetry.
Automate firewalls, TLS audits, WireGuard tunnels and CIS compliance checks.
Drive configuration from NetBox through Nornir, Jinja2, NAPALM and Ansible.
Validate changes in CI before production using Batfish, pyATS and Containerlab.
Table of Content
Building Python 3.14 Network Toolkit
Probing Networks with Raw Sockets
Talking to HTTP, DNS and WebSocket Services
Automating Network Devices over SSH
Configuring Devices with NETCONF, RESTCONF and YANG
Managing Linux Host Networking
Scaling Fleet Operations with Concurrency
Monitoring Networks with Streaming Telemetry
Securing Networks and Automation Credentials
Building and Consuming Network APIs
Managing Configuration across the Fleet
Running Network Changes with Ansible
Testing and Shipping Network Changes with CI/CD
Auditing Cloud and Kubernetes Networks
Target Audience
To read this book, you don't need to be a seasoned networking professional. All you need is a sense of curiosity, access to a terminal, and a willingness to let the computer handle the repetitive tasks.