OF 1.4.0 spec (B.14.14 PBB UCA header field) says:

    A new OXM field OFPXMT_OFB_PBB_UCA has been added to match the "use 
customer address" header
    field from the PBB header (EXT-256).

These test files aim to examine new features of 'set-field action' and 'match' 
of FlowMod message.

Signed-off-by: Yuichi Ito <[email protected]>
---
 .../of14/action/25_SET_FIELD/41_PBB_UCA.json       |  235 ++++++++
 ryu/tests/switch/of14/match/41_PBB_UCA.json        |  589 ++++++++++++++++++++
 2 files changed, 824 insertions(+)
 create mode 100644 ryu/tests/switch/of14/action/25_SET_FIELD/41_PBB_UCA.json
 create mode 100644 ryu/tests/switch/of14/match/41_PBB_UCA.json

diff --git a/ryu/tests/switch/of14/action/25_SET_FIELD/41_PBB_UCA.json 
b/ryu/tests/switch/of14/action/25_SET_FIELD/41_PBB_UCA.json
new file mode 100644
index 0000000..bd9e541
--- /dev/null
+++ b/ryu/tests/switch/of14/action/25_SET_FIELD/41_PBB_UCA.json
@@ -0,0 +1,235 @@
+[
+    "action: set_field: 41_PBB_UCA",
+    {
+        "description": 
"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=0,actions=set_field:1->pbb_uca,output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":0
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionSetField":{
+                                            "field":{
+                                                "OXMTlv":{
+                                                    "field":"pbb_uca",
+                                                    "value":1
+                                                }
+                                            }
+                                        }
+                                    },
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=0, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', 
dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "egress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', 
dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        "description": 
"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=0,actions=set_field:1->pbb_uca,output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":0
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionSetField":{
+                                            "field":{
+                                                "OXMTlv":{
+                                                    "field":"pbb_uca",
+                                                    "value":1
+                                                }
+                                            }
+                                        }
+                                    },
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=0, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
+                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, 
hop_limit=64, traffic_class=32)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "egress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
+                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, 
hop_limit=64, traffic_class=32)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        "description": 
"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/arp-->'pbb_uca=0,actions=set_field:1->pbb_uca,output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":0
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionSetField":{
+                                            "field":{
+                                                "OXMTlv":{
+                                                    "field":"pbb_uca",
+                                                    "value":1
+                                                }
+                                            }
+                                        }
+                                    },
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=0, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
+                    "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', 
opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
+                    "str('\\x00' * 30)"
+                ],
+                "egress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
+                    "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', 
opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
+                    "str('\\x00' * 30)"
+                ]
+            }
+        ]
+    }
+]
diff --git a/ryu/tests/switch/of14/match/41_PBB_UCA.json 
b/ryu/tests/switch/of14/match/41_PBB_UCA.json
new file mode 100644
index 0000000..432c962
--- /dev/null
+++ b/ryu/tests/switch/of14/match/41_PBB_UCA.json
@@ -0,0 +1,589 @@
+[
+    "match: 41_PBB_UCA",
+    {
+        
"description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=1,actions=output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', 
dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "egress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', 
dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=1,actions=output:CONTROLLER'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "max_len":65535,
+                                            "port":4294967293
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', 
dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "PACKET_IN":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', 
dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=1,actions=output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='ba:bb:bb:bb:bb:bb', 
src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=0, sid=100)",
+                    "ethernet(dst='ba:bb:bb:bb:bb:bb', 
src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=5, cfi=0, vid=203, ethertype=2048)",
+                    "ipv4(tos=65, proto=6, src='10.10.10.10', 
dst='10.10.20.20', ttl=127)",
+                    "tcp(dst_port=6789, option=str('\\x11' * 4), 
src_port=12345)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "table-miss":[
+                    0
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=1,actions=output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
+                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, 
hop_limit=64, traffic_class=32)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "egress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
+                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, 
hop_limit=64, traffic_class=32)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=1,actions=output:CONTROLLER'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "max_len":65535,
+                                            "port":4294967293
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
+                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, 
hop_limit=64, traffic_class=32)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "PACKET_IN":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
+                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, 
hop_limit=64, traffic_class=32)",
+                    "tcp(dst_port=2222, option=str('\\x00' * 4), 
src_port=11111)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=1,actions=output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='ba:bb:bb:bb:bb:bb', 
src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=0, sid=100)",
+                    "ethernet(dst='ba:bb:bb:bb:bb:bb', 
src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=5, cfi=0, vid=203, ethertype=34525)",
+                    "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, 
hop_limit=127, traffic_class=65)",
+                    "tcp(dst_port=6789, option=str('\\x11' * 4), 
src_port=12345)",
+                    
"'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "table-miss":[
+                    0
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/arp-->'pbb_uca=1,actions=output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
+                    "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', 
opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
+                    "str('\\x00' * 30)"
+                ],
+                "egress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
+                    "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', 
opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
+                    "str('\\x00' * 30)"
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/arp-->'pbb_uca=1,actions=output:CONTROLLER'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "max_len":65535,
+                                            "port":4294967293
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
+                    "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', 
opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
+                    "str('\\x00' * 30)"
+                ],
+                "PACKET_IN":[
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=1, sid=100)",
+                    "ethernet(dst='22:22:22:22:22:22', 
src='12:11:11:11:11:11', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
+                    "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', 
opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
+                    "str('\\x00' * 30)"
+                ]
+            }
+        ]
+    },
+    {
+        
"description":"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/arp-->'pbb_uca=1,actions=output:2'",
+        "prerequisite":[
+            {
+                "OFPFlowMod":{
+                    "table_id":0,
+                    "match":{
+                        "OFPMatch":{
+                            "oxm_fields":[
+                                {
+                                    "OXMTlv":{
+                                        "field":"eth_type",
+                                        "value":35047
+                                    }
+                                },
+                                {
+                                    "OXMTlv":{
+                                        "field":"pbb_uca",
+                                        "value":1
+                                    }
+                                }
+                            ]
+                        }
+                    },
+                    "instructions":[
+                        {
+                            "OFPInstructionActions":{
+                                "actions":[
+                                    {
+                                        "OFPActionOutput":{
+                                            "port":2
+                                        }
+                                    }
+                                ],
+                                "type":4
+                            }
+                        }
+                    ]
+                }
+            }
+        ],
+        "tests":[
+            {
+                "ingress":[
+                    "ethernet(dst='ba:bb:bb:bb:bb:bb', 
src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
+                    "svlan(ethertype=35047, vid=10)",
+                    "itag(uca=0, sid=100)",
+                    "ethernet(dst='ba:bb:bb:bb:bb:bb', 
src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
+                    "svlan(ethertype=33024, vid=10)",
+                    "vlan(pcp=5, cfi=0, vid=203, ethertype=2054)",
+                    "arp(dst_ip='10.10.20.20',dst_mac='ba:bb:bb:bb:bb:bb', 
opcode=2, src_ip='10.10.10.10',src_mac='aa:aa:aa:aa:aa:aa')",
+                    "str('\\x00' * 30)"
+                ],
+                "table-miss":[
+                    0
+                ]
+            }
+        ]
+    }
+]
--
1.7.10.4


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to