diff mbox

[ovs-dev] tests: Add test for CT action with setting labels.

Message ID 1490136665-121320-1-git-send-email-jarno@ovn.org
State Accepted
Headers show

Commit Message

Jarno Rajahalme March 21, 2017, 10:51 p.m. UTC
This test clearly demonstrates the bit order of labels in the OpenFlow
wire format.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
---
 tests/ofp-actions.at | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Joe Stringer April 12, 2017, 9:06 p.m. UTC | #1
On 21 March 2017 at 15:51, Jarno Rajahalme <jarno@ovn.org> wrote:
> This test clearly demonstrates the bit order of labels in the OpenFlow
> wire format.
>
> Signed-off-by: Jarno Rajahalme <jarno@ovn.org>

Acked-by: Joe Stringer <joe@ovn.org>
Jarno Rajahalme April 12, 2017, 9:28 p.m. UTC | #2
> On Apr 12, 2017, at 2:06 PM, Joe Stringer <joe@ovn.org> wrote:
> 
> On 21 March 2017 at 15:51, Jarno Rajahalme <jarno@ovn.org> wrote:
>> This test clearly demonstrates the bit order of labels in the OpenFlow
>> wire format.
>> 
>> Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
> 
> Acked-by: Joe Stringer <joe@ovn.org>

Thanks for the review! Pushed to master,

  Jarno
diff mbox

Patch

diff --git a/tests/ofp-actions.at b/tests/ofp-actions.at
index 6f9f5c1..11b3653 100644
--- a/tests/ofp-actions.at
+++ b/tests/ofp-actions.at
@@ -192,6 +192,11 @@  ffff 0018 00002320 0007 001f 0001d604 000000000000f009
 ffff 0030 00002320 0023 0003 00000000 0000 FF 000000 0000 dnl
 ffff 0018 00002320 0007 001f 0001d604 000000000000f009
 
+# actions=ct(commit,exec(load:0->NXM_NX_CT_LABEL[64..127],load:0x1d->NXM_NX_CT_LABEL[0..63]))
+ffff 0048 00002320 0023 0001 00000000 0000 FF 000000 0000 dnl
+ffff 0018 00002320 0007 103f 0001d810 0000 0000 0000 0000 dnl
+ffff 0018 00002320 0007 003f 0001d810 0000 0000 0000 001d
+
 # bad OpenFlow10 actions: OFPBAC_BAD_SET_ARGUMENT
 & ofp_actions|WARN|cannot set CT fields outside of ct action
 ffff 0018 00002320 0007 001f 0001d604 000000000000f009