network/salt/ospf/ospfd.conf

31 lines
784 B
Plaintext
Raw Normal View History

2016-11-28 23:49:37 +01:00
log file /var/log/quagga/ospfd.log
2016-11-08 22:36:08 +01:00
{%- set id = salt['grains.get']('id') %}
{%- set core_ifaces = ['br-core', 'core'] %}
{%- for iface in core_ifaces %}
interface {{ iface }}
2016-11-08 23:39:50 +01:00
ip ospf network broadcast
2016-11-08 22:36:08 +01:00
ip ospf authentication message-digest
2016-11-08 23:39:50 +01:00
! TODO:
2016-11-16 02:29:16 +01:00
ip ospf message-digest-key 1 md5 {{ pillar['ospf']['ospf_secret'] }}
2016-11-08 22:36:08 +01:00
{%- endfor %}
router ospf
router-id {{ pillar['hosts-inet']['core'][id] }}
passive-interface default
{%- for iface in core_ifaces %}
no passive-interface {{ iface }}
{%- endfor %}
2016-11-08 23:50:05 +01:00
network 172.20.72.0/21 area 0
2016-11-08 22:36:08 +01:00
area 0 authentication message-digest
2016-11-26 01:03:30 +01:00
{%- set redistribute = pillar['ospf'].get('redistribute') %}
2016-11-22 20:01:49 +01:00
{%- if redistribute %}
{%- for kind in redistribute %}
redistribute {{ kind }}
{%- endfor %}
{%- endif %}