Last active
August 29, 2015 14:18
-
-
Save remoteur/5cd291f364ce422e5797 to your computer and use it in GitHub Desktop.
OSPF Lab Jinja template
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
config.j2 | |
{% for iface in item.int %} | |
interface {{ iface.name }} | |
no shutdown | |
ip address {{ iface.address }} {{ iface.netmask }} | |
{% endfor %} | |
router ospf 1 | |
{% for iface in item.int %} | |
{% if iface.ospf == "yes" %} | |
network {{ iface.address }} 0.0.0.0 area 0 | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment