Introduction to Python Network Automation: The First Journey

  • 11h 30m
  • Brendan Choi
  • Apress
  • 2021

Learn and implement network automation within the Enterprise network using Python 3. This introductory book will be your guide to building an integrated virtual networking lab to begin your Network Automation journey and master the basics of Python Network Automation.

The book features a review of the practical Python network automation scripting skills and tips learned from the production network, so you can safely test and practice in a lab environment first, various Python modules such as paramiko and netmiko, pandas, re, and much more. You'll also develop essential skills such as Python scripting, regular expressions, Linux and Windows administration, VMware virtualization, and Cisco networking from the comfort of your laptop/PC with no actual networking hardware. Finally, you will learn to write a fully automated and working Cisco IOS XE upgrade application using Python.

Introduction to Python Network Automation uses a canonical order, where you begin at the bottom and by the time you have completed this book, you will at least reach the intermediate level of Python coding for enterprise networking automation using native Python tools.

What You'll Learn

  • Build a proper GNS3-based networking lab for Python network automation needs
  • Write the basics of Python code in both the Windows and Linux environments
  • Control network devices using telnet, SSH, and SNMP protocols using Python codes
  • Understand virtualization and how to use VMware workstation
  • Examine virtualization and how to use VMware Workstation Pro
  • Develop a working Cisco IOS upgrade application

Who This Book Is For

IT engineers and developers, network managers and students, who would like to learn network automation using Python.

About the Author

Brendan is currently working as a Senior Technical Consultant for Australia’s leading Telco, Telstra. Telstra is the largest Australian Internet Service Provider (ISP) as well as one of the leading IT System Integrator and Managed Services Provider in Australian IT industry. He has more than 15 years of hands-on experience working with Cisco Networking, Unified Collaboration, VMware Virtualization and Operating System Administration. He began his IT career in Cisco Systems and then moved onto various roles in leading System Integrators in Australian IT scenes. He is currently working on a number of external clients’ environment and supports a diverse IT ecosystem, currently focusing on Python Network Automation. This book is largely based on Python network Automation he has developed in his previous job and the original book, “Python Network Automation: by building a virtual lab”. Also, this book is a memoir of Network Automation Journey leveraging off the power of Python as the preferred Programming Language.

In this Book

  • Introduction to Python Network Automation
  • Learn Python Basics on Windows
  • More Python Exercises
  • Introduction to VMware Workstation
  • Creating an Ubuntu Server Virtual Machine
  • Creating a CentOS 8 Server Virtual Machine
  • Linux Fundamentals
  • Linux Basic Administration
  • Regular Expressions for Network Automation
  • GNS3 Basics
  • Cisco IOS Labs
  • Building a Python Automation Lab Environment
  • Python Network Automation Lab: Basic Telnet
  • Python Network Automation Labs: SSH paramiko and netmiko
  • Python Network Automation Labs: cron and SNMPv3
  • Python Network Automation Labs: Ansible, pyATS, Docker, and the Twilio API
  • Upgrading Multiple Cisco IOS XE Routers
  • Python Network Automation Lab: Cisco IOS Upgrade Mini Tools Development
  • Python Network Automation Labs: Combining and Completing the Cisco IOS Upgrade Application


Rating 4.6 of 2165 users Rating 4.6 of 2165 users (2165)
Rating 4.6 of 4247 users Rating 4.6 of 4247 users (4247)