* git clone carried out Wednesday 10/Jun/2015 (NZ time)
* test case suggested by a failing oftest case
* is this in the correct test file?
* is the test written to the correct standard?
* is it a valid test?
* what other test cases suggest themselves? (the fix is going to involve
*all* IPv6 protocols, not just ICMPv6)
* how do I proceed from here?
* if you apply the patch it should be test #912

Thanks
Tony

diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index bd1b21c..4c3ab94 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -6673,6 +6673,21 @@
icmp6,vlan_tci=0x0000,dl_src=00:00:86:05:80:da,dl_dst=00:60:97:07:69:ea,ipv6_src
 OVS_VSWITCHD_STOP
 AT_CLEANUP

+AT_SETUP([ofproto-dpif - ICMPv6 Code produces correct dpif flow])
+OVS_VSWITCHD_START
+ADD_OF_PORTS([br0], 1, 2)
+
+AT_CHECK([ovs-ofctl add-flow br0
icmp6,icmpv6_code=3,action=output:controller])
+
+ovs-appctl netdev-dummy/receive p1
'0060970769ea0000860580da86dd6000000000203afffe80000000000000020086fffe0580dafe80000000000000026097fffe0769ea020368bd00000000fe80000000000000026097fffe0769ea
+
+AT_CHECK([ovs-appctl dpif/dump-flows br0 | STRIP_UFID | STRIP_USED |
sort], [0], [dnl
+recirc_id(0),in_port(1),eth_type(0x86dd),ipv6(proto=58,frag=no),icmpv6(code=3),
packets:0, bytes:0, used:never,
actions:userspace(pid=0,slow_path(controller))
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
+
 # Tests the exact match of CFI bit in installed datapath flows matching
VLAN.
 AT_SETUP([ofproto-dpif - vlan matching])
 OVS_VSWITCHD_START(
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to