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