Training
Bootcamp
Courses
Tech Sessions
Resources
Blog
Tips
GitHub
YouTube
Newsletter
Playgrounds
Pricing
Sign In
Become Member
Jinja2 Renderer
Validate and test the rendering of your Jinja templates
Tools
J2 Renderer
TTP Parser
TextFSM Parser
XPath Tester
Members Only
JMESPath Validator
JSON Schema Validator
Data Format Converter
Help Us Improve
Jinja Template
hostname {{ hostname }} ip domain-name {#- remove #} {% for int_name in interfaces -%} interface {{ int_name }} ip address {{ interfaces[int_name].ip_addr }} {{ interfaces[int_name].admin }} {% endfor -%} no logging console
Jinja Data
{ "hostname": "rtr-001", "domain_name": "packetcoders.lab", "interfaces": { "gi1/1": {"ip_addr": "10.1.1.1/24", "admin": "no shut"}, "gi1/2": {"ip_addr": "10.1.1.2/24", "admin": "no shut"}, "gi1/3": {"ip_addr": "10.1.1.3/24", "admin": "no shut"}, }, }
Result
hostname rtr-001 ip domain-name interface gi1/1 ip address 10.1.1.1/24 no shut interface gi1/2 ip address 10.1.1.2/24 no shut interface gi1/3 ip address 10.1.1.3/24 no shut no logging console
Show whitespace
Trim blocks
Lstrip blocks
Render
Share
Auto-Sync