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