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:
1 parent
dac932f553
commit
37ea8a28ad
1 file changed
+1
-1
@@ -1605,7 +1605,7 @@ case "$COMMAND" in
|
|||||||
conntrack -D -p udp --dport $PORT >/dev/null 2>&1 || true
|
conntrack -D -p udp --dport $PORT >/dev/null 2>&1 || true
|
||||||
destroy_bridge
|
destroy_bridge
|
||||||
for LOCAL_IFNAME in $(ip link show | grep v${CONTAINER_IFNAME}pl | cut -d ' ' -f 2 | tr -d ':') ; do
|
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
|
done
|
||||||
;;
|
;;
|
||||||
rmpeer)
|
rmpeer)
|
||||||
|
|||||||
Reference in new issue
Block a user