diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-29 12:09:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-29 12:09:39 +0000 |
commit | 279cb15d6fa0f063f81479bbc85ea5b50823f5e9 (patch) | |
tree | 2726be5cef35cb330dde5aa9c0a9d79389afdfdb /libexec/container/stop | |
parent | Releasing debian version 20210628-1. (diff) | |
download | open-infrastructure-compute-tools-279cb15d6fa0f063f81479bbc85ea5b50823f5e9.tar.xz open-infrastructure-compute-tools-279cb15d6fa0f063f81479bbc85ea5b50823f5e9.zip |
Merging upstream version 20210629.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | libexec/container/stop | 6 |
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 |