From 3ff612915d66026030db5a0feabcc0aa19cb8ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sp=C3=B6hel?= Date: Tue, 29 Jun 2021 13:52:59 +0200 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 Signed-off-by: Daniel Baumann --- libexec/container/stop | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libexec/container/stop') diff --git a/libexec/container/stop b/libexec/container/stop index 58fc0e9..52b40d1 100755 --- a/libexec/container/stop +++ b/libexec/container/stop @@ -261,6 +261,12 @@ case "${VERBOSE}" in ;; esac +VETHS="$(awk -Fnetwork-veth-extra= '/^network-veth-extra=/ { print $2 }' ${CONFIG}/${NAME}.conf | awk -F: '{ print $1 }')" +for VETH in ${VETHS} +do + ovs-vsctl --if-exist del-port "${VETH}" +done + machinectl ${MODE} ${NAME} case "${FORCE}" in -- cgit v1.2.3