summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorSimon Spöhel <simon@spoehel.ch>2021-04-14 07:47:41 +0000
committerSakirnth Nagarasa <sakirnth@gmail.com>2021-09-01 08:24:51 +0000
commitd0de3076c2675cc0567d93a35f0bb9f216ab3cef (patch)
tree80da824eddafe41cf21b234e3327304eef974fb4 /libexec
parentUsing openvswitch instead of linux bridges. (diff)
downloadcompute-tools-d0de3076c2675cc0567d93a35f0bb9f216ab3cef.tar.xz
compute-tools-d0de3076c2675cc0567d93a35f0bb9f216ab3cef.zip
stop openvswitch version.
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/container/stop6
1 files changed, 6 insertions, 0 deletions
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