Skip to content

Instantly share code, notes, and snippets.

@drybjed
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drybjed/10974527 to your computer and use it in GitHub Desktop.
Save drybjed/10974527 to your computer and use it in GitHub Desktop.
# Config file
{% for interface in interfaces %}
{% if interface.additional is defined and interface.additional %}
{% if interface.additional['border'] is defined and interface.additional['border'] %}
- id: 101
kernel:
name: {{ prefix_tables }}{{ interface.name }}
ospf:
scan_time: 20
import: none
export: all
{% endif %}
{% endif %}
{% endfor %}
# Config file
- id: 101
kernel:
name: prefix_eth0
ospf:
scan_time: 20
import: none
export: all
- id: 101
kernel:
name: prefix_eth1
ospf:
scan_time: 20
import: none
export: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment