Created
May 16, 2011 13:39
-
-
Save bassdread/974446 to your computer and use it in GitHub Desktop.
jinja2 issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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