backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / match / 08_NW_SRC_Mask.json
1 [
2     "match: 08_NW_SRC (Mask)",
3     {
4         "description": "ethernet/ipv4(src='192.168.10.10')/tcp-->'nw_src=192.168.10.0/24,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_type": 2048,
20                             "nw_src": "192.168.10.0",
21                             "nw_src_mask": 24
22                         }
23                     }
24                 }
25             }
26         ],
27         "tests": [
28             {
29                 "ingress": [
30                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', 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=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/ipv4(src='192.168.10.10')/tcp-->'nw_src=192.168.10.0/24,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_type": 2048,
61                             "nw_src": "192.168.10.0",
62                             "nw_src_mask": 24
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=2048)",
72                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
73                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
74                     "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'"
75                 ],
76                 "PACKET_IN": [
77                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', 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/ipv4(src='10.10.10.10')/tcp-->'nw_src=192.168.10.0/24,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_type": 2048,
102                             "nw_src": "192.168.10.0",
103                             "nw_src_mask": 24
104                         }
105                     }
106                 }
107             }
108         ],
109         "tests": [
110             {
111                 "ingress": [
112                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=2048)",
113                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
114                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
115                     "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'"
116                 ],
117                 "table-miss": [
118                     0
119                 ]
120             }
121         ]
122     },
123     {
124         "description": "ethernet/vlan/ipv4(src='192.168.10.10')/tcp-->'nw_src=192.168.10.0/24,actions=output:2'",
125         "prerequisite": [
126             {
127                 "OFPFlowMod": {
128                     "actions": [
129                         {
130                             "OFPActionOutput": {
131                                 "port": 2
132                             }
133                         }
134                     ],
135                     "command": 0,
136                     "cookie": 0,
137                     "match": {
138                         "OFPMatch": {
139                             "dl_type": 2048,
140                             "nw_src": "192.168.10.0",
141                             "nw_src_mask": 24
142                         }
143                     }
144                 }
145             }
146         ],
147         "tests": [
148             {
149                 "ingress": [
150                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
151                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
152                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
153                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
154                     "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'"
155                 ],
156                 "egress": [
157                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
158                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
159                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
160                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
161                     "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'"
162                 ]
163             }
164         ]
165     },
166     {
167         "description": "ethernet/vlan/ipv4(src='192.168.10.10')/tcp-->'nw_src=192.168.10.0/24,actions=output:CONTROLLER'",
168         "prerequisite": [
169             {
170                 "OFPFlowMod": {
171                     "actions": [
172                         {
173                             "OFPActionOutput": {
174                                 "port": 65533
175                             }
176                         }
177                     ],
178                     "command": 0,
179                     "cookie": 0,
180                     "match": {
181                         "OFPMatch": {
182                             "dl_type": 2048,
183                             "nw_src": "192.168.10.0",
184                             "nw_src_mask": 24
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=2048)",
195                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
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=2048)",
202                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
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/ipv4(src='10.10.10.10')/tcp-->'nw_src=192.168.10.0/24,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_type": 2048,
226                             "nw_src": "192.168.10.0",
227                             "nw_src_mask": 24
228                         }
229                     }
230                 }
231             }
232         ],
233         "tests": [
234             {
235                 "ingress": [
236                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
237                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2048)",
238                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
239                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
240                     "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'"
241                 ],
242                 "table-miss": [
243                     0
244                 ]
245             }
246         ]
247     }
248 ]