Python Network Programming for Network Engineers (Python 3)

Python Network Programming for Network Engineers (Python 3)

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 13 Hours | 4.50 GB

Program networks using Python version 3. Learn network programmability with this practical GNS3 and Cisco course

Learn Network Programmability and Network Automation using GNS3 and Python version 3.

This course is based on Python 3.

Want to program networks using Python, but not sure where to start? Well, this course will show you how you can start programming Cisco networks within 20 minutes.

This course was created for network engineers. There are too many other Python courses out there that try to make network engineers software developers. Instead of teaching network automation, they teach you Python theory. This course is different.

This course is practical. I won’t talk about programming in abstract terms and make you wait before you can start automating networks. I will show you how you can quickly and easily start network programming by using GNS3, Cisco IOS and Python.

You will see demonstrations of the configuration of both Cisco routers and switches in GNS3. For example, how to configure multiple VLANs on a multiple switches, or how to configure OSPF on a router and more.

This course shows you practical examples of using Python to programmatically configure Cisco network devices rather then just talking about it.

The days of configuring Cisco networks only with the command line interface (CLI) are drawing to a close. You need to add network programmability using Python and APIs to your skill set.

Learn how to automate networks using:

– Telnet

– SSH

– Paramiko

– Netmiko

– NAPALM

Tools such as NAPALM and Netmiko make it easy to configure and interact with network devices using an API such as NETCONF or using SSH. Don’t reinvent the wheel. Use the tools available to you to quickly and easily automate your networks.

What you’ll learn

  • Learn network programmability with GNS3 and Python version 3
  • Learn how to automate the configuration of network devices with Python
  • Learn how to leverage NAPALM for network automation
  • Use Netmiko for SSH connections to routers and switches
  • Quick start guide using Telnet and SSH – get started in 20 minutes!
  • Learn how to scale your network scripts
Table of Contents

Introduction
1 Introduction
2 Udemy Tips and Tricks
3 Answering your questions

Lab Setup
4 Important – please read
5 GNS 2.2 GUI Install
6 GNS3 2.2 VM Install
7 GNS3 IOS images
8 CML (VIRL 2.0) Install Part 1
9 CML (VIRL 2.0) Install Part 2
10 EVE-NG Installation
11 EVE-NG Cisco Images
12 DevNet Free CML

Quick Start Guide to Network Automation
13 Quick Start 1 GNS3 Lab Setup and IDEs
14 Quick Start 2 Telnet Script creation
15 Quick Start 3 Telnet Script Test
16 Quick Start 4 Telnet to a switch and create VLANs
17 Quick Start 5 Loops
18 Quick Start 6 PEP8 Python Style Guide
19 Quick Start 7 Configure switch VLANs using loops
20 Quick start 8 Create a multiple switch network
21 Quick Start 9 Open a file of switch IP addresses
22 Quick Start 10 Configure multiple switch with a loop
23 Quick Start 11 Loops within loops
24 Quick Start 12 Backup Network Device Configurations

Netmiko Use SSH for Network Automation
25 Netmiko Part 1 Introduction
26 Netmiko Part 2 Enable SSH on switches in network
27 Netmiko Part 3 Your first Netmiko SSH Script
28 Netmiko Part 4 Script for multiple switches
29 Netmiko Part 5 Run script and configure multiple devices
30 Netmiko Part 6 File of multiple Cisco commands
31 Netmiko Part 7 Program multiple switches with file of commands
32 Netmiko Part 8 Script to program entire network
33 Netmiko Part 9 Run script to program entire network

NAPALM
34 NAPALM Introduction (P75 12)
35 NAPALM Python 3 versus 2.7
36 Ubuntu versus Network Automation Container
37 Install NAPALM (P68 13)
38 NAPALM connect to switch 1 (P68 14)
39 JSON and more commands (P68 16)
40 Mac address table, ARP cache (P68 17)

NAPALM and BGP
41 Use NAPALM to retrieve BGP neighbor information Part 1 (P75 1)
42 Use NAPALM to retrieve BGP neighbor information Part 2 (P75 2)
43 Use NAPALM to retrieve BGP neighbor information Part 3 (P75 3)
44 NAPALM Multiple BGP neighbors (P75 4)
45 NAPALM and bigger BGP Network Part 1 (P75 5)
46 NAPALM and bigger BGP network Part 2 (P75 5b)

Use NAPALM for device configuration audit and changes
47 Use NAPALM to configure Access lists (P75 6)
48 Check if ACL already exists and add if missing (P75 7)
49 Use NAPALM for auditing device configs (P75 8)
50 Use NAPALM to add multiple config files (P75 9)
51 NAPALM Multiple config files, multiple devices (P75 10)

