63ca114c95
- migrate dictionary `ipv6` into two simple lists - migrate dictionary `forward_zones` into a list
14 lines
626 B
Django/Jinja
14 lines
626 B
Django/Jinja
{% set ip4hex = item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
|
{% set mac = '0201' + ip4hex -%}
|
|
#
|
|
# {{ ansible_managed }}
|
|
#
|
|
auto {{ item.id }}BAT
|
|
iface {{ item.id }}BAT
|
|
hwaddress {{ mac | hwaddr('linux') }}
|
|
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 }}
|