From 37ea8a28adacf2af3fb6d9883bce0b90e2eb2df0 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sun, 4 Oct 2015 15:43:55 +0100 Subject: [PATCH] strip off @... from interface names returned by `ip link show` Apparently kernel 4.2 adds these, which breaks `weave reset` when we pass the names to `ip link del'. Fixes #1364. --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index 90db5253..ae1560e1 100755 --- a/weave +++ b/weave @@ -1605,7 +1605,7 @@ case "$COMMAND" in conntrack -D -p udp --dport $PORT >/dev/null 2>&1 || true destroy_bridge for LOCAL_IFNAME in $(ip link show | grep v${CONTAINER_IFNAME}pl | cut -d ' ' -f 2 | tr -d ':') ; do - ip link del $LOCAL_IFNAME >/dev/null 2>&1 || true + ip link del ${LOCAL_IFNAME%@*} >/dev/null 2>&1 || true done ;; rmpeer)