24 lines
600 B
Plaintext
24 lines
600 B
Plaintext
{%- set id = salt['grains.get']('id') %}
|
|
{%- set core_ifaces = ['br-core', 'core'] %}
|
|
|
|
{%- for iface in core_ifaces %}
|
|
interface {{ iface }}
|
|
ip ospf network broadcast
|
|
ip ospf authentication message-digest
|
|
! TODO:
|
|
ip ospf message-digest-key 1 md5 {{ pillar['ospf']['ospf_secret'] }}
|
|
|
|
{%- endfor %}
|
|
|
|
router ospf
|
|
router-id {{ pillar['hosts-inet']['core'][id] }}
|
|
|
|
passive-interface default
|
|
{%- for iface in core_ifaces %}
|
|
no passive-interface {{ iface }}
|
|
{%- endfor %}
|
|
|
|
network 172.20.72.0/21 area 0
|
|
area 0 authentication message-digest
|
|
redistribute connected
|