Python network programming techniques : 50 real-world recipes to automate infrastructure networks and overcome networking challenges with Python

Become well-versed with network programmability by solving the most commonly encountered problems using Python 3 and open-source packages Key Features Explore different Python packages to automate your infrastructure Leverage AWS APIs and the Python library Boto3 to administer your public cloud netw...

Full description

Saved in:
Bibliographic Details
Main Author: Neidinger, Marcel, (Author)
Format: eBook
Language: English
Published: Birmingham : Packt Publishing, 2021.
Subjects:
ISBN: 1838640479
9781838640477
9781838646639 (pbk.)
Physical Description: 1 online resource

Cover

Table of contents

LEADER 06927cam a22004091i 4500
001 kn-on1268128162
003 OCoLC
005 20240717213016.0
006 m o d
007 cr cn|||||||||
008 210817s2021 enk o 000 0 eng d
040 |a UKMGB  |b eng  |e rda  |e pn  |c UKMGB  |d OCLCO  |d EBLCP  |d OCLCF  |d UKAHL  |d UAB  |d OCLCO  |d VLB  |d OCLCQ  |d IEEEE  |d OCLCO  |d OCLCL  |d N$T 
020 |a 1838640479 
020 |a 9781838640477  |q (electronic bk.) 
020 |z 9781838646639 (pbk.) 
035 |a (OCoLC)1268128162 
100 1 |a Neidinger, Marcel,  |e author. 
245 1 0 |a Python network programming techniques :  |b 50 real-world recipes to automate infrastructure networks and overcome networking challenges with Python /  |c Marcel Neidinger. 
264 1 |a Birmingham :  |b Packt Publishing,  |c 2021. 
300 |a 1 online resource 
336 |a text  |2 rdacontent 
337 |a computer  |2 rdamedia 
338 |a online resource  |2 rdacarrier 
505 0 |a Cover -- Copyright -- Contributors -- Table of Contents -- Preface -- Chapter 1: A Primer on Python 3 -- Technical requirements -- Assigning variables in Python -- Getting ready -- How to do it... -- How it works... -- Converting between data types in Python -- Getting ready -- How to do it... -- How it works... -- Looping over lists in Python -- Getting ready -- How to do it... -- How it works... -- There's more... -- Controlling the flow of a Python program using if statements -- Getting ready -- How to do it... -- How it works... -- There's more... -- Executing code until a condition is met using while loops 
505 8 |a Getting ready -- How to do it... -- How it works... -- There's more... -- Writing reusable code with functions -- Getting ready -- How to do it... -- How it works... -- There's more... -- Storing and accessing key-value pairs using dictionaries -- Getting ready -- How to do it... -- How it works... -- There's more... -- Importing modules from the standard library -- Getting ready -- How to do it... -- How it works... -- There's more... -- Installing modules from the PyPI -- Getting ready -- How to do it... -- How it works... -- Chapter 2: Connecting to Network Devices via SSH Using Paramiko -- Technical requirements 
505 8 |a Initiating an SSH session with Paramiko -- Getting ready -- How to do it... -- How it works... -- There's more... -- Executing a command via SSH -- Getting ready -- How to do it... -- How it works... -- Reading the output of an executed command -- Getting ready -- How to do it... -- How it works... -- There's more... -- Executing the same command against multiple devices -- Getting ready -- How to do it... -- How it works... -- Executing a sequence of commands -- Getting ready -- How to do it... -- How it works... -- Using public/private keys for authentication -- Getting ready -- How to do it... 
505 8 |a How it works... -- There's more... -- Loading local SSH configuration -- Getting ready -- How to do it... -- How it works... -- Chapter 3: Building Configuration Templates Using Jinja2 -- Technical requirements -- Loading Jinja2 templates in Python -- Getting ready -- How to do it... -- How it works... -- There's more... -- Passing variables from Python to a template -- Getting ready -- How to do it... -- How it works... -- There's more... -- Writing your rendered template to a file -- Getting ready -- How to do it -- How it works... -- Using for-loops in Jinja2 to configure an access list 
505 8 |a Getting ready -- How to do it... -- How it works... -- There's more... -- Creating a port configuration template using if-clauses in Jinja2 -- Getting ready -- How to do it... -- How it works... -- There's more... -- Creating modular templates using Jinja2's import methods -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using Python functions from within your template with Jinja2 filters -- Getting ready -- How to do it... -- How it works... -- There's more... -- Structuring your configuration template with blocks and template inheritance -- Getting ready 
506 |a Plný text je dostupný pouze z IP adres počítačů Univerzity Tomáše Bati ve Zlíně nebo vzdáleným přístupem pro zaměstnance a studenty 
520 |a Become well-versed with network programmability by solving the most commonly encountered problems using Python 3 and open-source packages Key Features Explore different Python packages to automate your infrastructure Leverage AWS APIs and the Python library Boto3 to administer your public cloud network efficiently Get started with infrastructure automation by enhancing your network programming knowledge Book DescriptionNetwork automation offers a powerful new way of changing your infrastructure network. Gone are the days of manually logging on to different devices to type the same configuration commands over and over again. With this book, you'll find out how you can automate your network infrastructure using Python. You'll get started on your network automation journey with a hands-on introduction to the network programming basics to complement your infrastructure knowledge. You'll learn how to tackle different aspects of network automation using Python programming and a variety of open source libraries. In the book, you'll learn everything from templating, testing, and deploying your configuration on a device-by-device basis to using high-level REST APIs to manage your cloud-based infrastructure. Finally, you'll see how to automate network security with Cisco's Firepower APIs. By the end of this Python network programming book, you'll have not only gained a holistic overview of the different methods to automate the configuration and maintenance of network devices, but also learned how to automate simple to complex networking tasks and overcome common network programming challenges. What you will learn Programmatically connect to network devices using SSH (secure shell) to execute commands Create complex configuration templates using Python Manage multi-vendor or multi-device environments using network controller APIs or unified interfaces Use model-driven programmability to retrieve and change device configurations Discover how to automate post modification network infrastructure tests Automate your network security using Python and Firepower APIs Who this book is for This book is for network engineers who want to make the most of Python to automate their infrastructure. A basic understanding of Python programming and common networking principles is necessary. 
590 |a Knovel  |b Knovel (All titles) 
650 0 |a Python (Computer program language) 
650 0 |a Computer networks. 
655 7 |a elektronické knihy  |7 fd186907  |2 czenas 
655 9 |a electronic books  |2 eczenas 
776 0 8 |i Print version:  |z 9781838646639 
856 4 0 |u https://proxy.k.utb.cz/login?url=https://app.knovel.com/hotlink/toc/id:kpPNPT0001/python-network-programming?kpromoter=marc  |y Full text