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