diff options
author | Ben Pfaff <blp@nicira.com> | 2014-07-29 09:27:11 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-07-29 09:43:32 -0700 |
commit | 57fa81676b96cecf6246878b57b900ed0105137e (patch) | |
tree | 4d3b74215b2d6df582d396b041ecd4f8e7ae1ca7 /tests | |
parent | d5e27716bbe8f4090f80df51caf676026627a6a8 (diff) | |
download | openvswitch-57fa81676b96cecf6246878b57b900ed0105137e.tar.gz |
tests: Add another test for extended registers.
ONF-JIRA: EXT-244
Suggested-by: Jean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jean Tourrilhes <jt@hpl.hp.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ofproto-dpif.at | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 4386639cb..9ee169801 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]) |