Commit ee561764 authored by Pavel Emelyanov's avatar Pavel Emelyanov

cr_veth: More debug to EEXISTS failure on travis

parent 6bfb3950
...@@ -12,6 +12,9 @@ if [ "$1" == "--post-start" ]; then ...@@ -12,6 +12,9 @@ if [ "$1" == "--post-start" ]; then
ps xaf ps xaf
echo "-> $TPID" echo "-> $TPID"
set -x
ip l l
ip link add zdtmvthc0 type veth peer name zdtmvthh0 ip link add zdtmvthc0 type veth peer name zdtmvthh0
ip link set zdtmvthc0 netns $TPID ip link set zdtmvthc0 netns $TPID
...@@ -30,7 +33,8 @@ elif [ "$1" == "--post-restore" ]; then ...@@ -30,7 +33,8 @@ elif [ "$1" == "--post-restore" ]; then
echo "Device OK" echo "Device OK"
elif [ "$1" == "--pre-restore" -o "$1" == "--cleanup" ]; then elif [ "$1" == "--pre-restore" -o "$1" == "--cleanup" ]; then
# Wait for the link to die # Wait for the link to die
ip l l
while ip l l zdtmvthh0 ; do while ip l l zdtmvthh0 ; do
true sleep ".5"
done done
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment