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