summaryrefslogtreecommitdiffstats
path: root/libexec/container/stop
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-29 12:09:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-29 12:09:27 +0000
commita5f9a57a16ef34a5c6ed11ad6bd159797b47972b (patch)
tree9150a3f7c385f4563d0b5494ad19e6d87dee51ce /libexec/container/stop
parentAdding upstream version 20210628. (diff)
downloadopen-infrastructure-compute-tools-a5f9a57a16ef34a5c6ed11ad6bd159797b47972b.tar.xz
open-infrastructure-compute-tools-a5f9a57a16ef34a5c6ed11ad6bd159797b47972b.zip
Adding upstream version 20210629.upstream/20210629
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libexec/container/stop')
-rwxr-xr-xlibexec/container/stop6
1 files changed, 6 insertions, 0 deletions
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