Signed-off-by: Simon Horman <[email protected]>
---
v3
* Fix sequence number in filenames: Rename 5-70* => 5-71
v2
* First post
---
.../of14/5-71-ofp_requestforward.packet | Bin 0 -> 56 bytes
ryu/tests/packet_data_generator/src/x5.erl | 22 ++++++++++++++-
.../json/of14/5-71-ofp_requestforward.packet.json | 31 +++++++++++++++++++++
ryu/tests/unit/ofproto/test_parser.py | 1 +
4 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 ryu/tests/packet_data/of14/5-71-ofp_requestforward.packet
create mode 100644
ryu/tests/unit/ofproto/json/of14/5-71-ofp_requestforward.packet.json
diff --git a/ryu/tests/packet_data/of14/5-71-ofp_requestforward.packet
b/ryu/tests/packet_data/of14/5-71-ofp_requestforward.packet
new file mode 100644
index
0000000000000000000000000000000000000000..d06e8b4aef0d616e4750fab25bb7e4576820cc09
GIT binary patch
literal 56
ocmZQoV6b2S0#<$o0}u@bj0_44j6gOFgM<ZunCbt25R-uc05k{!)&Kwi
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data_generator/src/x5.erl
b/ryu/tests/packet_data_generator/src/x5.erl
index 760d11b..1c508fd 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -2994,6 +2994,26 @@ x() ->
#ofp_bundle_prop_experimenter{
experimenter = 101,
exp_type = 2,
- data = <<1:32,2:32>>}]}
+ data = <<1:32,2:32>>}]},
+ #ofp_requestforward{
+ request =
+ #ofp_message{
+ version = 5,
+ type = group_mod,
+ xid = 0,
+ body =
+ #ofp_group_mod{
+ command = add,
+ type = all,
+ group_id = 1,
+ buckets =
+ [#ofp_bucket{
+ weight = 1,
+ watch_port = 1,
+ watch_group = 1,
+ actions =
+ [#ofp_action_output{
+ port = 2,
+ max_len = no_buffer}]}]}}}
],
lists:foldl(fun x:do/2, {5, 0}, List).
diff --git
a/ryu/tests/unit/ofproto/json/of14/5-71-ofp_requestforward.packet.json
b/ryu/tests/unit/ofproto/json/of14/5-71-ofp_requestforward.packet.json
new file mode 100644
index 0000000..e2def4f
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of14/5-71-ofp_requestforward.packet.json
@@ -0,0 +1,31 @@
+{
+ "OFPRequestForward": {
+ "request": {
+ "OFPGroupMod": {
+ "buckets": [
+ {
+ "OFPBucket": {
+ "actions": [
+ {
+ "OFPActionOutput": {
+ "len": 16,
+ "max_len": 65535,
+ "port": 2,
+ "type": 0
+ }
+ }
+ ],
+ "len": 32,
+ "watch_group": 1,
+ "watch_port": 1,
+ "weight": 1
+ }
+ }
+ ],
+ "command": 0,
+ "group_id": 1,
+ "type": 0
+ }
+ }
+ }
+}
diff --git a/ryu/tests/unit/ofproto/test_parser.py
b/ryu/tests/unit/ofproto/test_parser.py
index fdcb328..d3131fd 100644
--- a/ryu/tests/unit/ofproto/test_parser.py
+++ b/ryu/tests/unit/ofproto/test_parser.py
@@ -113,6 +113,7 @@ implemented = {
ofproto_v1_4.OFPT_SET_ASYNC: (False, True),
ofproto_v1_4.OFPT_ROLE_STATUS: (True, False),
ofproto_v1_4.OFPT_TABLE_STATUS: (True, False),
+ ofproto_v1_4.OFPT_REQUESTFORWARD: (False, True),
ofproto_v1_4.OFPT_BUNDLE_CONTROL: (False, True),
ofproto_v1_4.OFPT_BUNDLE_ADD_MESSAGE: (False, True),
},
--
1.8.5.2
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel