backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / action / 08_SET_NW_TOS_IPv6.json
1 [
2     "action: 08_SET_NW_TOS (IPv6)",
3     {
4         "description": "ethernet/ipv6(traffic_class=32)/tcp-->'nw_tos=32,actions=mod_nw_tos:64,output:2'",
5         "prerequisite": [
6             {
7                 "OFPFlowMod": {
8                     "actions": [
9                         {
10                             "OFPActionSetNwTos": {
11                                 "tos": 64
12                             }
13                         },
14                         {
15                             "OFPActionOutput": {
16                                 "port": 2
17                             }
18                         }
19                     ],
20                     "command": 0,
21                     "cookie": 0,
22                     "match": {
23                         "OFPMatch": {
24                             "dl_type": 34525,
25                             "nw_tos": 32
26                         }
27                     }
28                 }
29             }
30         ],
31         "tests": [
32             {
33                 "ingress": [
34                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
35                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
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=34525)",
41                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=64)",
42                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
43                     "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'"
44                 ]
45             }
46         ]
47     },
48     {
49         "description": "ethernet/vlan/ipv6(traffic_class=32)/tcp-->'nw_tos=32,actions=mod_nw_tos:64,output:2'",
50         "prerequisite": [
51             {
52                 "OFPFlowMod": {
53                     "actions": [
54                         {
55                             "OFPActionSetNwTos": {
56                                 "tos": 64
57                             }
58                         },
59                         {
60                             "OFPActionOutput": {
61                                 "port": 2
62                             }
63                         }
64                     ],
65                     "command": 0,
66                     "cookie": 0,
67                     "match": {
68                         "OFPMatch": {
69                             "dl_type": 34525,
70                             "nw_tos": 32
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=3, cfi=0, vid=100, ethertype=34525)",
88                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=64)",
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 ]