From 4de765f1eee31d2fd44a2e617df79c9146e66297 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Aug 2019 10:55:40 +0200 Subject: Merging upstream version 20190811. Signed-off-by: Daniel Baumann --- lib/container/stop | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/container/stop') 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 -- cgit v1.2.3