backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of13 / action / 19_PUSH_MPLS_multiple.json
1 [
2     "action: 19_PUSH_MPLS (multiple)",
3     {
4         "description": "ethernet/mpls/ipv4/tcp-->'eth_type=0x8847,actions=push_mpls:0x8847,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":34887
16                                     }
17                                 }
18                             ]
19                         }
20                     },
21                     "instructions":[
22                         {
23                             "OFPInstructionActions":{
24                                 "actions":[
25                                     {
26                                         "OFPActionPushMpls":{
27                                             "ethertype":34887
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=34887)",
47                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
48                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
49                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
50                     "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'"
51                 ],
52                 "egress":[
53                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
54                     "mpls(bsb=0, label=100, exp=3, ttl=64)",
55                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
56                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
57                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
58                     "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'"
59                 ]
60             }
61         ]
62     },
63     {
64         "description": "ethernet/mpls/ipv6/tcp-->'eth_type=0x8847,actions=push_mpls:0x8847,output:2'",
65         "prerequisite":[
66             {
67                 "OFPFlowMod":{
68                     "table_id":0,
69                     "match":{
70                         "OFPMatch":{
71                             "oxm_fields":[
72                                 {
73                                     "OXMTlv":{
74                                         "field":"eth_type",
75                                         "value":34887
76                                     }
77                                 }
78                             ]
79                         }
80                     },
81                     "instructions":[
82                         {
83                             "OFPInstructionActions":{
84                                 "actions":[
85                                     {
86                                         "OFPActionPushMpls":{
87                                             "ethertype":34887
88                                         }
89                                     },
90                                     {
91                                         "OFPActionOutput":{
92                                             "port":2
93                                         }
94                                     }
95                                 ],
96                                 "type":4
97                             }
98                         }
99                     ]
100                 }
101             }
102         ],
103         "tests":[
104             {
105                 "ingress":[
106                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
107                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
108                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
109                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
110                     "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'"
111                 ],
112                 "egress":[
113                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
114                     "mpls(bsb=0, label=100, exp=3, ttl=64)",
115                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
116                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
117                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
118                     "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'"
119                 ]
120             }
121         ]
122     },
123     {
124         "description": "ethernet/mpls/arp-->'eth_type=0x8847,actions=push_mpls:0x8847,output:2'",
125         "prerequisite":[
126             {
127                 "OFPFlowMod":{
128                     "table_id":0,
129                     "match":{
130                         "OFPMatch":{
131                             "oxm_fields":[
132                                 {
133                                     "OXMTlv":{
134                                         "field":"eth_type",
135                                         "value":34887
136                                     }
137                                 }
138                             ]
139                         }
140                     },
141                     "instructions":[
142                         {
143                             "OFPInstructionActions":{
144                                 "actions":[
145                                     {
146                                         "OFPActionPushMpls":{
147                                             "ethertype":34887
148                                         }
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=34887)",
167                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
168                     "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')",
169                     "bytes(b'\\x00' * 30)"
170                 ],
171                 "egress":[
172                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
173                     "mpls(bsb=0, label=100, exp=3, ttl=64)",
174                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
175                     "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')",
176                     "bytes(b'\\x00' * 30)"
177                 ]
178             }
179         ]
180     }
181 ]