summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-07-23 16:03:25 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-07-31 21:06:38 +0900
commit2ef6d905d9118fa4ab43eef419ae90d54b7bb1e4 (patch)
treeb2a73efe2a0e236050500e6af1a623927e03fd9c
parent6fe5867be72e9895cedb32236a114af71e163612 (diff)
test_parser: update of12 expected results
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-11-ofp_flow_stats_request.packet.json8
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-12-ofp_flow_stats_reply.packet.json50
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json14
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-25-ofp_aggregate_stats_request.packet.json6
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-3-ofp_flow_mod.packet.json20
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-4-ofp_packet_in.packet.json59
-rw-r--r--ryu/tests/unit/ofproto/json/of12/3-40-ofp_flow_removed.packet.json9
7 files changed, 38 insertions, 128 deletions
diff --git a/ryu/tests/unit/ofproto/json/of12/3-11-ofp_flow_stats_request.packet.json b/ryu/tests/unit/ofproto/json/of12/3-11-ofp_flow_stats_request.packet.json
index e9597ce6..e677585c 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-11-ofp_flow_stats_request.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-11-ofp_flow_stats_request.packet.json
@@ -1,15 +1,13 @@
{
"OFPFlowStatsRequest" : {
"table_id" : 0,
- "out_group" : 4294967295,
"flags" : 0,
- "out_port" : 4294967295,
+ "out_group" : 4294967295,
"match" : {
- "OFPMatch" : {
- "fields" : []
- }
+ "OFPMatch" : {}
},
"cookie" : 0,
+ "out_port" : 4294967295,
"cookie_mask" : 0
}
}
diff --git a/ryu/tests/unit/ofproto/json/of12/3-12-ofp_flow_stats_reply.packet.json b/ryu/tests/unit/ofproto/json/of12/3-12-ofp_flow_stats_reply.packet.json
index e9e941fd..04ee86a2 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-12-ofp_flow_stats_reply.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-12-ofp_flow_stats_reply.packet.json
@@ -4,18 +4,15 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 65535,
"hard_timeout" : 0,
+ "priority" : 65535,
"instructions" : [],
"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
@@ -24,8 +21,8 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 65534,
"hard_timeout" : 0,
+ "priority" : 65534,
"instructions" : [
{
"OFPInstructionActions" : {
@@ -44,18 +41,11 @@
"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
@@ -64,8 +54,8 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 123,
"hard_timeout" : 0,
+ "priority" : 123,
"instructions" : [
{
"OFPInstructionGotoTable" : {
@@ -76,23 +66,12 @@
"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
@@ -101,8 +80,8 @@
{
"OFPFlowStats" : {
"table_id" : 0,
- "priority" : 0,
"hard_timeout" : 0,
+ "priority" : 0,
"instructions" : [
{
"OFPInstructionActions" : {
@@ -120,13 +99,10 @@
],
"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/of12/3-2-ofp_flow_mod.packet.json b/ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json
index f157f07c..415a20f5 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-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/of12/3-25-ofp_aggregate_stats_request.packet.json b/ryu/tests/unit/ofproto/json/of12/3-25-ofp_aggregate_stats_request.packet.json
index 134a61af..1a6f4ec5 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-25-ofp_aggregate_stats_request.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-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/of12/3-3-ofp_flow_mod.packet.json b/ryu/tests/unit/ofproto/json/of12/3-3-ofp_flow_mod.packet.json
index 78bb76b8..1432c7c5 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-3-ofp_flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-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/of12/3-4-ofp_packet_in.packet.json b/ryu/tests/unit/ofproto/json/of12/3-4-ofp_packet_in.packet.json
index 998a188c..f8792c72 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-4-ofp_packet_in.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-4-ofp_packet_in.packet.json
@@ -3,59 +3,20 @@
"table_id" : 1,
"buffer_id" : 2,
"total_len" : 42,
- "reason" : 1,
"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"
}
},
+ "reason" : 1,
"data" : "////////8gukffjqCAYAAQgABgQAAfILpH346goAAAEAAAAAAAAKAAAD"
}
}
diff --git a/ryu/tests/unit/ofproto/json/of12/3-40-ofp_flow_removed.packet.json b/ryu/tests/unit/ofproto/json/of12/3-40-ofp_flow_removed.packet.json
index daafb9c0..e223891f 100644
--- a/ryu/tests/unit/ofproto/json/of12/3-40-ofp_flow_removed.packet.json
+++ b/ryu/tests/unit/ofproto/json/of12/3-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,