Zum Hauptinhalt springen
Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Mastering Python Networking (eBook)

Utilize Python packages and frameworks for network automation, monitoring, cloud, and management

(Autor)

eBook Download: EPUB
2023 | 1. Auflage
594 Seiten
Packt Publishing (Verlag)
978-1-80324-232-3 (ISBN)

Lese- und Medienproben

Mastering Python Networking -  Eric Chou
Systemvoraussetzungen
29,99 inkl. MwSt
(CHF 29,30)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

Networks in your infrastructure set the foundation for deploying, maintaining, and servicing applications. Python is the ideal language for network engineers to explore tools that were previously available to systems engineers and application developers. Mastering Python Networking, Fourth edition, guides you on a Python-driven journey from traditional network engineering to modern network development.
This new edition incorporates the latest Python features and DevOps frameworks. In addition to new chapters on introducing Docker containers and Python 3 Async IO for network engineers, each chapter is updated with the latest libraries and working examples to ensure compatibility and clarity of the concepts.
Starting with a basic overview of Python, the book teaches you how it can interact with both legacy and API-enabled network devices. You will learn to leverage high-level Python packages and frameworks to perform network automation tasks, monitoring, management, and enhanced network security, followed by AWS and Azure cloud networking. You will use Git for code management, GitLab for continuous integration, and Python-based testing tools to verify your network.
By the end of this book, you'll be a confident network developer capable of automating modern infrastructure using Python, DevOps practices, and cloud technologies.


Get to grips with the latest container examples, Python 3 features, GitLab DevOps, network data analysis, and cloud networking to get the most out of Python for network engineering with the latest edition of this bestselling guidePurchase of the print or Kindle book includes a free eBook in PDF format.Key FeaturesLeverage Python's powerful libraries and frameworks to build production-ready network automation solutions efficiently and effectivelyImplement network security, monitoring, and management solutions using modern DevOps tools and cloud-native approachesUtilize AsyncIO and cloud capabilities in Python 3 for AWS and Azure network solutionsBook DescriptionNetworks in your infrastructure set the foundation for deploying, maintaining, and servicing applications. Python is the ideal language for network engineers to explore tools that were previously available to systems engineers and application developers. Mastering Python Networking, Fourth edition, guides you on a Python-driven journey from traditional network engineering to modern network development. This new edition incorporates the latest Python features and DevOps frameworks. In addition to new chapters on introducing Docker containers and Python 3 Async IO for network engineers, each chapter is updated with the latest libraries and working examples to ensure compatibility and clarity of the concepts. Starting with a basic overview of Python, the book teaches you how it can interact with both legacy and API-enabled network devices. You will learn to leverage high-level Python packages and frameworks to perform network automation tasks, monitoring, management, and enhanced network security, followed by AWS and Azure cloud networking. You will use Git for code management, GitLab for continuous integration, and Python-based testing tools to verify your network. By the end of this book, you'll be a confident network developer capable of automating modern infrastructure using Python, DevOps practices, and cloud technologies.What you will learnUse Python to interact with network devicesExplore Docker for efficient network application development and deploymentExtract network insights using Python and monitoring tools like NetFlow and SNMPAnalyze network data with ELK for real-time visualizationBuild high-level API with Flask for in-house applicationsDiscover the new AsyncIO feature and its concepts in Python 3Explore test-driven development concepts and use PyTest to drive code test coverageUnderstand how to implement DevOps best practices with GitLab in networkingWho this book is forMastering Python Networking, Fourth edition is for network engineers, developers, and SREs who want to learn Python for network automation, programmability, monitoring, cloud, and data analysis. Network engineers who want to transition from manual to automation-based networks using the latest DevOps tools will also get a lot of useful information from this book. Basic familiarity with Python programming and networking-related concepts such as Transmission Control Protocol/Internet Protocol (TCP/IP) will be helpful in getting the most out of this book.]]>

