Templates
Author Jinja2 configuration templates with variables, versioning, rendering, and reusable examples.
6 articles
Template Basics
What configuration templates are in NetStacks -- Jinja documents you author, render with variables, and snapshot. Create your first template here.
Jinja2 Syntax
Jinja2 templating in NetStacks via the MiniJinja engine -- variables, if/elif/else, for loops, filters, tests, and whitespace control with copy-paste examples.
Variables & Extraction
How NetStacks discovers Jinja2 variables from a template to build the render form, and how you supply a flat JSON object of values at render time.
Template Versioning
How NetStacks snapshots document and template history on every save, and how to list, view, and restore previous versions via the /api/docs version routes.
Rendering & Preview
Preview rendered Jinja2 template output in NetStacks: render a template with a flat variables object and read back output, success, and inline error messages.
Example Templates
Copy-pasteable Jinja2 template examples for VLAN, ACL, BGP, OSPF, and interface configs across Cisco IOS, NX-OS, Juniper JunOS, and Arista EOS.
Need Help?
Can't find what you're looking for? Browse all documentation or get in touch.