Iteration Examples Netmiko scripts
52 Netmiko Iteration Script Overview
53 Netmiko Iteration (Script 1) Basic Script
54 Netmiko Iteration (Script 2) Open a file of commands
55 Netmiko Iteration (Script 3) Configure multiple devices using a file of devices
56 Netmiko Iteration (Script 4) Remove passwords from script
57 Netmiko Iteration (Script 5) Except (Error) Handling
58 Netmiko Iteration (Script 6) Determine device types and run specific device typ
59 Netmiko Iteration (Script 7) Iterate device type script

Netmiko Scaling
60 Part 1 Encrypted Password File
61 Part 2 Netmiko Sequential Part 1
62 Part 3 Netmiko Sequential Part 2
63 Part 4 Netmiko Multithreading
64 Part 5 Netmiko Thread Pools

Python Theory
65 Theory topics – very short (P62 14 15)
66 Keep learning (P61 26)
67 and 3 setup (P61 27)
68 and 3 examples (P61 28)
69 Basic Hello World Scripts (P61 29 30)

Python Theory Objects, Variables and Data Types
70 Python Objects (P61 1)
71 Python Objects Part 2 (P61 2)
72 Python Variables (P61 3)
73 Python Variables Part 2 (P61 4 5)
74 Python Variables Part 3 (P61 6)
75 Python Variables Part 4 (P61 7 8)
76 Data Types (P61 9)
77 Data Type testing (P61 10)

Python Theory Numbers
78 Introduction (P61 19)
79 Numeric Types (P61 11)
80 Int and Float (P61 12)
81 Operators (P61 14)
82 Operators Part 2 (P61 15 16)
83 Operators (P61 17 18)
84 bin hex oct (P61 20)
85 binary decimal octal number examples (P62 1)
86 int calculation (P62 2)
87 Floats (P62 3)

Python Theory Strings
88 strings (P62 4)
89 strings (GT 06-8-17 7 8)
90 convert to a string using str() (P62 10)
91 escape special character meaning with (P62 12)
92 strings (P62 9)
93 string concatenation with + (P62 13)
94 multiplication operator (P62 16)
95 string offsets – extract characters with [] (P62 17)
96 string slice slicing (P62 string)
97 string slice slicing 2 (P62 1string)
98 string slice slicing 3 (P62 2string)
99 lower upper (P73 11)
100 startswith endswith (P73 12)
101 strip lstrip rstrip (P73 13)
102 isdigit (P73 14)
103 count (P73 15)
104 Old Style text using % (P66 24)
105 Strings New way to do text using {} (P73 16)
106 dir (P73 9)

Get version information from a switch
107 Get show version from switch (P65 14)
108 Telnet and string offset (P65 16)
109 Show version using len (P65 17)
110 Split 1 (P65 18 21)
111 Split 2 (P73 18)
112 List and join (P73 17)
113 List and len – use Interface example (P73 25)
114 Index introduction(P66 1)
115 Real switch get version using index and slice (P66 2 3)
116 Python3 telnet to switch (P66 4)
117 Count (P66 6)
118 Use find to get information from a real switch (P66 10)
119 Python3 Telnet versus Python2 – Find version of software (P66 11)
120 find not found (P66 12)
121 String methods – upper (P66 13)
122 String methods – startswith and endswith (P66 14)
123 String methods – strip (P66 15)
124 String methods – split demo (P66 16)
125 String methods – Join (P66 17 18)
126 String methods – is it in string (P66 19)
127 String concatenation (P66 20)
128 Capitalize, upper, lower, swap (P66 23)

Python Theory Comparisons
129 Boolean comparisons
130 Boolean Truth Table
131 Boolean Truth Table Demo
132 false conditions

Python Theory Lists
133 Lists versus tuples
134 lists
135 create a list using split
136 lists in lists
137 lists versus tuples – documentation
138 list merge and extendC
139 List methods
140 lists insert and delete
141 list pop index and in
142 reverse sort
143 len copy list

Python Theory Tuples
144 tuples
145 Tuples and Sequences v2

Python Theory Code Structures
146 Comments in Code (P72 2)
147 Line Continuation (P72 3)

Python Theory if else elseif logic
148 if logic
149 physical router demonstration
150 esleif

Python Theory While Loops
151 while loop
152 infinite while loop with break
153 infinite while loop with continue
154 while loop with a list
155 while loop with else

Python Theory For Loops
156 for loops
157 for loop with dictionary
158 for loop with if and lists

Python Theory Ranges
159 Ranges 1
160 Ranges 2

Python Theory Dictionaries
161 Dictionary Theory (P70 17)
162 Dictionary Demo (P70 18)
163 Combine Dictionaries (P70 19)
164 Dictionaries Clear and check (P70 20)
165 Dictionaries Add values (P70 21)

Python Theory Functions
166 Functions Intro
167 Functions Intro Part 2
168 Functions Part 3
169 Functions – Netmiko and Router
170 Functions – Netmiko and Router
171 Function 6 – Named keyword arguments (Netmiko)

Homepage