Signed-off-by: Simon Horman <[email protected]>

---
v2
* First post
---
 .../of14/5-70-ofp_requestforward.packet            | Bin 0 -> 56 bytes
 ryu/tests/packet_data_generator/src/x5.erl         |  22 ++++++++++++++-
 .../json/of14/5-70-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-70-ofp_requestforward.packet
 create mode 100644 
ryu/tests/unit/ofproto/json/of14/5-70-ofp_requestforward.packet.json

diff --git a/ryu/tests/packet_data/of14/5-70-ofp_requestforward.packet 
b/ryu/tests/packet_data/of14/5-70-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 15ada31..4c37631 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -2905,6 +2905,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-70-ofp_requestforward.packet.json 
b/ryu/tests/unit/ofproto/json/of14/5-70-ofp_requestforward.packet.json
new file mode 100644
index 0000000..e2def4f
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of14/5-70-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


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to