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