ospf: limit redistribute

This commit is contained in:
Astro 2016-11-22 20:01:49 +01:00
parent 7049cce6ba
commit 710f5973f5
3 changed files with 11 additions and 1 deletions

3
salt-pillar/ospf/gw.sls Normal file
View File

@ -0,0 +1,3 @@
ospf:
redistribute:
- connected

View File

@ -6,6 +6,7 @@ base:
- ospf
'*gw':
- dhcp
- ospf.gw
'anon1':
- vpn.anon1
- upstream.anon1
@ -16,3 +17,4 @@ base:
'server1':
- lxc-containers.server1
- switches
- ospf.gw

View File

@ -20,4 +20,9 @@ router ospf
network 172.20.72.0/21 area 0
area 0 authentication message-digest
redistribute connected
{%- set redistribute = pillar['ospf']['redistribute'] %}
{%- if redistribute %}
{%- for kind in redistribute %}
redistribute {{ kind }}
{%- endfor %}
{%- endif %}