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
{{ interfaces | selectattr('device', 'equalto', "spine1") | list | pprint }}
Jinja Data
interfaces: - { device: 'spine1', interface: 'GigabitEthernet0/0', ip: '10.1.1.1' } - { device: 'spine1', interface: 'GigabitEthernet0/1', ip: '10.1.2.1' } - { device: 'spine2', interface: 'GigabitEthernet0/0', ip: '10.2.1.1' } - { device: 'spine2', interface: 'GigabitEthernet0/1', ip: '10.2.2.1' } - { device: 'leaf1', interface: 'GigabitEthernet0/0', ip: '10.1.1.2' } - { device: 'leaf1', interface: 'GigabitEthernet0/1', ip: '10.2.1.2' } - { device: 'leaf2', interface: 'GigabitEthernet0/0', ip: '10.1.2.2' } - { device: 'leaf2', interface: 'GigabitEthernet0/1', ip: '10.2.2.2' }
Result
[{'device': 'spine1', 'interface': 'GigabitEthernet0/0', 'ip': '10.1.1.1'}, {'device': 'spine1', 'interface': 'GigabitEthernet0/1', 'ip': '10.1.2.1'}]
Show whitespace
Trim blocks
Lstrip blocks
Render
Share
Auto-Sync