diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-11 08:55:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-11 08:55:37 +0000 |
commit | 5a663817eb466038a3be8f73d0d5cc9e25727966 (patch) | |
tree | 28408e4b99a9f86dd13924232f9a6d55d35e975f /lib/container/start | |
parent | Adding upstream version 20190413. (diff) | |
download | open-infrastructure-compute-tools-5a663817eb466038a3be8f73d0d5cc9e25727966.tar.xz open-infrastructure-compute-tools-5a663817eb466038a3be8f73d0d5cc9e25727966.zip |
Adding upstream version 20190811.upstream/20190811
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/container/start')
-rwxr-xr-x | lib/container/start | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/container/start b/lib/container/start index d5e9059..47c2907 100755 --- a/lib/container/start +++ b/lib/container/start @@ -144,6 +144,13 @@ then case "${FORCE}" in true) rm -f "${MACHINES}/.#${NAME}.lck" + + 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 ;; *) |