|
@@ -56,16 +56,6 @@ protocol ospf IGP {
|
|
|
stub yes;
|
|
|
};
|
|
|
|
|
|
-{#-
|
|
|
- # Wired / Wireless IP-Backbone links
|
|
|
- #
|
|
|
- # Prefer direct Layer2 connections (via Ethernet cable or WBBL) between nodes
|
|
|
- # Vlan 10xy are direct wired Ethernet connection
|
|
|
- # Vlan 20xy are AF-X based WBBL
|
|
|
- # Vlan 22xy are non-AF-X based WBBL
|
|
|
- #
|
|
|
- # Watch management interfaces as stub interfaces.
|
|
|
- #}
|
|
|
{%- set ospf_interface_config = salt['ffho_net.get_ospf_interface_config'](node_config, grains['id']) %}
|
|
|
{%- for iface in ospf_interface_config|sort %}
|
|
|
{%- set config = ospf_interface_config.get (iface) %}
|
|
@@ -79,7 +69,12 @@ protocol ospf IGP {
|
|
|
# {{ config.get ('desc') }}
|
|
|
{%- endif %}
|
|
|
{%- for attr in config|sort if attr not in ['desc'] %}
|
|
|
- {{ attr }} {{ config.get (attr) }};
|
|
|
+ {%- set value = config.get (attr) %}
|
|
|
+ {#- 'is bool' only introduced in Jinja 2.11 #}
|
|
|
+ {%- if salt['ffho.is_bool'](value) %}
|
|
|
+ {%- set value = 'yes' if value else 'no' %}
|
|
|
+ {%- endif %}
|
|
|
+ {{ attr }} {{ value }};
|
|
|
{%- endfor %}
|
|
|
};
|
|
|
|