backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / match / 04_DL_VLAN_PCP.json
1 [
2     "match: 04_DL_VLAN_PCP",
3     {
4         "description": "ethernet/vlan(pcp=3)/ipv4/tcp-->'dl_vlan_pcp=3,actions=output:2'",
5         "prerequisite": [
6             {
7                 "OFPFlowMod": {
8                     "actions": [
9                         {
10                             "OFPActionOutput": {
11                                 "port": 2
12                             }
13                         }
14                     ],
15                     "command": 0,
16                     "cookie": 0,
17                     "match": {
18                         "OFPMatch": {
19                             "dl_vlan": 100,
20                             "dl_vlan_pcp": 3
21                         }
22                     }
23                 }
24             }
25         ],
26         "tests": [
27             {
28                 "ingress": [
29                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
30                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
31                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
32                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
33                     "b'\\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'"
34                 ],
35                 "egress": [
36                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
37                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
38                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
39                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
40                     "b'\\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'"
41                 ]
42             }
43         ]
44     },
45     {
46         "description": "ethernet/vlan(pcp=3)/ipv4/tcp-->'dl_vlan_pcp=3,actions=output:CONTROLLER'",
47         "prerequisite": [
48             {
49                 "OFPFlowMod": {
50                     "actions": [
51                         {
52                             "OFPActionOutput": {
53                                 "port": 65533
54                             }
55                         }
56                     ],
57                     "command": 0,
58                     "cookie": 0,
59                     "match": {
60                         "OFPMatch": {
61                             "dl_vlan": 100,
62                             "dl_vlan_pcp": 3
63                         }
64                     }
65                 }
66             }
67         ],
68         "tests": [
69             {
70                 "ingress": [
71                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
72                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
73                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
74                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
75                     "b'\\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'"
76                 ],
77                 "PACKET_IN": [
78                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
79                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
80                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
81                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
82                     "b'\\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'"
83                 ]
84             }
85         ]
86     },
87     {
88         "description": "ethernet/vlan(pcp=5)/ipv4/tcp-->'dl_vlan_pcp=3,actions=output:2'",
89         "prerequisite": [
90             {
91                 "OFPFlowMod": {
92                     "actions": [
93                         {
94                             "OFPActionOutput": {
95                                 "port": 2
96                             }
97                         }
98                     ],
99                     "command": 0,
100                     "cookie": 0,
101                     "match": {
102                         "OFPMatch": {
103                             "dl_vlan": 100,
104                             "dl_vlan_pcp": 3
105                         }
106                     }
107                 }
108             }
109         ],
110         "tests": [
111             {
112                 "ingress": [
113                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
114                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2048)",
115                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
116                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
117                     "b'\\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'"
118                 ],
119                 "table-miss": [
120                     0
121                 ]
122             }
123         ]
124     },
125     {
126         "description": "ethernet/vlan(pcp=3)/ipv6/tcp-->'dl_vlan_pcp=3,actions=output:2'",
127         "prerequisite": [
128             {
129                 "OFPFlowMod": {
130                     "actions": [
131                         {
132                             "OFPActionOutput": {
133                                 "port": 2
134                             }
135                         }
136                     ],
137                     "command": 0,
138                     "cookie": 0,
139                     "match": {
140                         "OFPMatch": {
141                             "dl_vlan": 100,
142                             "dl_vlan_pcp": 3
143                         }
144                     }
145                 }
146             }
147         ],
148         "tests": [
149             {
150                 "ingress": [
151                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
152                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
153                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
154                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
155                     "b'\\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'"
156                 ],
157                 "egress": [
158                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
159                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
160                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
161                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
162                     "b'\\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'"
163                 ]
164             }
165         ]
166     },
167     {
168         "description": "ethernet/vlan(pcp=3)/ipv6/tcp-->'dl_vlan_pcp=3,actions=output:CONTROLLER'",
169         "prerequisite": [
170             {
171                 "OFPFlowMod": {
172                     "actions": [
173                         {
174                             "OFPActionOutput": {
175                                 "port": 65533
176                             }
177                         }
178                     ],
179                     "command": 0,
180                     "cookie": 0,
181                     "match": {
182                         "OFPMatch": {
183                             "dl_vlan": 100,
184                             "dl_vlan_pcp": 3
185                         }
186                     }
187                 }
188             }
189         ],
190         "tests": [
191             {
192                 "ingress": [
193                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
194                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
195                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
196                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
197                     "b'\\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'"
198                 ],
199                 "PACKET_IN": [
200                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
201                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
202                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
203                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
204                     "b'\\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'"
205                 ]
206             }
207         ]
208     },
209     {
210         "description": "ethernet/vlan(pcp=5)/ipv6/tcp-->'dl_vlan_pcp=3,actions=output:2'",
211         "prerequisite": [
212             {
213                 "OFPFlowMod": {
214                     "actions": [
215                         {
216                             "OFPActionOutput": {
217                                 "port": 2
218                             }
219                         }
220                     ],
221                     "command": 0,
222                     "cookie": 0,
223                     "match": {
224                         "OFPMatch": {
225                             "dl_vlan": 100,
226                             "dl_vlan_pcp": 3
227                         }
228                     }
229                 }
230             }
231         ],
232         "tests": [
233             {
234                 "ingress": [
235                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
236                     "vlan(pcp=5, cfi=0, vid=203, ethertype=34525)",
237                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
238                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
239                     "b'\\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'"
240                 ],
241                 "table-miss": [
242                     0
243                 ]
244             }
245         ]
246     },
247     {
248         "description": "ethernet/vlan(pcp=3)/arp-->'dl_vlan_pcp=3,actions=output:2'",
249         "prerequisite": [
250             {
251                 "OFPFlowMod": {
252                     "actions": [
253                         {
254                             "OFPActionOutput": {
255                                 "port": 2
256                             }
257                         }
258                     ],
259                     "command": 0,
260                     "cookie": 0,
261                     "match": {
262                         "OFPMatch": {
263                             "dl_vlan": 100,
264                             "dl_vlan_pcp": 3
265                         }
266                     }
267                 }
268             }
269         ],
270         "tests": [
271             {
272                 "ingress": [
273                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
274                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
275                     "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')",
276                     "bytes(b'\\x00' * 30)"
277                 ],
278                 "egress": [
279                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
280                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
281                     "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')",
282                     "bytes(b'\\x00' * 30)"
283                 ]
284             }
285         ]
286     },
287     {
288         "description": "ethernet/vlan(pcp=3)/arp-->'dl_vlan_pcp=3,actions=output:CONTROLLER'",
289         "prerequisite": [
290             {
291                 "OFPFlowMod": {
292                     "actions": [
293                         {
294                             "OFPActionOutput": {
295                                 "port": 65533
296                             }
297                         }
298                     ],
299                     "command": 0,
300                     "cookie": 0,
301                     "match": {
302                         "OFPMatch": {
303                             "dl_vlan": 100,
304                             "dl_vlan_pcp": 3
305                         }
306                     }
307                 }
308             }
309         ],
310         "tests": [
311             {
312                 "ingress": [
313                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
314                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
315                     "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')",
316                     "bytes(b'\\x00' * 30)"
317                 ],
318                 "PACKET_IN": [
319                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
320                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
321                     "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')",
322                     "bytes(b'\\x00' * 30)"
323                 ]
324             }
325         ]
326     },
327     {
328         "description": "ethernet/vlan(pcp=5)/arp-->'dl_vlan_pcp=3,actions=output:2'",
329         "prerequisite": [
330             {
331                 "OFPFlowMod": {
332                     "actions": [
333                         {
334                             "OFPActionOutput": {
335                                 "port": 2
336                             }
337                         }
338                     ],
339                     "command": 0,
340                     "cookie": 0,
341                     "match": {
342                         "OFPMatch": {
343                             "dl_vlan": 100,
344                             "dl_vlan_pcp": 3
345                         }
346                     }
347                 }
348             }
349         ],
350         "tests": [
351             {
352                 "ingress": [
353                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
354                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2054)",
355                     "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')",
356                     "bytes(b'\\x00' * 30)"
357                 ],
358                 "table-miss": [
359                     0
360                 ]
361             }
362         ]
363     }
364 ]