backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / action / 10_SET_TP_DST_IPv6_UDP.json
1 [
2     "action: 10_SET_TP_DST (IPv6/UDP)",
3     {
4         "description": "ethernet/ipv6/udp(dst_port=2222)-->'tp_dst=2222,actions=mod_tp_dst:6789,output:2'",
5         "prerequisite": [
6             {
7                 "OFPFlowMod": {
8                     "actions": [
9                         {
10                             "OFPActionSetTpDst": {
11                                 "tp": 6789
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_proto": 17,
26                             "tp_dst": 2222
27                         }
28                     }
29                 }
30             }
31         ],
32         "tests": [
33             {
34                 "ingress": [
35                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
36                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=17, hop_limit=64, traffic_class=32)",
37                     "udp(dst_port=2222, src_port=11111)",
38                     "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'"
39                 ],
40                 "egress": [
41                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
42                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=17, hop_limit=64, traffic_class=32)",
43                     "udp(dst_port=6789, 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/ipv6/udp(dst_port=2222)-->'tp_dst=2222,actions=mod_tp_dst:6789,output:2'",
51         "prerequisite": [
52             {
53                 "OFPFlowMod": {
54                     "actions": [
55                         {
56                             "OFPActionSetTpDst": {
57                                 "tp": 6789
58                             }
59                         },
60                         {
61                             "OFPActionOutput": {
62                                 "port": 2
63                             }
64                         }
65                     ],
66                     "command": 0,
67                     "cookie": 0,
68                     "match": {
69                         "OFPMatch": {
70                             "dl_type": 34525,
71                             "nw_proto": 17,
72                             "tp_dst": 2222
73                         }
74                     }
75                 }
76             }
77         ],
78         "tests": [
79             {
80                 "ingress": [
81                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
82                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
83                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=17, hop_limit=64, traffic_class=32)",
84                     "udp(dst_port=2222, src_port=11111)",
85                     "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'"
86                 ],
87                 "egress": [
88                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
89                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
90                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=17, hop_limit=64, traffic_class=32)",
91                     "udp(dst_port=6789, src_port=11111)",
92                     "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'"
93                 ]
94             }
95         ]
96     }
97 ]