diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2017-05-15 10:04:56 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-31 14:54:10 -0700 |
commit | 577bfa9f687936d53970d0ff41928c3a727720e8 (patch) | |
tree | 56f42bacdd419fa488a39f46ec9e67b44a862d47 /tests | |
parent | 35eb6326d5d0f04fe7916b018eeb110a6018843f (diff) | |
download | openvswitch-577bfa9f687936d53970d0ff41928c3a727720e8.tar.gz |
ofp-util: Add OpenFlow 1.5 packet-out support
This patch implements the encoding and decoding of the new packet-out
format defined in OpenFlow 1.5. Test cases are provided to verify the
encoding and decoding.
This patch is based on [1] and [2].
[1] https://github.com/jean2/openvswitch/commits/jean/ext-427
[2] https://mail.openvswitch.org/pipermail/ovs-dev/2017-April/331032.html
Signed-off-by: Jean Tourrilhes <jt@labs.hpe.com>
Signed-off-by: Zoltan Balogh <zoltan.balogh@ericsson.com>
Co-authored-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ofp-print.at | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ofp-print.at b/tests/ofp-print.at index dfa26e0ce..6b950a0d9 100644 --- a/tests/ofp-print.at +++ b/tests/ofp-print.at @@ -796,6 +796,27 @@ tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192 ]) AT_CLEANUP +AT_SETUP([OFPT_PACKET_OUT - OF1.5]) +AT_KEYWORDS([ofp-print packet-out]) +AT_CHECK([ovs-ofctl ofp-print "\ +06 0d 00 30 11 22 33 44 ff ff ff 00 00 10 00 00 \ +00 01 00 10 80 00 00 04 00 00 00 01 00 00 00 00 \ +00 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \ +"], [0], [dnl +OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): in_port=1 actions=FLOOD buffer=0xffffff00 +]) + +dnl missing in_port +AT_CHECK([ovs-ofctl ofp-print "\ +06 0d 00 40 11 22 33 44 ff ff ff 00 00 10 00 00 \ +00 01 00 20 80 00 04 08 00 00 00 00 00 00 00 03 \ +80 00 4C 08 00 00 00 00 00 00 00 05 00 00 00 00 \ +00 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \ +"], [0], [dnl +OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_BAD_PORT*** +]) +AT_CLEANUP + # The flow is formatted with cls_rule_format() for the low-verbosity case. AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity]) AT_KEYWORDS([ofp-print]) |