Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
.../of13/4-11-ofp_flow_stats_request.packet.json | 4 +-
.../of13/4-12-ofp_flow_stats_reply.packet.json | 36 +++++++++--
.../ofproto/json/of13/4-2-ofp_flow_mod.packet.json | 10 ++-
.../4-25-ofp_aggregate_stats_request.packet.json | 4 +-
.../ofproto/json/of13/4-3-ofp_flow_mod.packet.json | 18 +++++-
.../json/of13/4-4-ofp_packet_in.packet.json | 74 +++++++++++++++++++---
.../json/of13/4-40-ofp_flow_removed.packet.json | 10 ++-
.../json/of13/4-46-ofp_flow_mod.packet.json | 10 ++-
8 files changed, 145 insertions(+), 21 deletions(-)
diff --git
a/ryu/tests/unit/ofproto/json/of13/4-11-ofp_flow_stats_request.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-11-ofp_flow_stats_request.packet.json
index 99c65f8..c723d76 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-11-ofp_flow_stats_request.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-11-ofp_flow_stats_request.packet.json
@@ -4,7 +4,9 @@
"cookie_mask": 0,
"flags": 0,
"match": {
- "OFPMatch": {}
+ "OFPMatch": {
+ "oxm_fields": []
+ }
},
"out_group": 4294967295,
"out_port": 4294967295,
diff --git
a/ryu/tests/unit/ofproto/json/of13/4-12-ofp_flow_stats_reply.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-12-ofp_flow_stats_reply.packet.json
index 75d5e08..98e246c 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-12-ofp_flow_stats_reply.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-12-ofp_flow_stats_reply.packet.json
@@ -12,7 +12,9 @@
"idle_timeout": 0,
"instructions": [],
"match": {
- "OFPMatch": {}
+ "OFPMatch": {
+ "oxm_fields": []
+ }
},
"packet_count": 0,
"priority": 65535,
@@ -45,7 +47,15 @@
],
"match": {
"OFPMatch": {
- "eth_type": 2054
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2054
+ }
+ }
+ ]
}
},
"packet_count": 0,
@@ -71,8 +81,22 @@
],
"match": {
"OFPMatch": {
- "eth_src": "f2:0b:a4:7d:f8:ea",
- "in_port": 6
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "in_port",
+ "mask": null,
+ "value": 6
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_src",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ }
+ ]
}
},
"packet_count": 3,
@@ -105,7 +129,9 @@
}
],
"match": {
- "OFPMatch": {}
+ "OFPMatch": {
+ "oxm_fields": []
+ }
},
"packet_count": 1,
"priority": 0,
diff --git a/ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json
index 07b5766..3f3b096 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json
@@ -24,7 +24,15 @@
],
"match": {
"OFPMatch": {
- "eth_dst": "f2:0b:a4:7d:f8:ea"
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ }
+ ]
}
},
"out_group": 4294967295,
diff --git
a/ryu/tests/unit/ofproto/json/of13/4-25-ofp_aggregate_stats_request.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-25-ofp_aggregate_stats_request.packet.json
index 48193b2..d09f532 100644
---
a/ryu/tests/unit/ofproto/json/of13/4-25-ofp_aggregate_stats_request.packet.json
+++
b/ryu/tests/unit/ofproto/json/of13/4-25-ofp_aggregate_stats_request.packet.json
@@ -4,7 +4,9 @@
"cookie_mask": 0,
"flags": 0,
"match": {
- "OFPMatch": {}
+ "OFPMatch": {
+ "oxm_fields": []
+ }
},
"out_group": 4294967295,
"out_port": 4294967295,
diff --git a/ryu/tests/unit/ofproto/json/of13/4-3-ofp_flow_mod.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-3-ofp_flow_mod.packet.json
index 3ac3c2e..55ff165 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-3-ofp_flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-3-ofp_flow_mod.packet.json
@@ -16,8 +16,22 @@
],
"match": {
"OFPMatch": {
- "eth_src": "f2:0b:a4:7d:f8:ea",
- "in_port": 6
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "in_port",
+ "mask": null,
+ "value": 6
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_src",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ }
+ ]
}
},
"out_group": 4294967295,
diff --git a/ryu/tests/unit/ofproto/json/of13/4-4-ofp_packet_in.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-4-ofp_packet_in.packet.json
index e4bc1e9..224eba1 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-4-ofp_packet_in.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-4-ofp_packet_in.packet.json
@@ -5,15 +5,71 @@
"data": "////////8gukffjqCAYAAQgABgQAAfILpH346goAAAEAAAAAAAAKAAAD",
"match": {
"OFPMatch": {
- "arp_op": 1,
- "arp_sha": "f2:0b:a4:7d:f8:ea",
- "arp_spa": "10.0.0.1",
- "arp_tha": "00:00:00:00:00:00",
- "arp_tpa": "10.0.0.3",
- "eth_dst": "ff:ff:ff:ff:ff:ff",
- "eth_src": "f2:0b:a4:7d:f8:ea",
- "eth_type": 2054,
- "in_port": 6
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "in_port",
+ "mask": null,
+ "value": 6
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2054
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "ff:ff:ff:ff:ff:ff"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_src",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "arp_op",
+ "mask": null,
+ "value": 1
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "arp_spa",
+ "mask": null,
+ "value": "10.0.0.1"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "arp_tpa",
+ "mask": null,
+ "value": "10.0.0.3"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "arp_sha",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "arp_tha",
+ "mask": null,
+ "value": "00:00:00:00:00:00"
+ }
+ }
+ ]
}
},
"reason": 1,
diff --git a/ryu/tests/unit/ofproto/json/of13/4-40-ofp_flow_removed.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-40-ofp_flow_removed.packet.json
index 0dc91f2..3edd739 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-40-ofp_flow_removed.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-40-ofp_flow_removed.packet.json
@@ -8,7 +8,15 @@
"idle_timeout": 3,
"match": {
"OFPMatch": {
- "eth_dst": "f2:0b:a4:7d:f8:ea"
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ }
+ ]
}
},
"packet_count": 1,
diff --git a/ryu/tests/unit/ofproto/json/of13/4-46-ofp_flow_mod.packet.json
b/ryu/tests/unit/ofproto/json/of13/4-46-ofp_flow_mod.packet.json
index a9e7701..bbcb7d1 100644
--- a/ryu/tests/unit/ofproto/json/of13/4-46-ofp_flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/4-46-ofp_flow_mod.packet.json
@@ -29,7 +29,15 @@
],
"match": {
"OFPMatch": {
- "eth_dst": "f2:0b:a4:7d:f8:ea"
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "f2:0b:a4:7d:f8:ea"
+ }
+ }
+ ]
}
},
"out_group": 4294967295,
--
1.8.3.1
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel