forked from zentralwerk/network
ospf: limit redistribute
This commit is contained in:
parent
7049cce6ba
commit
710f5973f5
|
@ -0,0 +1,3 @@
|
||||||
|
ospf:
|
||||||
|
redistribute:
|
||||||
|
- connected
|
|
@ -6,6 +6,7 @@ base:
|
||||||
- ospf
|
- ospf
|
||||||
'*gw':
|
'*gw':
|
||||||
- dhcp
|
- dhcp
|
||||||
|
- ospf.gw
|
||||||
'anon1':
|
'anon1':
|
||||||
- vpn.anon1
|
- vpn.anon1
|
||||||
- upstream.anon1
|
- upstream.anon1
|
||||||
|
@ -16,3 +17,4 @@ base:
|
||||||
'server1':
|
'server1':
|
||||||
- lxc-containers.server1
|
- lxc-containers.server1
|
||||||
- switches
|
- switches
|
||||||
|
- ospf.gw
|
||||||
|
|
|
@ -20,4 +20,9 @@ router ospf
|
||||||
|
|
||||||
network 172.20.72.0/21 area 0
|
network 172.20.72.0/21 area 0
|
||||||
area 0 authentication message-digest
|
area 0 authentication message-digest
|
||||||
redistribute connected
|
{%- set redistribute = pillar['ospf']['redistribute'] %}
|
||||||
|
{%- if redistribute %}
|
||||||
|
{%- for kind in redistribute %}
|
||||||
|
redistribute {{ kind }}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in New Issue