2f32bd6c1e
- rewrite interface templates for batman, fastd, ffrl and meshbridge - add package ethtool to role server-basic - use more ipaddr filters and get rid of unneeded variables in dict ffrl_exit_server - change ffrl_public_ipv4_nat variable to ip/prefix format - update readme files
8 lines
258 B
Django/Jinja
8 lines
258 B
Django/Jinja
{% set ip4hex = item.value.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
|
{% set mac = '0211' + ip4hex -%}
|
|
#
|
|
# {{ ansible_managed }}
|
|
#
|
|
auto {{ item.key }}VPN
|
|
iface {{ item.key }}VPN
|
|
hwaddress {{ mac | hwaddr('linux') }}
|