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