Creating programming logic to work with the tremendous amount of data that must be parsed and generated as part of an automation workflow has become one of the biggest challenges network practitioners face. As the number of systems involved is only increasing in today’s hybrid, multi-domain networks, stare-and-compare or copy-paste techniques are no longer feasible options to generate new configurations from a set of data.
Instead of building these functions from scratch and maintaining them manually over time, network automation engineers can utilize the Itential Automation Platform’s template features that leverage TextFSM and Jinja2 to visually create automation tasks that can parse data from device output and generate new data from templates. This provides you the ability to quickly create reusable tasks that can be used to build pre- and post-check processes, create multiple device configurations, or generate formatted output for use in other systems.
In this demo, Rich Martin, Director of Technical Marketing at Itential, shows step-by-step how to:
- Create, build, and test TextFSM templates.
- Create, build, and test Jinja2 templates.
- Build pre-check and post-check processes with templates.
- Generate formatted output with data and templates in a workflow.
(So you can skip ahead, if you want.)
06:15 Demo Overview
08:11 Building a New TextFSM Template
23:33 Using a TextFSM Template in a Workflow
37:52 Building a New Jinja2 Template
48:40 Using a Jinja2 Template in a Workflow
52:05 Combining both Templates in a Workflow
55:51 Using a Data Transformation for Parsing & Templating