From 4c7c702b6da7d376ebccd17eeb6c2e9a9f1fa8b8 Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Wed, 24 May 2017 11:18:26 +0300 Subject: [PATCH] Test of hairpin mode in CNI --- test/830_cni_plugin_test.sh | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/test/830_cni_plugin_test.sh b/test/830_cni_plugin_test.sh index 623bb93f..d0f1b934 100755 --- a/test/830_cni_plugin_test.sh +++ b/test/830_cni_plugin_test.sh @@ -19,6 +19,11 @@ weave_on $HOST1 launch C0=$(docker_on $HOST1 run --net=none --name=c0 -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) +CH0=$(docker_on $HOST1 run --net=none --name=ch0 -dt $SMALL_IMAGE /bin/sh) +CH1=$(docker_on $HOST1 run --net=none --name=ch1 -dt $SMALL_IMAGE /bin/sh) +CH2=$(docker_on $HOST1 run --net=none --name=ch2 -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 @@ -52,6 +57,29 @@ cni_connect $HOST1 c2 <