Python Programming for Network Engineers

Course Length :  30 Hours

Course Description

It provides you with an understanding of programming in Python. You also gain knowledge that helps you automate repetitive networking tasks and provides you with useful programming tools to use in your day-to-day job.

This course teaches you how to manage a network more efficiently with network programmability as you develop Python programming fundamental skills.

Course Prerequisites

Experience with network management (CCNA-level recommended)

Outline

  1. Introduction to Python Language
    • Setting up environment (Compiler, IDEs)
    • Your first Program
    • Comment
    • Print function (built in)
    • Printing string, number
    • Basic data types
    • Variables
    • Basic Math operations
    • Basic String operations and functions (concat, len, case …)

 

  1. Conversions from string to numeric
    • Keyboard Input (Python 2 vs Python 3 difference)
    • Booleans expressions
    • Conditional statements
    • Basics of Lists, dictionaries, tuples / sets (rarely used, just mention only)

 

  1. String formatting
    • escape characters,
    • use of 2 quotation types,
    • None data type,
    • check for existence,
    • Math Operations as mod, floor, round, exponential
    • Basic 2 types of For Loops

 

  1. For loops – continued
    • While loop, break, infinite loop and crashing
    • String and List similarities and differences
    • Strings more functions, (split, slice, convert to list)

 

  1. Lists more functions
    • Lists more functions, (split, slice, convert to list, composition, in)
    • Range function
    • Using For loops with range and iteratable object, index & value
    • Lab1: Generate a set of IP addresses

 

  1. Install GNS3
    • Get router images,
    • Create loopback
    • Set up environment
    • Lab2: Generate a set of commands to create loopbacks in a Router

 

  1. Functions
    • Parameters, return values,
    • Calling function, Getting return value
    • Default parameter
    • Lab3: Create a Calculator with 4 basic operations
  2. Validation
    • Exception Handling
    • Debug methods
    • Lab4: Use of Print to trace the bug
    • Lab5: Catch /Handle errors

 

  1. Importing modules
    • Random numbers
    • os and subprocess (DOS Commands)
    • Lab4: Get Directory, IPConfig
    • Lab5: File Renaming according to a customer need

 

  1. Extract data from a string
    • Lab 6: Programmatically get the IP address of the machine using IPConfig

 

  1. Reading and Writing files
    • Different File Formats (CSV,XML, JSON…)
    • Downloading files from the Internet
    • Lab6: Reading data in a CSV file and based on that generate script to a file.
    • Lab7: Reading data in a JSON file and based on that generate script to a file.

 

  1. Install Putty
    • Lab7: Use telnetlib to configure a router

Information Request

Apply to course now

Python Programming for Network Engineers

  • Duration :   30 Hours
  • Certificates :   Yes

Next Class Start Date - Call us at (416) 292-0003

Quick Facts

It provides you with an understanding of programming in Python. You also gain knowledge that helps you automate repetitive networking tasks and provides you with useful programming tools to use in your day-to-day job.