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

---
v3
* No change

v2
* Updated JSON using normalize_json.py
---
 .../of14/5-66-ofp_flow_monitor_request.packet      | Bin 0 -> 48 bytes
 ryu/tests/packet_data_generator/src/x5.erl         |  18 +++++++++++++-
 .../of14/5-66-ofp_flow_monitor_request.packet.json |  27 +++++++++++++++++++++
 3 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 
ryu/tests/packet_data/of14/5-66-ofp_flow_monitor_request.packet
 create mode 100644 
ryu/tests/unit/ofproto/json/of14/5-66-ofp_flow_monitor_request.packet.json

diff --git a/ryu/tests/packet_data/of14/5-66-ofp_flow_monitor_request.packet 
b/ryu/tests/packet_data/of14/5-66-ofp_flow_monitor_request.packet
new file mode 100644
index 
0000000000000000000000000000000000000000..1f8d859871254265cea4618d2bba6f31ae280c8e
GIT binary patch
literal 48
ucmZP-VlZF;0Rb?{!20zeh#~eL2pISk85kHD_!=14*gkPDsr~VafdK%+Eej9;

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 dbe9ee0..53e85ab 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -2798,6 +2798,22 @@ x() ->
                  #ofp_role_prop_experimenter{
                      experimenter = 101,
                      exp_type = 2,
-                     data = <<1:32,2:32>>}]}
+                     data = <<1:32,2:32>>}]},
+        #ofp_flow_monitor_request{
+            flags = [],
+            monitor_id = 100000000,
+            out_port = 22,
+            out_group = any,
+            monitor_flags = [initial, add, removed, modify],
+            table_id = 33,
+            command = add,
+            match =
+                #ofp_match{
+                    fields =
+                        [#ofp_field{
+                             class = openflow_basic,name = eth_dst,
+                             has_mask = false,
+                             value = <<"\362\v\244}\370\352">>,
+                             mask = undefined}]}}
     ],
     lists:foldl(fun x:do/2, {5, 0}, List).
diff --git 
a/ryu/tests/unit/ofproto/json/of14/5-66-ofp_flow_monitor_request.packet.json 
b/ryu/tests/unit/ofproto/json/of14/5-66-ofp_flow_monitor_request.packet.json
new file mode 100644
index 0000000..aed7dda
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of14/5-66-ofp_flow_monitor_request.packet.json
@@ -0,0 +1,27 @@
+{
+   "OFPFlowMonitorRequest": {
+      "command": 0, 
+      "flags": 0, 
+      "match": {
+         "OFPMatch": {
+            "length": 14, 
+            "oxm_fields": [
+               {
+                  "OXMTlv": {
+                     "field": "eth_dst", 
+                     "mask": null, 
+                     "value": "f2:0b:a4:7d:f8:ea"
+                  }
+               }
+            ], 
+            "type": 1
+         }
+      }, 
+      "monitor_flags": 15, 
+      "monitor_id": 100000000, 
+      "out_group": 4294967295, 
+      "out_port": 22, 
+      "table_id": 33, 
+      "type": 16
+   }
+}
-- 
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

Reply via email to