Contents


  1. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Get in touch
    5. Share your thoughts
    6. Download a free PDF copy of this book
  2. Review of TCP/IP Protocol Suite and Python
    1. An overview of the Internet
      1. Servers, hosts, and network components
      2. The rise of data centers
        1. Enterprise data centers
        2. Cloud data centers
        3. Edge data centers
    2. The OSI model
    3. The client-server model
    4. Network protocol suites
      1. The transmission control protocol
        1. Functions and characteristics of TCP
        2. TCP messages and data transfer
      2. The user datagram protocol
      3. The Internet protocol
        1. IP network address translation (NAT) and network security
        2. IP routing concepts
    5. Python language overview
      1. Python versions
      2. Operating system
      3. Running a Python program
      4. Python built-in types
        1. The None type
        2. Numerics
        3. Sequences
        4. Mapping
        5. Sets
      5. Python operators
      6. Python control flow tools
      7. Python functions
      8. Python classes
      9. Python modules and packages
    6. Summary
  3. Low-Level Network Device Interactions
    1. The challenges of the CLI
    2. Constructing a Virtual lab
      1. Physical devices
      2. Virtual devices
      3. Cisco modeling labs
        1. CML tips
      4. Cisco DevNet
      5. GNS3 and others
    3. Python virtual environment
    4. Python pexpect library
      1. Pexpect installation
      2. Pexpect overview
      3. Our first Pexpect program
      4. More Pexpect Features
      5. Pexpect and SSH
      6. Pexpect complete example
    5. The Python Paramiko library
      1. Installation of Paramiko
      2. Paramiko overview
      3. First Paramiko program
      4. More Paramiko features
        1. Paramiko for servers
      5. More Paramiko examples
    6. The Netmiko library
    7. The Nornir framework
      1. Downsides of Pexpect and Paramiko compared to other tools
        1. Idempotent network device interaction
        2. Bad automation speeds up bad things
    8. Summary
  4. APIs and Intent-Driven Networking
    1. Infrastructure-as-Code (IaC)
      1. Intent-driven networking
      2. Screen scraping versus API structured output
      3. Data modeling for IaC
      4. YANG and NETCONF
    2. Cisco API examples
      1. Cisco NX-API
        1. Lab preparation
        2. NX-API examples
      2. The Cisco YANG Model
      3. The Cisco ACI examples
    3. Cisco Meraki controller
    4. The Python API for Juniper Networks
      1. Juniper and NETCONF
        1. Device preparation
        2. Juniper NETCONF examples
      2. Juniper PyEZ for developers
        1. Installation and preparation
        2. PyEZ examples
    5. The Arista Python API
      1. Arista eAPI management
        1. eAPI preparation
        2. eAPI examples
      2. The Arista Pyeapi library
        1. Pyeapi installation
        2. Pyeapi examples
    6. VyOS example
    7. Other libraries
    8. Summary
  5. The Python Automation Framework – Ansible
    1. Ansible – A More Declarative Framework
      1. Ansible Versions
    2. Our First Ansible Network Example
      1. The Control Node Installation
      2. Lab Topology
        1. The Variable Files
        2. Our First Playbook
    3. The Advantages of Ansible
      1. Agentless
      2. Idempotence
      3. Simple and Extensible
    4. Ansible Content Collections
    5. More Ansible Network Examples
      1. Inventory Nesting
      2. Ansible Conditionals
      3. Configuration Change
      4. Ansible Network Facts
      5. Ansible Loops
        1. Standard Loops
        2. Looping over Dictionaries
      6. Templates
        1. The Jinja Template Variables
        2. Jinja Template Loops
        3. Jinja Template Conditional
    6. Summary
  6. Docker Containers for Network Engineers
    1. Docker Overview
      1. Advantages of Docker
    2. Building Python applications in Docker
      1. Installing Docker
      2. Useful Docker commands
      3. Building hello world
      4. Building our application
      5. Sharing Docker images
      6. Container orchestration with Docker-compose
    3. Container networking
      1. Container host network
      2. Custom bridge network
      3. Other container network options
    4. Containers in the network engineering field
      1. Containerlab
    5. Docker and Kubernetes
    6. Summary
  7. Network Security with Python
    1. The Lab Setup
    2. Python Scapy
      1. Installing Scapy
      2. Interactive examples
      3. Packet captures with Scapy
      4. The TCP port scan
      5. The ping collection
      6. Common attacks...

Erscheint lt. Verlag 20.1.2023
Sprache englisch
Themenwelt Informatik Netzwerke Sicherheit / Firewall
Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
ISBN-10 1-80324-232-9 / 1803242329
ISBN-13 978-1-80324-232-3 / 9781803242323
Informationen gemäß Produktsicherheitsverordnung (GPSR)
Haben Sie eine Frage zum Produkt?
EPUBEPUB (Ohne DRM)

Digital Rights Management: ohne DRM
Dieses eBook enthält kein DRM oder Kopier­schutz. Eine Weiter­gabe an Dritte ist jedoch rechtlich nicht zulässig, weil Sie beim Kauf nur die Rechte an der persön­lichen Nutzung erwerben.

Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belle­tristik und Sach­büchern. Der Fließ­text wird dynamisch an die Display- und Schrift­größe ange­passt. Auch für mobile Lese­geräte ist EPUB daher gut geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür die kostenlose Software Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Technische und organisatorische Schutzmaßnahmen gegen Datenverlust …

von Thomas H. Lenhard

eBook Download (2025)
Springer Vieweg (Verlag)
CHF 34,15
Methodische Kombination von IT-Strategie und IT-Reifegradmodell

von Markus Mangiapane; Roman P. Büchler

eBook Download (2024)
Springer Fachmedien Wiesbaden (Verlag)
CHF 45,90
Das Praxishandbuch zu Krisenmanagement und Krisenkommunikation

von Holger Kaschner

eBook Download (2024)
Springer Fachmedien Wiesbaden (Verlag)
CHF 38,95