summaryrefslogtreecommitdiff
path: root/roles/vm/host/network
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-01-16 03:44:32 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-01-16 03:44:32 +0100
commit7911ffbbd2f987ea71378cc610dccadb5db95064 (patch)
tree06a3260602086c633a86099a6524c104c6603dfe /roles/vm/host/network
parentch-prometheus: upgrade to bullseye spreadspace/main repo needed for sanoid is... (diff)
vm/host/network: add workaround for bug in debian bullseye
Diffstat (limited to 'roles/vm/host/network')
-rw-r--r--roles/vm/host/network/templates/interfaces.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/vm/host/network/templates/interfaces.j2 b/roles/vm/host/network/templates/interfaces.j2
index 284c1cb6..0151eb45 100644
--- a/roles/vm/host/network/templates/interfaces.j2
+++ b/roles/vm/host/network/templates/interfaces.j2
@@ -8,7 +8,10 @@ iface lo inet loopback
## pyhiscal interfaces
+{# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990428
{% for interface in network.bonds | default([]) | map(attribute='slaves') | flatten | union(network.vlans | default({}) | list) | difference(network.bonds | default([]) | map(attribute='name') | list) | sort | unique %}
+#}
+{% for interface in network.vlans | default({}) | list | difference(network.bonds | default([]) | map(attribute='name') | list) | sort | unique %}
auto {{ interface }}
iface {{ interface }} inet manual
pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra