From d0de3076c2675cc0567d93a35f0bb9f216ab3cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sp=C3=B6hel?= Date: Wed, 14 Apr 2021 09:47:41 +0200 Subject: stop openvswitch version. --- libexec/container/stop | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libexec') diff --git a/libexec/container/stop b/libexec/container/stop index 98b2afa..3df5493 100755 --- a/libexec/container/stop +++ b/libexec/container/stop @@ -264,6 +264,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