2017-10-08 09:29:55 +02:00
|
|
|
#jinja2: trim_blocks:False
|
2017-10-06 22:58:00 +02:00
|
|
|
{% set ip4hex = item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
2017-09-05 12:01:27 +02:00
|
|
|
{% set mac = '0201' + ip4hex -%}
|
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
2017-11-06 21:24:56 +01:00
|
|
|
auto {{ item.id }}bat
|
|
|
|
iface {{ item.id }}bat
|
2017-10-03 14:37:39 +02:00
|
|
|
hwaddress {{ mac | hwaddr('linux') }}
|
2018-09-09 19:49:19 +02:00
|
|
|
batman-ifaces {{ item.id }}0 {% if ffmwu_server_type == 'gateway' %}{% for instance in item.fastd.nodes.instances %}{{ item.id }}vpn-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %} {% endif %}{% for instance in item.fastd.backbone.instances %}{{ item.id }}igvpn-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %}
|
2017-10-06 22:58:00 +02:00
|
|
|
batman-hop-penalty {{ item.batman.hop_penalty }}
|
|
|
|
post-up /usr/sbin/batctl -m $IFACE it {{ item.batman.it }}
|
|
|
|
post-up /usr/sbin/batctl -m $IFACE mm {{ item.batman.mm }}
|
|
|
|
post-up /usr/sbin/batctl -m $IFACE dat {{ item.batman.dat }}
|
2018-09-09 10:26:23 +02:00
|
|
|
{% if ffmwu_server_type == 'gateway' %} post-up /usr/sbin/batctl -m $IFACE gw {{ item.batman.gw }}{% endif %}
|