From a1de7f3eef1d68b37bc2440a43509508a1b9a996 Mon Sep 17 00:00:00 2001 From: Martynas Pumputis Date: Wed, 14 Sep 2016 11:05:00 +0100 Subject: [PATCH] Enable unsolicited ARPs in 830 test case Otherwise, ping (c1->c3) after the address reuse might time out. --- test/830_cni_plugin_test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/830_cni_plugin_test.sh b/test/830_cni_plugin_test.sh index b4700502..f042c294 100755 --- a/test/830_cni_plugin_test.sh +++ b/test/830_cni_plugin_test.sh @@ -16,8 +16,10 @@ run_on $HOST1 sudo mkdir -p /opt/cni/bin weave_on $HOST1 setup-cni weave_on $HOST1 launch -C1=$(docker_on $HOST1 run --net=none --name=c1 -dt $SMALL_IMAGE /bin/sh) +C1=$(docker_on $HOST1 run --net=none --privileged --name=c1 -dt $SMALL_IMAGE /bin/sh) C2=$(docker_on $HOST1 run --net=none --name=c2 -dt $SMALL_IMAGE /bin/sh) +# Enable unsolicited ARPs so that ping after the address reuse does not time out +exec_on $HOST1 c1 sysctl -w net.ipv4.conf.all.arp_accept=1 cni_connect $HOST1 c1 <