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.
This commit is contained in:
Matthias Radestock committed 2015-10-04 15:43:55 +01:00
1 parent dac932f553
commit 37ea8a28ad
1 file changed
+1 -1
+1 -1
View File
@@ -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)