PNPP - Practical Network Programming in Python

Sunset Learning Institute
Training overview
Professional Course
On-site
5 days
From 4,395 USD
Start dates
North America
4,395 USD
Inquire for more information about Dates

Course description

PNPP - Practical Network Programming in Python

This 5-day course balances lecture and lab exercises to ensure students can apply key Python programming knowledge and skills required to address network automation challenges in a multi-vendor infrastructure. Learn to automate with complex configurations, and then validate and audit what you've done.  "You can't automate what you don't understand!"

Want to find out more?

COVID-19 Update

In light of COVID-19, this provider is now delivering some or all of their courses online. Contact them for more information!

Who should attend?

This course is designed for network architects and network engineers that have experience designing, building and maintaining enterprise and/or service provider networks. It is expected that the student has a strong network engineering background but may have limited programming or scripting experience.

Training content

Module 1 – Intro to Python

Lesson 1

Introduction to Python:

In this lesson students will review programming basics, learn the fundamentals of Python and examine its code structure and program flows. They will also learn how libraries are used to communicate with networking equipment.

Lesson Objectives:

After completing this lesson, the student will be able to: 

  • Demonstrate basic programming knowledge
  • Use the PyCharm IDE to create, edit, execute and debug and manage Python applications
  • Describe Python code flow and execution
  • List various network programming libraries and describe how to use them to communicate with various network devices through a Python application
  • Examine network device configuration from a Python perspective

Day 1:

  • Introduction to Python and Programming Languages
    • Interpreted vs Compiled Languages
    • How a script executes
  • IDE – Intro to PyCharm Community Edition
    • Creating a project
    • Editing code, code completion
    • Running a program
    • Breakpoints and debugging
    • Version control – Gitlab
  • Data-types in Python
    • Numerics, Strings, Lists, Tuples, Dictionaries
  • Flow control
    • For loops
    • If/then/elif
    • While loops
  • Network Programming Library Overview
    • Sshpass, pexpect and calling command line tools from python
    • Netmmiko
    • Yang Explained
    • Netconf, ncclient
    • Restconf

Lesson 2

Exploring Network Device Data Formats:

This lesson focuses on communicating with network devices and the various formats of data produced through interactions with those pieces of networking equipment. Through this exploration students will become comfortable with working with network programming libraries.

Lesson Objectives:

After completing this lesson, the student will be able to:

  • Issue commands and Inspect/manipulate varied network device output using Python libraries
  • Describe the type of output provided by different network programming libraries
  • Use the IDE to examine capabilities and limitations of various network programming libraries
  • Use the IDE debugger to step through Python code to discover how to communicate with a device programmatically

Day 2

  • Modeling Network Configuration CLI in python
    • Templates in Jinja2/Yaml
  • Configuration Management
  • Auditing and State Validation
    • JSON vs XML vs raw CLI
  • ‘Show command’ parsing
    • Python string operations
    • TextFSM
    • Genie parser
    • Json-pretty filter
  • Device Capabilities:
    • Cisco: IOS, XE, XR, NXOS (all different approaches)
      • YDK, Yang Explorer
      • pyATS
    • Juniper JUNOS:
      • Unified library: pyez
    • Arista EOS:
      • Unified library: pyeapi
  • Device Real-time Interaction and debugging
    • Netmiko programming
    • Nexus NX-API
    • IOS-XE Rest API

Module 2 – Network Operations Automation

Lesson 1

Network Device Orchestration

In this lesson students will leverage their strong understanding of the network from an architectural view and how to use a services-model approach to plan, automate and validate network functionality. Students will learn how to think like a programmer when addressing network configuration challenges; this insight will also help improve communications in environments where their developers and network engineers exist in separate teams.

Lesson Objectives:

After completing this lesson, the student will be able to:

  • Approach network configuration from a programmer’s perspective
  • Use a service-chaining approach to building applications
  • Validate and audit operational state and configurations ensuring performance as expected

Day 3

  • Intro to device orchestration
  • Environment and command line variables and Python
    • Code re-use/abstraction
  • Working with a Datacenter Design
    • Service chain definition – enabling a new application launch in the datacenter
      • Vlan management automation
        • Layer 2 validation
      • Interface management automation
        • Layer 3 validation
      • BGP/OSPF/Routing configuration automation
        • Routing and Protocol validation
      • Security Automation
        • ACL Validation
        • CDP/LLDP Validation

Lesson 2

Configuration, Validation and Auditing:

In this lesson students will create/modify live device configurations. Topics covered include non-destructive configuration modifications, configuration management, sequential vs. parallel execution and other best practices. Students will apply what they learned in the previous model to validate and audit their automated network configuration changes.

Lesson Objectives:

After completing this lesson, the student will be able to:

  • Build and modify device configurations
  • Validate and audit applied configurations and changes
  • Plan for practical deployments and assess dependencies and scaling requirements
  • Turn large configuration files into a database structure for querying

Day 4

  • Multi Device and Dependency Management – Sequencing
  • Full configuration management
    • Jinja2 / YAML config creation
    • Artifact storage
      • Configlets (Jinja)
      • Devce state templates (Genie, TextFSM)
    • CMDB – Device Inventory
    • Data based python scripting
      • SQLite

Lesson 3

Network Automation Ecosystems:

In this lesson students will explore the principles of Continuous Integration/Continuous Development (CICD) for the purposes of version control and pipeline execution. Additionally, students will learn to use the Robot Framework to drive their custom automation solutions and to call 3rd party Python libraries, import their own custom libraries, and leverage its powerful validation, auditing and reporting functionality.

Lesson Objectives:

After completing this lesson, the student will be able to:

  • Customize their automation toolset to address their specific device mix and functional needs
  • Use Robot Framework to call Python libraries and audit network functionality
  • Discuss how they can apply the solutions developed in this course to automation frameworks beyond Robot Framework such as Ansible.

Day 5

  • Gitlab – CICD Introduction
    • Version Control
    • Pipeline execution
  • Robot Framework
    • Why Robot – a look at the automation ecosystems available
      • Ansible, Puppet, Chef, Salt
    • Robot scripts and keywords
    • Calling 3rd party and custom python libraries from Robot scripts
    • Combining:
      • Configuration Management
      • Health Checks
      • Auditing and Reporting

Why choose SLI?

Award-winning instructors

Over 50 training locations across North America

All dates are guaranteed-to-run

About SLI

Sunset Learning Institute

Sunset Learning Institute

Sunset Learning Institute is an authorized training center, helping our customers optimize their technology investments by providing convenient, high quality technical training that they can rely on. We empower students to master their desired technologies for their unique environments. What...


Read more and show all training delivered by this supplier

Request info

Fill out your details to find out more about PNPP - Practical Network Programming in Python.

  Contact the provider

  Get more information

  Register your interest

Contact info

Sunset Learning Institute


 Show phone number
www.sunsetlearning.com


Request Information

Have a question about this course? Fill out this form and the provider will get in touch with you shortly

View again
Supplier Directory
Join our Supplier Directory to:
- Gain Traffic
- Get Noticed
- Showcase Your Services
- Free Listing Available