Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
.../of13/4-11-ofp_flow_stats_request.packet.json | 6 +--
.../of13/4-12-ofp_flow_stats_reply.packet.json | 58 ++++++--------------
.../ofproto/json/of13/4-2-ofp_flow_mod.packet.json | 14 ++---
.../4-25-ofp_aggregate_stats_request.packet.json | 6 +--
.../ofproto/json/of13/4-3-ofp_flow_mod.packet.json | 20 ++-----
.../json/of13/4-4-ofp_packet_in.packet.json | 61 ++++------------------
.../json/of13/4-40-ofp_flow_removed.packet.json | 9 +---
.../json/of13/4-46-ofp_flow_mod.packet.json | 14 ++---
8 files changed, 46 insertions(+), 142 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 e9597ce..847ff05 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,12 +4,10 @@
"out_group" : 4294967295,
"flags" : 0,
"out_port" : 4294967295,
+ "cookie" : 0,
"match" : {
- "OFPMatch" : {
- "fields" : []
- }
+ "OFPMatch" : {}
},
- "cookie" : 0,
"cookie_mask" : 0
}
}
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 250dac0..ce29b6d 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
@@ -4,19 +4,16 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 65535,
"hard_timeout" : 0,
- "flags" : 0,
+ "priority" : 65535,
"instructions" : [],
+ "flags" : 0,
"duration_nsec" : 115277000,
"match" : {
- "OFPMatch" : {
- "fields" : [],
- "type" : 1
- }
+ "OFPMatch" : {}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"byte_count" : 0,
"duration_sec" : 358,
"packet_count" : 0
@@ -25,9 +22,8 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 65534,
"hard_timeout" : 0,
- "flags" : 0,
+ "priority" : 65534,
"instructions" : [
{
"OFPInstructionActions" : {
@@ -43,21 +39,15 @@
}
}
],
+ "flags" : 0,
"duration_nsec" : 115055000,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTEthType" : {
- "value" : 2054
- }
- }
- ],
- "type" : 1
+ "eth_type" : 2054
}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"byte_count" : 0,
"duration_sec" : 358,
"packet_count" : 0
@@ -66,9 +56,8 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 123,
"hard_timeout" : 0,
- "flags" : 0,
+ "priority" : 123,
"instructions" : [
{
"OFPInstructionGotoTable" : {
@@ -76,26 +65,16 @@
}
}
],
+ "flags" : 0,
"duration_nsec" : 511582000,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTInPort" : {
- "value" : 6
- }
- },
- {
- "MTEthSrc" : {
- "value" : "8gukffjq"
- }
- }
- ],
- "type" : 1
+ "eth_src" : "f2:0b:a4:7d:f8:ea",
+ "in_port" : 6
}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"byte_count" : 238,
"duration_sec" : 316220,
"packet_count" : 3
@@ -104,9 +83,8 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 0,
"hard_timeout" : 0,
- "flags" : 0,
+ "priority" : 0,
"instructions" : [
{
"OFPInstructionActions" : {
@@ -122,15 +100,13 @@
}
}
],
+ "flags" : 0,
"duration_nsec" : 980901000,
"match" : {
- "OFPMatch" : {
- "fields" : [],
- "type" : 1
- }
+ "OFPMatch" : {}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"byte_count" : 98,
"duration_sec" : 313499,
"packet_count" : 1
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 f157f07..415a20f 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
@@ -2,9 +2,8 @@
"OFPFlowMod" : {
"table_id" : 1,
"priority" : 123,
- "hard_timeout" : 0,
"buffer_id" : 65535,
- "out_group" : 4294967295,
+ "hard_timeout" : 0,
"instructions" : [
{
"OFPInstructionActions" : {
@@ -20,20 +19,15 @@
}
}
],
+ "out_group" : 4294967295,
"flags" : 0,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTEthDst" : {
- "value" : "8gukffjq"
- }
- }
- ]
+ "eth_dst" : "f2:0b:a4:7d:f8:ea"
}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"cookie_mask" : 0,
"out_port" : 4294967295,
"command" : 0
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 134a61a..1a6f4ec 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
@@ -1,12 +1,10 @@
{
"OFPAggregateStatsRequest" : {
"table_id" : 255,
- "out_group" : 4294967295,
"flags" : 0,
+ "out_group" : 4294967295,
"match" : {
- "OFPMatch" : {
- "fields" : []
- }
+ "OFPMatch" : {}
},
"cookie" : 0,
"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 78bb76b..1432c7c 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
@@ -2,9 +2,8 @@
"OFPFlowMod" : {
"table_id" : 0,
"priority" : 123,
- "hard_timeout" : 0,
"buffer_id" : 65535,
- "out_group" : 4294967295,
+ "hard_timeout" : 0,
"instructions" : [
{
"OFPInstructionGotoTable" : {
@@ -12,25 +11,16 @@
}
}
],
+ "out_group" : 4294967295,
"flags" : 0,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTInPort" : {
- "value" : 6
- }
- },
- {
- "MTEthSrc" : {
- "value" : "8gukffjq"
- }
- }
- ]
+ "eth_src" : "f2:0b:a4:7d:f8:ea",
+ "in_port" : 6
}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"cookie_mask" : 0,
"out_port" : 4294967295,
"command" : 0
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 4141ed6..a4b2f72 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
@@ -1,61 +1,22 @@
{
"OFPPacketIn" : {
- "buffer_id" : 2,
"table_id" : 1,
+ "buffer_id" : 2,
"total_len" : 42,
- "cookie" : 283686884868096,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTInPort" : {
- "value" : 6
- }
- },
- {
- "MTEthType" : {
- "value" : 2054
- }
- },
- {
- "MTEthDst" : {
- "value" : "////////"
- }
- },
- {
- "MTEthSrc" : {
- "value" : "8gukffjq"
- }
- },
- {
- "MTArpOp" : {
- "value" : 1
- }
- },
- {
- "MTArpSpa" : {
- "value" : 167772161
- }
- },
- {
- "MTArpTpa" : {
- "value" : 167772163
- }
- },
- {
- "MTArpSha" : {
- "value" : "8gukffjq"
- }
- },
- {
- "MTArpTha" : {
- "value" : "AAAAAAAA"
- }
- }
- ],
- "type" : 1
+ "eth_src" : "f2:0b:a4:7d:f8:ea",
+ "in_port" : 6,
+ "eth_dst" : "ff:ff:ff:ff:ff:ff",
+ "arp_tha" : "00:00:00:00:00:00",
+ "arp_spa" : "10.0.0.1",
+ "eth_type" : 2054,
+ "arp_sha" : "f2:0b:a4:7d:f8:ea",
+ "arp_op" : 1,
+ "arp_tpa" : "10.0.0.3"
}
},
+ "cookie" : 283686884868096,
"reason" : 1,
"data" : "////////8gukffjqCAYAAQgABgQAAfILpH346goAAAEAAAAAAAAKAAAD"
}
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 daafb9c..e223891 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
@@ -6,14 +6,7 @@
"duration_nsec" : 48825000,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTEthDst" : {
- "value" : "8gukffjq"
- }
- }
- ],
- "type" : 1
+ "eth_dst" : "f2:0b:a4:7d:f8:ea"
}
},
"reason" : 0,
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 7276fa9..391b42d 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
@@ -2,9 +2,8 @@
"OFPFlowMod" : {
"table_id" : 1,
"priority" : 123,
- "hard_timeout" : 0,
"buffer_id" : 65535,
- "out_group" : 4294967295,
+ "hard_timeout" : 0,
"instructions" : [
{
"OFPInstructionMeter" : {
@@ -25,20 +24,15 @@
}
}
],
+ "out_group" : 4294967295,
"flags" : 0,
"match" : {
"OFPMatch" : {
- "fields" : [
- {
- "MTEthDst" : {
- "value" : "8gukffjq"
- }
- }
- ]
+ "eth_dst" : "f2:0b:a4:7d:f8:ea"
}
},
- "idle_timeout" : 0,
"cookie" : 0,
+ "idle_timeout" : 0,
"cookie_mask" : 0,
"out_port" : 4294967295,
"command" : 0
--
1.8.1.5
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel