backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of14 / action / 12_COPY_TTL_IN.json
1 [
2     "action: 12_COPY_TTL_IN",
3     {
4         "description": "ethernet/mpls(ttl=64)/ipv4(ttl=32)/tcp-->'eth_type=0x8847,actions=copy_ttl_in,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                                         "OFPActionCopyTtlIn":{}
27                                     },
28                                     {
29                                         "OFPActionOutput":{
30                                             "port":2
31                                         }
32                                     }
33                                 ],
34                                 "type":4
35                             }
36                         }
37                     ]
38                 }
39             }
40         ],
41         "tests":[
42             {
43                 "ingress":[
44                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
45                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
46                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=32)",
47                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
48                     "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'"
49                 ],
50                 "egress":[
51                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
52                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
53                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
54                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
55                     "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'"
56                 ]
57             }
58         ]
59     },
60     {
61         "description": "ethernet/mpls(ttl=64)/ipv6(hop_limit=32)/tcp-->'eth_type=0x8847,actions=copy_ttl_in,output:2'",
62         "prerequisite":[
63             {
64                 "OFPFlowMod":{
65                     "table_id":0,
66                     "match":{
67                         "OFPMatch":{
68                             "oxm_fields":[
69                                 {
70                                     "OXMTlv":{
71                                         "field":"eth_type",
72                                         "value":34887
73                                     }
74                                 }
75                             ]
76                         }
77                     },
78                     "instructions":[
79                         {
80                             "OFPInstructionActions":{
81                                 "actions":[
82                                     {
83                                         "OFPActionCopyTtlIn":{}
84                                     },
85                                     {
86                                         "OFPActionOutput":{
87                                             "port":2
88                                         }
89                                     }
90                                 ],
91                                 "type":4
92                             }
93                         }
94                     ]
95                 }
96             }
97         ],
98         "tests":[
99             {
100                 "ingress":[
101                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
102                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
103                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=32, traffic_class=32)",
104                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
105                     "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'"
106                 ],
107                 "egress":[
108                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
109                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
110                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
111                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
112                     "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'"
113                 ]
114             }
115         ]
116     }
117 ]