ONF-JIRA: EXT-244 Suggested-by: Jean Tourrilhes <j...@hpl.hp.com> Signed-off-by: Ben Pfaff <b...@nicira.com> --- tests/ofproto-dpif.at | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 4386639..9ee1698 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -410,6 +410,27 @@ AT_CHECK([tail -1 stdout], [0], OVS_VSWITCHD_STOP AT_CLEANUP +dnl Tests that the standardized xregs are mapped onto the legacy OVS registers +dnl in the manner documented in ovs-ofctl(8). +AT_SETUP([ofproto-dpif - extended registers]) +OVS_VSWITCHD_START +ADD_OF_PORTS([br0], [1], [2], [3]) +AT_DATA([flows.txt], [dnl +table=0 actions=load:0xfedcba9876543210->OXM_OF_PKT_REG1[[]],resubmit(,1) +table=1,reg2=0xfedcba98,reg3=0x76543210 actions=2 + +# 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 +]) +AT_CHECK([ovs-ofctl 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 - push-pop]) OVS_VSWITCHD_START ADD_OF_PORTS([br0], [20], [21], [22], [33], [90]) -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev