|
@@ -2,10 +2,6 @@
|
|
|
# {{ site }} / {{ network }} FASTd configuration (Salt managed)
|
|
|
#
|
|
|
{%- set node_config = salt['pillar.get']('nodes:' ~ grains['id']) %}
|
|
|
-{%- set meshif = "meshif" %}
|
|
|
-{%- if grains.oscodename != "buster" %}
|
|
|
- {%- set meshif = "-m" %}
|
|
|
-{%- endif %}
|
|
|
|
|
|
log to syslog level info;
|
|
|
|
|
@@ -52,15 +48,13 @@ on up "
|
|
|
ip link set address {{ mac_address }} dev $INTERFACE
|
|
|
ip link set $INTERFACE up
|
|
|
|
|
|
- batctl {{ meshif }} {{ bat_iface }} if add $INTERFACE
|
|
|
-{%- if grains.oscodename == "buster" %}
|
|
|
+ batctl meshif {{ bat_iface }} if add $INTERFACE
|
|
|
# Make VPN more expensive than intra DC/DCI/WBBL links
|
|
|
- batctl hardif $INTERFACE hop_penalty 50
|
|
|
-{%- endif %}
|
|
|
+ batctl hardif $INTERFACE hop_penalty {{ iface_penalty }}
|
|
|
";
|
|
|
|
|
|
on down "
|
|
|
- batctl {{ meshif }} {{ bat_iface }} if del $INTERFACE
|
|
|
+ batctl meshif {{ bat_iface }} if del $INTERFACE
|
|
|
";
|
|
|
|
|
|
{%- if network_type == 'nodes' %}
|