diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-11 08:55:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-11 08:55:40 +0000 |
commit | 4de765f1eee31d2fd44a2e617df79c9146e66297 (patch) | |
tree | 8d6f40803498b0cb0b4ceb839337de5ec5d2f237 /lib/container/stop | |
parent | Releasing debian version 20190413-4. (diff) | |
download | open-infrastructure-compute-tools-4de765f1eee31d2fd44a2e617df79c9146e66297.tar.xz open-infrastructure-compute-tools-4de765f1eee31d2fd44a2e617df79c9146e66297.zip |
Merging upstream version 20190811.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/container/stop')
-rwxr-xr-x | lib/container/stop | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/container/stop b/lib/container/stop index 3a0de2a..350d9e6 100755 --- a/lib/container/stop +++ b/lib/container/stop @@ -255,6 +255,17 @@ esac # Run machinectl ${MODE} ${NAME} +case "${FORCE}" in + true) + VETHS="$(awk -F= '/^network-veth-extra=/ { print $2 }' ${CONFIG}/${NAME}.conf | awk -F: '{ print $1 }')" + + for VETH in ${VETHS} + do + ip link delete ${VETH} > /dev/null 2>&1 || true + done + ;; +esac + # Post hooks for FILE in "${HOOKS}/post-${COMMAND}".* "${HOOKS}/${NAME}.post-${COMMAND}" do |