Skip to content

Datasource Reference

This app allows users to specify a Git Repository as a source for Command Parsers. Users can leverage the parsing library of their choice, and update and maintain those parsers independently of the app itself. When a command output is collected that includes a TextFSM or TTP parser, the app will look for any Git Repositories that provide content for nautobot_operational_compliance.command_parsers and make those available for use in parsing command outputs.

The app will look for a .ttp or .textfsm file extension to determine which type of parser is being provided. The app will then use the appropriate parsing library to parse the command output according to the templates provided in the repository.

Required Directory Structure:

├── parsers
│   ├── <platform.network_driver> # e.g. cisco_ios, arista_eos, etc.
|   │   ├── <command_name>.textfsm or <command_name>.ttp # e.g. show_version.textfsm or show_version.ttp

Note

Spaces in the command name will be replaced with underscores when looking for parser files in the repository. For example, a command named show version would look for a parser file named show_version.textfsm or show_version.ttp.