backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of14 / action / 25_SET_FIELD / 38_TUNNEL_ID.json
1 [
2     "action: set_field: 38_TUNNEL_ID",
3     {
4         "description": "ethernet/ipv4/tcp-->'actions=set_field:12345->tunnel_id,goto_table:1','table_id:1,tunnel_id=12345,actions=output:2'",
5         "prerequisite":[
6             {
7                 "OFPFlowMod":{
8                     "table_id":0,
9                     "match":{
10                         "OFPMatch":{
11                             "oxm_fields":[
12                                 {
13                                     "OXMTlv":{
14                                         "field":"in_port",
15                                         "value":1
16                                     }
17                                 }
18                             ]
19                         }
20                     },
21                     "instructions":[
22                         {
23                             "OFPInstructionActions":{
24                                 "actions":[
25                                     {
26                                         "OFPActionSetField":{
27                                             "field":{
28                                                 "OXMTlv":{
29                                                     "field":"tunnel_id",
30                                                     "value":12345
31                                                 }
32                                             }
33                                         }
34                                     }
35                                 ],
36                                 "type":4
37                             }
38                         },
39                         {
40                             "OFPInstructionGotoTable":{
41                                 "table_id":1
42                             }
43                         }
44                     ]
45                 }
46             },
47             {
48                 "OFPFlowMod":{
49                     "table_id":1,
50                     "match":{
51                         "OFPMatch":{
52                             "oxm_fields":[
53                                 {
54                                     "OXMTlv":{
55                                         "field":"tunnel_id",
56                                         "value":12345
57                                     }
58                                 }
59                             ]
60                         }
61                     },
62                     "instructions":[
63                         {
64                             "OFPInstructionActions":{
65                                 "actions":[
66                                     {
67                                         "OFPActionOutput":{
68                                             "port":2
69                                         }
70                                     }
71                                 ],
72                                 "type":4
73                             }
74                         }
75                     ]
76                 }
77             }
78         ],
79         "tests":[
80             {
81                 "ingress":[
82                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
83                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
84                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
85                     "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'"
86                 ],
87                 "egress":[
88                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
89                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
90                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
91                     "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'"
92                 ]
93             }
94         ]
95     },
96     {
97         "description": "ethernet/ipv6/tcp-->'actions=set_field:12345->tunnel_id,goto_table:1','table_id:1,tunnel_id=12345,actions=output:2'",
98         "prerequisite":[
99             {
100                 "OFPFlowMod":{
101                     "table_id":0,
102                     "match":{
103                         "OFPMatch":{
104                             "oxm_fields":[
105                                 {
106                                     "OXMTlv":{
107                                         "field":"in_port",
108                                         "value":1
109                                     }
110                                 }
111                             ]
112                         }
113                     },
114                     "instructions":[
115                         {
116                             "OFPInstructionActions":{
117                                 "actions":[
118                                     {
119                                         "OFPActionSetField":{
120                                             "field":{
121                                                 "OXMTlv":{
122                                                     "field":"tunnel_id",
123                                                     "value":12345
124                                                 }
125                                             }
126                                         }
127                                     }
128                                 ],
129                                 "type":4
130                             }
131                         },
132                         {
133                             "OFPInstructionGotoTable":{
134                                 "table_id":1
135                             }
136                         }
137                     ]
138                 }
139             },
140             {
141                 "OFPFlowMod":{
142                     "table_id":1,
143                     "match":{
144                         "OFPMatch":{
145                             "oxm_fields":[
146                                 {
147                                     "OXMTlv":{
148                                         "field":"tunnel_id",
149                                         "value":12345
150                                     }
151                                 }
152                             ]
153                         }
154                     },
155                     "instructions":[
156                         {
157                             "OFPInstructionActions":{
158                                 "actions":[
159                                     {
160                                         "OFPActionOutput":{
161                                             "port":2
162                                         }
163                                     }
164                                 ],
165                                 "type":4
166                             }
167                         }
168                     ]
169                 }
170             }
171         ],
172         "tests":[
173             {
174                 "ingress":[
175                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
176                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
177                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
178                     "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'"
179                 ],
180                 "egress":[
181                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
182                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
183                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
184                     "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'"
185                 ]
186             }
187         ]
188     },
189     {
190         "description": "ethernet/arp-->'actions=set_field:12345->tunnel_id,goto_table:1','table_id:1,tunnel_id=12345,actions=output:2'",
191         "prerequisite":[
192             {
193                 "OFPFlowMod":{
194                     "table_id":0,
195                     "match":{
196                         "OFPMatch":{
197                             "oxm_fields":[
198                                 {
199                                     "OXMTlv":{
200                                         "field":"in_port",
201                                         "value":1
202                                     }
203                                 }
204                             ]
205                         }
206                     },
207                     "instructions":[
208                         {
209                             "OFPInstructionActions":{
210                                 "actions":[
211                                     {
212                                         "OFPActionSetField":{
213                                             "field":{
214                                                 "OXMTlv":{
215                                                     "field":"tunnel_id",
216                                                     "value":12345
217                                                 }
218                                             }
219                                         }
220                                     }
221                                 ],
222                                 "type":4
223                             }
224                         },
225                         {
226                             "OFPInstructionGotoTable":{
227                                 "table_id":1
228                             }
229                         }
230                     ]
231                 }
232             },
233             {
234                 "OFPFlowMod":{
235                     "table_id":1,
236                     "match":{
237                         "OFPMatch":{
238                             "oxm_fields":[
239                                 {
240                                     "OXMTlv":{
241                                         "field":"tunnel_id",
242                                         "value":12345
243                                     }
244                                 }
245                             ]
246                         }
247                     },
248                     "instructions":[
249                         {
250                             "OFPInstructionActions":{
251                                 "actions":[
252                                     {
253                                         "OFPActionOutput":{
254                                             "port":2
255                                         }
256                                     }
257                                 ],
258                                 "type":4
259                             }
260                         }
261                     ]
262                 }
263             }
264         ],
265         "tests":[
266             {
267                 "ingress":[
268                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
269                     "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')",
270                     "bytes(b'\\x00' * (60 - 42))"
271                 ],
272                 "egress":[
273                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', 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' * (60 - 42))"
276                 ]
277             }
278         ]
279     }
280 ]