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