summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwatanabe.fumitaka <watanabe.fumitaka1@gmail.com>2014-02-06 17:10:23 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-02-06 17:16:48 +0900
commit8244d4f24bce0b197011f7790cf5a0b05f172465 (patch)
treeb4b45246a4d49b8c8e47aa334af761096dbf494c
parent8801af297425bfd106b06346aac83e9083bcf29c (diff)
sw test tool: fix wrong instruction(write metadata) value of test files
The value of instruction(write metadata) of the test file is wrong. In the table-miss test of of13/match/02_METADATA* test files, metadata=255 or 240(mask=0xf0) is specified as match. In order to make it table-miss, it needed to write metadata except 255. Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka1@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/switch/of13/match/02_METADATA.json4
-rw-r--r--ryu/tests/switch/of13/match/02_METADATA_Mask.json12
2 files changed, 8 insertions, 8 deletions
diff --git a/ryu/tests/switch/of13/match/02_METADATA.json b/ryu/tests/switch/of13/match/02_METADATA.json
index 1927147e..af59632d 100644
--- a/ryu/tests/switch/of13/match/02_METADATA.json
+++ b/ryu/tests/switch/of13/match/02_METADATA.json
@@ -594,7 +594,7 @@
]
},
{
- "description":"ethernet/arp-->'actions=write_metadata:255/0xffffffff,goto_table:1','table_id:1,metadata=255,actions=output:2'",
+ "description":"ethernet/arp-->'actions=write_metadata:155/0xffffffff,goto_table:1','table_id:1,metadata=255,actions=output:2'",
"prerequisite":[
{
"OFPFlowMod":{
@@ -607,7 +607,7 @@
"instructions":[
{
"OFPInstructionWriteMetadata":{
- "metadata":255,
+ "metadata":155,
"metadata_mask":4294967295
}
},
diff --git a/ryu/tests/switch/of13/match/02_METADATA_Mask.json b/ryu/tests/switch/of13/match/02_METADATA_Mask.json
index 44e20613..385df50e 100644
--- a/ryu/tests/switch/of13/match/02_METADATA_Mask.json
+++ b/ryu/tests/switch/of13/match/02_METADATA_Mask.json
@@ -154,7 +154,7 @@
]
},
{
- "description":"ethernet/ipv4/tcp-->'actions=write_metadata:255/0xffffffff,goto_table:1','table_id:1,metadata=240(mask=0xfffffff0),actions=output:2'",
+ "description":"ethernet/ipv4/tcp-->'actions=write_metadata:155/0xffffffff,goto_table:1','table_id:1,metadata=240(mask=0xfffffff0),actions=output:2'",
"prerequisite":[
{
"OFPFlowMod":{
@@ -167,7 +167,7 @@
"instructions":[
{
"OFPInstructionWriteMetadata":{
- "metadata":255,
+ "metadata":155,
"metadata_mask":4294967295
}
},
@@ -380,7 +380,7 @@
]
},
{
- "description":"ethernet/ipv6/tcp-->'actions=write_metadata:255/0xffffffff,goto_table:1','table_id:1,metadata=240(mask=0xfffffff0),actions=output:2'",
+ "description":"ethernet/ipv6/tcp-->'actions=write_metadata:155/0xffffffff,goto_table:1','table_id:1,metadata=240(mask=0xfffffff0),actions=output:2'",
"prerequisite":[
{
"OFPFlowMod":{
@@ -393,7 +393,7 @@
"instructions":[
{
"OFPInstructionWriteMetadata":{
- "metadata":255,
+ "metadata":155,
"metadata_mask":4294967295
}
},
@@ -602,7 +602,7 @@
]
},
{
- "description":"ethernet/arp-->'actions=write_metadata:255/0xffffffff,goto_table:1','table_id:1,metadata=240(mask=0xfffffff0),actions=output:2'",
+ "description":"ethernet/arp-->'actions=write_metadata:155/0xffffffff,goto_table:1','table_id:1,metadata=240(mask=0xfffffff0),actions=output:2'",
"prerequisite":[
{
"OFPFlowMod":{
@@ -615,7 +615,7 @@
"instructions":[
{
"OFPInstructionWriteMetadata":{
- "metadata":255,
+ "metadata":155,
"metadata_mask":4294967295
}
},