summaryrefslogtreecommitdiffstats
path: root/libexec/container/stop
diff options
context:
space:
mode:
Diffstat (limited to '')
-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