Skip to content

Commit

Permalink
tests: Add test for CT action with setting labels.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jrajahalme committed Apr 12, 2017
1 parent ec7d36f commit 6bee868
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ofp-actions.at
Expand Up @@ -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
Expand Down

0 comments on commit 6bee868

Please sign in to comment.