forked from zentralwerk/network
ospf: limit redistribute
This commit is contained in:
parent
7049cce6ba
commit
710f5973f5
3
salt-pillar/ospf/gw.sls
Normal file
3
salt-pillar/ospf/gw.sls
Normal file
|
@ -0,0 +1,3 @@
|
|||
ospf:
|
||||
redistribute:
|
||||
- connected
|
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user