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:06:55 +01:00
|
|
|
ip ospf message-digest-key 1 md5 {{ 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-16 02:06:55 +01:00
|
|
|
redistribute connected
|