Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 .../of15/libofproto-OFP15-flow_mod.packet.json     | 114 +++++++++++++++++++++
 1 file changed, 114 insertions(+)
 create mode 100644 
ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json

diff --git 
a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json 
b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json
new file mode 100644
index 0000000..d4cef97
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json
@@ -0,0 +1,114 @@
+{
+   "OFPFlowMod": {
+      "buffer_id": 0, 
+      "command": 0, 
+      "cookie": 1311768467463790320, 
+      "cookie_mask": 18446744073709551615, 
+      "flags": 0, 
+      "hard_timeout": 0, 
+      "idle_timeout": 0, 
+      "importance": 39032, 
+      "instructions": [
+         {
+            "OFPInstructionActions": {
+               "actions": [
+                  {
+                     "OFPActionPopVlan": {
+                        "len": 8, 
+                        "type": 18
+                     }
+                  }, 
+                  {
+                     "OFPActionSetField": {
+                        "field": {
+                           "OXMTlv": {
+                              "field": "ipv4_dst", 
+                              "mask": null, 
+                              "value": "192.168.2.9"
+                           }
+                        }
+                     }
+                  }
+               ], 
+               "len": 32, 
+               "type": 4
+            }
+         }, 
+         {
+            "OFPInstructionGotoTable": {
+               "len": 8, 
+               "table_id": 100, 
+               "type": 1
+            }
+         }
+      ], 
+      "match": {
+         "OFPMatch": {
+            "length": 70, 
+            "oxm_fields": [
+               {
+                  "OXMTlv": {
+                     "field": "in_port", 
+                     "mask": null, 
+                     "value": 43981
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "eth_dst", 
+                     "mask": null, 
+                     "value": "aa:bb:cc:99:88:77"
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "eth_type", 
+                     "mask": null, 
+                     "value": 2048
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "vlan_vid", 
+                     "mask": null, 
+                     "value": 5095
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "ipv4_dst", 
+                     "mask": null, 
+                     "value": "192.168.2.1"
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "tunnel_id", 
+                     "mask": null, 
+                     "value": 50000
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "tun_ipv4_src", 
+                     "mask": null, 
+                     "value": "192.168.2.3"
+                  }
+               }, 
+               {
+                  "OXMTlv": {
+                     "field": "tun_ipv4_dst", 
+                     "mask": null, 
+                     "value": "192.168.2.4"
+                  }
+               }
+            ], 
+            "type": 1
+         }
+      }, 
+      "out_group": 0, 
+      "out_port": 0, 
+      "priority": 0, 
+      "table_id": 2
+   }
+}
-- 
2.1.0


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to