[ovs-dev] [PATCH 2/3] system-traffic: Flush conntrack after debug ping6.

Daniele Di Proietto diproiettod at vmware.com
Fri Aug 5 01:42:22 UTC 2016


We want to discard any state created by the initial ping6 (used to wait
for an available IP address).  Otherwise some weird state can show up in
the connection tracking tables (such as ICMP connection from link-local
addresses).

Fixes: e5cf8cce2759("system-tests: Add ping through conntrack test.")
Reported-by: Joe Stringer <joe at ovn.org>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
---
 tests/system-traffic.at | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/system-traffic.at b/tests/system-traffic.at
index 666a14d..5b0a1ce 100644
--- a/tests/system-traffic.at
+++ b/tests/system-traffic.at
@@ -675,6 +675,10 @@ AT_CHECK([ovs-ofctl --bundle add-flows br0 flows.txt])
 
 OVS_WAIT_UNTIL([ip netns exec at_ns0 ping6 -c 1 fc00::2])
 
+dnl The above ping creates state in the connection tracker.  We're not
+dnl interested in that state.
+AT_CHECK([ovs-appctl dpctl/flush-conntrack])
+
 dnl Pings from ns1->ns0 should fail.
 NS_CHECK_EXEC([at_ns1], [ping6 -q -c 3 -i 0.3 -w 2 fc00::1 | FORMAT_PING], [0], [dnl
 7 packets transmitted, 0 received, 100% packet loss, time 0ms
-- 
2.8.1




More information about the dev mailing list