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-10-06 22:58:00 +02:00
|
|
|
auto {{ item.id }}BAT
|
|
|
|
iface {{ item.id }}BAT
|
2017-10-03 14:37:39 +02:00
|
|
|
hwaddress {{ mac | hwaddr('linux') }}
|
2017-10-06 22:58:00 +02:00
|
|
|
batman-ifaces {{ item.id }}0 {{ item.id }}VPN {{ item.id }}igVPN
|
|
|
|
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 gw {{ item.batman.gw }}
|
|
|
|
post-up /usr/sbin/batctl -m $IFACE mm {{ item.batman.mm }}
|
|
|
|
post-up /usr/sbin/batctl -m $IFACE dat {{ item.batman.dat }}
|