From 702a11fd5a0296b10f4aa5b4ce3a1a7b93b293a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sp=C3=B6hel?= Date: Tue, 12 Jan 2021 10:37:19 +0100 Subject: Using openvswitch instead of linux bridges. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon Spöhel --- libexec/container/start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec') diff --git a/libexec/container/start b/libexec/container/start index f899446..6ec44f4 100755 --- a/libexec/container/start +++ b/libexec/container/start @@ -394,8 +394,8 @@ cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF allow-hotplug ${INTERFACE} iface ${INTERFACE} inet manual pre-up ip link set ${INTERFACE} up - post-up ip link set ${INTERFACE} master ${BRIDGE} - pre-down ip link set ${INTERFACE} nomaster + post-up ovs-vsctl add-port "${BRIDGE}" "${INTERFACE}" + pre-down ovs-vsctl --with-iface del-port "${BRIDGE}" "${INTERFACE}" post-down ip link set ${INTERFACE} down EOF -- cgit v1.2.3