backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / action / 02_SET_VLAN_PCP.json
1 [
2     "action: 02_SET_VLAN_PCP",
3     {
4         "description": "ethernet/vlan(pcp=3)/ipv4/tcp-->'vlan_pcp=3,actions=mod_vlan_pcp:5,output:2'",
5         "prerequisite": [
6             {
7                 "OFPFlowMod": {
8                     "actions": [
9                         {
10                             "OFPActionVlanPcp": {
11                                 "vlan_pcp": 5
12                             }
13                         },
14                         {
15                             "OFPActionOutput": {
16                                 "port": 2
17                             }
18                         }
19                     ],
20                     "command": 0,
21                     "cookie": 0,
22                     "match": {
23                         "OFPMatch": {
24                             "dl_vlan_pcp": 3
25                         }
26                     }
27                 }
28             }
29         ],
30         "tests": [
31             {
32                 "ingress": [
33                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
34                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
35                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
36                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
37                     "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'"
38                 ],
39                 "egress": [
40                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
41                     "vlan(pcp=5, cfi=0, vid=100, ethertype=2048)",
42                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
43                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
44                     "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'"
45                 ]
46             }
47         ]
48     },
49     {
50         "description": "ethernet/vlan(pcp=3)/ipv6/tcp-->'vlan_pcp=3,actions=mod_vlan_pcp:5,output:2'",
51         "prerequisite": [
52             {
53                 "OFPFlowMod": {
54                     "actions": [
55                         {
56                             "OFPActionVlanPcp": {
57                                 "vlan_pcp": 5
58                             }
59                         },
60                         {
61                             "OFPActionOutput": {
62                                 "port": 2
63                             }
64                         }
65                     ],
66                     "command": 0,
67                     "cookie": 0,
68                     "match": {
69                         "OFPMatch": {
70                             "dl_vlan_pcp": 3
71                         }
72                     }
73                 }
74             }
75         ],
76         "tests": [
77             {
78                 "ingress": [
79                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
80                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
81                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
82                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
83                     "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'"
84                 ],
85                 "egress": [
86                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
87                     "vlan(pcp=5, cfi=0, vid=100, ethertype=34525)",
88                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
89                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
90                     "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'"
91                 ]
92             }
93         ]
94     },
95     {
96         "description": "ethernet/vlan(pcp=3)/arp-->'vlan_pcp=3,actions=mod_vlan_pcp:5,output:2'",
97         "prerequisite": [
98             {
99                 "OFPFlowMod": {
100                     "actions": [
101                         {
102                             "OFPActionVlanPcp": {
103                                 "vlan_pcp": 5
104                             }
105                         },
106                         {
107                             "OFPActionOutput": {
108                                 "port": 2
109                             }
110                         }
111                     ],
112                     "command": 0,
113                     "cookie": 0,
114                     "match": {
115                         "OFPMatch": {
116                             "dl_vlan_pcp": 3
117                         }
118                     }
119                 }
120             }
121         ],
122         "tests": [
123             {
124                 "ingress": [
125                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
126                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
127                     "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')",
128                     "bytes(b'\\x00' * 30)"
129                 ],
130                 "egress": [
131                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
132                     "vlan(pcp=5, cfi=0, vid=100, ethertype=2054)",
133                     "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')",
134                     "bytes(b'\\x00' * 30)"
135                 ]
136             }
137         ]
138     }
139 ]