This repository contains my python (3) script examples that focus on use cases for Network Engineers...
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
This repository contains my python script examples that focuses on use cases for Network Engineers. They are explained in more detail in the associated Blog posts at the Coding Networker Blog.
The following examples are included in this repository:
JSON data structure
HTTP calls using the python requests library - How to use the requests library in python based on the example code from the Cisco NX-API post ("interface description cleaner")
Reconfigure static ARP entries using ciscoconfparse - This post describes how to parse an existing configuration and reconfigure it using the example of static ARP entries (from Cisco VSS to Cisco vPC)
Introduction to the python ipaddress module - quick introduction to the python ipaddress module
Parse Cisco IOS configurations with RegEx - some basic examples how to parse Cisco IOS configuration using regular expressions
Parse Cisco IOS configuration using ciscoconfparse - examples how to parse Cisco IOS configuration using ciscoconfparse (follow up to the last post)
Extract CLI commands from Session Logs - short script to split multiple CLI commands and outputs from multiple text files (e.g. putty session logs)
Pandas DataFrame 101 - introduction to pandas DataFrames
Merge DataFrames in Pandas - how to merge pandas DataFrames based on an example using Excel
Reliable Config Generation with Python - wrapper around the Jinja2 environment that provides several filters for network configuration templates and a content error check functionality
In the post about Vagrant, I'll explain how to execute the examples within a virtual machine. This Vagrant VM also contains a pre-configured Jupyter environment, which is described in more detail in the post about Jupyter: an interactive web-based python shell.