NRE-Bytes

Morsels of NRE Wisdom

Turbocharge your Jinja2 Templates

Optimize your network configuration templating using Jinja2 tweaks

Jinja2 Templating for Network Configuration Management A critical part of Network Automation is Network Configuration management, which involves creating tooling or frameworks for maintaining, modifying, verifying and pushing configurations to network devices. In order to scale in a multi-vendor network environment, these configurations are often maintained as templates that are then rendered using variables ( usually YAML files or Python dictionaries ) according to specific business logic. Jinja2 is a Python based templating engine commonly used for this purpose.