更新时间:2021-07-02 21:43:20
coverpage
Title
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Review of TCP/IP Protocol Suite and Python Language
The internet overview
Servers hosts and network components
The rise of datacenter
Enterprise datacenters
Cloud datacenters
Edge datacenters
The OSI model
Client server models
Network protocol suites
The Transmission Control Protocol (TCP)
Functions and Characteristics of TCP
TCP messages and data transfer
User Datagram Protocol (UDP)
The Internet Protocol (IP)
The IP NAT and security
IP routing concepts
Python language overview
Python versions
Operating system
Running a Python program
Python built-In types
The None type
Numerics
Sequences
Mapping
Sets
Python operators
Python control flow tools
Python functions
Python classes
Python modules and packages
Summary
Low-Level Network Device Interactions
The challenges of CLI
Constructing a virtual lab
Cisco Virtual Internet Routing Lab (VIRL)
VIRL tips
Cisco DevNet and dCloud
GNS3
Python Pexpect Library
Installation
The Pexpect overview
Our first Expect program
More Pexpect features
Pexpect and SSH
Putting things together for Pexpect
The Python Paramiko library
Installating Paramiko
The Paramiko overview
Our first Paramiko program
More Paramiko features
Paramiko for Servers
Putting things together for Paramiko
Looking ahead
Downsides of Pexpect and Paramiko compared to other tools
Idempotent network device interaction
Bad automation speeds bad things up
API and Intent-Driven Networking
Infrastructure as the Python code
Screen scraping versus API structured output
Data modeling for infrastructure as code
The Cisco API and ACI
Cisco NX-API
Lab Software Installation and Device Preparation
NX-API examples
Cisco and YANG model
The Cisco ACI
The Python API for Juniper networks
Juniper and NETCONF
Device Preparation
Juniper NETCONF examples
Juniper PyEZ for developers
Installation and preparation
PyEZ examples
The Arista Python API
The Arista eAPI management
The eAPI preparation