|
@@ -92,7 +92,7 @@ protocol ospf IGP {
|
|
|
{%- if grains['id'] in vpn_config %}
|
|
|
{%- set host_config = vpn_config.get (grains['id'], {}).get ('config', {}) %}
|
|
|
{%- set interface = host_config.get ('interface', vpn_config.get ('interface', '')) %}
|
|
|
- {%- if interface.startswith ('bb-') or interface.startswith ('ovpn-') or interface.startswith ('oob-') %}
|
|
|
+ {%- if interface.startswith ('ovpn-') %}
|
|
|
{%- do interfaces.update({interface: { 'cost': vpn_config.get (grains['id'], {}).get ('config', {}).get ('cost', False) }}) %}
|
|
|
{%- endif %}
|
|
|
{%- endif %}
|
|
@@ -112,10 +112,6 @@ protocol ospf IGP {
|
|
|
{%- else %}
|
|
|
cost 10000;
|
|
|
{%- endif %}
|
|
|
-
|
|
|
- {%- if interface.startswith ('oob-') %}
|
|
|
- stub yes;
|
|
|
- {%- endif %}
|
|
|
};
|
|
|
{% endfor %}
|
|
|
|