Config template generator
Write a config snippet once with {{ placeholders }}, paste a table from a spreadsheet, and get the filled-in config for every row: port configs, VLANs, firewall objects or a base config per switch. Nothing leaves your browser.
Start from
Template
Template syntax
- {{ vlan }}
- The value of the column named vlan.
- {{ name | upper }}
- Filters: upper, lower, trim, default("x"), replace("Gi", "GigabitEthernet").
- {% if voice %} … {% endif %}
- Only when the cell is not empty (also: not, == "x", != "x", elif, else). Empty, 0, no and false count as empty.
- {% for v in vlans %} … {% endfor %}
- Repeats for each item of a cell split on , ; or new lines; 10-12 becomes 10, 11, 12. loop_index counts from 1.
A line holding only an if / for statement disappears from the output.
Data
First row = column names. Paste straight from Excel or Sheets (tabs), or type CSV with commas or semicolons.