From: Jean Tourrilhes <jean.tourril...@hp.com> Signed-off-by: Jean Tourrilhes <j...@hpl.hp.com> --- tests/ofproto-dpif.at | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 58a2cf9..04c0b8b 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -198,6 +198,29 @@ Datapath actions: 10,set(ipv4(src=192.168.3.91)),11,set(ipv4(src=192.168.3.90)), OVS_VSWITCHD_STOP AT_CLEANUP +dnl Tests that 1.5 actset_output tracks changes to the action-set. +AT_SETUP([ofproto-dpif - actset_output with output and group]) +OVS_VSWITCHD_START +ADD_OF_PORTS([br0], [1], [2], [3]) +AT_CHECK([ovs-ofctl -O OpenFlow14 add-group br0 group_id=1234,type=indirect,bucket=output:2]) +AT_DATA([flows.txt], [dnl +table=0,actset_output=unset actions=write_actions(output(3)),goto_table(1) +table=1,actset_output=3 actions=write_actions(group:1234),goto_table(2) +table=2,actset_output=unset actions= + +# These low-priority rules shouldn't match. They're here only to make really +# sure that the test fails if either of the above rules fails to match. +table=0,priority=0 actions=3 +table=1,priority=0 actions=3 +table=2,priority=0 actions=3 +]) +AT_CHECK([ovs-ofctl -O OpenFlow14 add-flows br0 flows.txt]) +AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) +AT_CHECK([tail -1 stdout], [0], [Datapath actions: 2 +]) +OVS_VSWITCHD_STOP +AT_CLEANUP + AT_SETUP([ofproto-dpif - clear actions]) OVS_VSWITCHD_START ADD_OF_PORTS([br0], [1], [10], [11], [12]) -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev