Role wireguard: explicitly set ipv6-addrgen to off

newer versions of ifupdown2 try to set the addrgen mode for interfaces
using inet6 but it seems that wireguard interfaces do not support this.
This causes a "ip link set dev <iface> down" command during every
execution of ifreload as the default mode eui6 does not mach the mode
set on the interface which is none.
This commit is contained in:
Julian Labus 2019-03-24 18:57:22 +01:00
parent 7b2f330c3a
commit fc6a062559
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

View file

@ -4,6 +4,7 @@
{% for network in my_wireguard_networks %}
auto wg-{{ network.remote[:11] }}
iface wg-{{ network.remote[:11] }}
ipv6-addrgen off
{% if magic < network.remote_magic %}
address {{ network.ipv4 | ipaddr('ip/prefix') }}
address {{ network.ipv6 | ipaddr('ip/prefix') }}