Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 2.37 KB

README.md

File metadata and controls

49 lines (41 loc) · 2.37 KB
BRANCH STATUS
master Unit-Testing, Coverage, Linting
develop Unit-Testing, Coverage, Linting

Downloads Supported Versions

pyats-genie-command-parse

This is a library to be able to parse NOS command output using the available Genie parsers, it seperates out needing to create a testbed.yml, and allows you to just get the output, and parse the output with Genie parsers. You can find the Genie Parse Source here

Line 55 in pyats_genie_command_parse.py

 supported_nos = {'aireos',
                  'apic',
                  'asa',
                  'bigip',
                  'cheetah',
                  'comware',
                  'dnac',
                  'gaia',
                  'ios',
                  'iosxe',
                  'iosxr',
                  'ironware',
                  'junos',
                  'linux',
                  'nxos',
                  'sros',
                  'viptela'}

Some options to get the data

  1. You could use netmiko to get the command output from devices and then parse using the string parser.

  2. You could use Cisco Network Services Orchestrator "NSO" to get the command output from devices and then parse using the string parser.

  3. Use your imagination, as long as you can get the output data in a string format the string parser will work.

  4. If you prefer you could store the data in a text file, and then using the file parser, you can also parse the output data.