summaryrefslogtreecommitdiffstats
path: root/libexec/container/stop
diff options
context:
space:
mode:
authorSimon Spöhel <simon@spoehel.ch>2021-06-29 11:52:59 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-06-29 11:55:27 +0000
commit3ff612915d66026030db5a0feabcc0aa19cb8ef2 (patch)
treea2edd58d791c4d7dbe3fe5262266dc534807a140 /libexec/container/stop
parentReleasing version 20210628. (diff)
downloadcompute-tools-3ff612915d66026030db5a0feabcc0aa19cb8ef2.tar.xz
compute-tools-3ff612915d66026030db5a0feabcc0aa19cb8ef2.zip
Using openvswitch instead of linux bridges.
Signed-off-by: Simon Spöhel <simon@spoehel.ch> Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
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