Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jinja2 issue
{% for interface in interfaces %}
{% if interface['auto-up'] is defined %}{% if interface['auto-up'] in ('yes', 'true', 'on') %}auto {{ interface.name }}{% endif %}{% endif %}
iface {{ interface.name }} inet {{ interface.type }}
{% if interface.address is defined %} address {{ interface.address }}{% endif %}
{% if interface.gateway is defined %} gateway {{ interface.gateway }}{%- endif -%}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.