Role network-meshbridge: don't set individual MAC on bridge

This commit is contained in:
Julian Labus 2018-02-23 19:38:53 +01:00
parent dc72070628
commit 0d60aa9f99
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

View file

@ -5,8 +5,6 @@
# #
auto {{ item.id }}br auto {{ item.id }}br
iface {{ item.id }}br iface {{ item.id }}br
# hwaddress {{ mac | hwaddr('linux') }} <-- preferred way, not working - ipv6 addresses not set on boot
pre-up /sbin/ip link set address {{ mac | hwaddr('linux') }} dev $IFACE # ^^^ dirty workaround to get rid of
address {{ item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('ip/prefix') }} address {{ item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('ip/prefix') }}
{% for prefix in item.ipv6_ula %} {% for prefix in item.ipv6_ula %}
address {{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr(magic) | ipaddr('ip/prefix') }} address {{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr(magic) | ipaddr('ip/prefix') }}