Creating Genie Parsers – Part 2

Stage Two – Walk-through of the Parser script Having setup the environment then the first thing we need to explore is the structure of the files and the directories. For this example, I will be writing a parser for show ip nbar protocol discovery The first thing of note is to know where the existingContinue reading “Creating Genie Parsers – Part 2”

Creating Genie Parsers – Part 1

Stage One – Preparation (covered in Part 1) Stage Two – Walk-through of the Parser Script (covered in Part 2 and Part 3) Stage Three – Creating of the Parser Schema (covered in Part 4) Stage Four – Unit test and submission (covered in Part 5) The guys who know me will be aware thatContinue reading “Creating Genie Parsers – Part 1”

Working with Dictionaries and using pyATS DQ

The first thing when using the inbuilt Python functions are that most do not have networking specific examples. Sometimes I find it confusing to look at the vanilla examples because I can’t relate the content back to a specific networking example. In this post, I’ll review a couple of options around extracting data from aContinue reading “Working with Dictionaries and using pyATS DQ”

Customizing pyATS – AeTest – Part 2

In part 1, we created a yaml file with some custom data. We mapped that into a python dictionary within a module called custombits which we created. We then imported that into our AeTest job file so we could pick and choose which jobs we ran and the ordering of those jobs. Before reading onContinue reading “Customizing pyATS – AeTest – Part 2”

Using Genie Tabular Parser

Genie Tabular parser is really great at getting structured data from “table” formatted commands. You won’t need to go into any regex for this. The first step is identify a tabular command such as “show rib table”, “show isis topology” or “show processes cpu”. Some caveats though, if the command output is across two linesContinue reading “Using Genie Tabular Parser”

Design a site like this with WordPress.com
Get started