]>
Commit | Line | Data |
---|---|---|
0f538378 EJ |
1 | AT_BANNER([tunnel]) |
2 | ||
3 | AT_SETUP([tunnel - input]) | |
4 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
5 | options:remote_ip=1.1.1.1 ofport_request=1\ | |
6 | -- add-port br0 p2 -- set Interface p2 type=gre \ | |
7 | options:local_ip=2.2.2.2 options:remote_ip=1.1.1.1 \ | |
8 | ofport_request=2 \ | |
9 | -- add-port br0 p3 -- set Interface p3 type=gre \ | |
10 | options:remote_ip=2.2.2.2 ofport_request=3]) | |
11 | AT_DATA([flows.txt], [dnl | |
12 | actions=IN_PORT | |
13 | ]) | |
a36de779 | 14 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
0f538378 EJ |
15 | |
16 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
17 | ||
e79a6c83 | 18 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
19 | br0 65534/100: (dummy-internal) |
20 | p1 1/1: (gre: remote_ip=1.1.1.1) | |
21 | p2 2/1: (gre: local_ip=2.2.2.2, remote_ip=1.1.1.1) | |
22 | p3 3/1: (gre: remote_ip=2.2.2.2) | |
0f538378 EJ |
23 | ]) |
24 | ||
25 | dnl remote_ip | |
65da723b | 26 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=1.2.3.4,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 27 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 28 | [Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,flags(df))),1 |
0f538378 EJ |
29 | ]) |
30 | ||
31 | dnl local_ip, remote_ip | |
65da723b | 32 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 33 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 34 | [Datapath actions: set(tunnel(src=2.2.2.2,dst=1.1.1.1,ttl=64,flags(df))),1 |
0f538378 EJ |
35 | ]) |
36 | ||
37 | dnl reconfigure, local_ip, remote_ip | |
38 | AT_CHECK([ovs-vsctl set Interface p2 type=gre options:local_ip=2.2.2.3 \ | |
39 | options:df_default=false options:ttl=1 options:csum=true \ | |
99e7b077 | 40 | -- set Interface p3 type=vxlan]) |
e79a6c83 | 41 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
42 | br0 65534/100: (dummy-internal) |
43 | p1 1/1: (gre: remote_ip=1.1.1.1) | |
44 | p2 2/1: (gre: csum=true, df_default=false, local_ip=2.2.2.3, remote_ip=1.1.1.1, ttl=1) | |
45 | p3 3/4789: (vxlan: remote_ip=2.2.2.2) | |
0f538378 | 46 | ]) |
65da723b | 47 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 48 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 49 | [Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,flags(df))),1 |
0f538378 | 50 | ]) |
65da723b | 51 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.3,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 52 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 53 | [Datapath actions: set(tunnel(src=2.2.2.3,dst=1.1.1.1,ttl=1,flags(csum))),1 |
0f538378 EJ |
54 | ]) |
55 | ||
56 | dnl nonexistent tunnel | |
65da723b | 57 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=5.5.5.5,dst=6.6.6.6,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [2], [ignore], [dnl |
d40533fc | 58 | no OpenFlow tunnel port for this packet |
0f538378 EJ |
59 | ovs-appctl: ovs-vswitchd: server returned an error |
60 | ]) | |
61 | ||
6e1fb7e1 | 62 | OVS_VSWITCHD_STOP(["/receive tunnel port not found/d"]) |
0f538378 EJ |
63 | AT_CLEANUP |
64 | ||
65 | AT_SETUP([tunnel - ECN decapsulation]) | |
66 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
67 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
68 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
69 | ofport_request=2]) | |
70 | AT_DATA([flows.txt], [dnl | |
71 | actions=2 | |
72 | ]) | |
73 | ||
74 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
75 | ||
e79a6c83 | 76 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
77 | br0 65534/100: (dummy-internal) |
78 | p1 1/1: (gre: remote_ip=1.1.1.1) | |
79 | p2 2/2: (dummy) | |
0f538378 EJ |
80 | ]) |
81 | ||
4863c249 | 82 | dnl Tunnel CE and encapsulated packet CE |
65da723b | 83 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,tos=0x3,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=3,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
ce58df5b | 84 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 85 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=3,tun_flags=-df-csum-key,in_port=1,nw_ecn=3,nw_frag=no |
ce58df5b | 86 | Datapath actions: 2 |
4863c249 JP |
87 | ]) |
88 | ||
89 | dnl Tunnel CE and encapsulated packet ECT(1) | |
65da723b | 90 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,tos=0x3,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=1,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
ce58df5b | 91 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 92 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=3,tun_flags=-df-csum-key,in_port=1,nw_ecn=1,nw_frag=no |
d23df9a8 | 93 | Datapath actions: set(ipv4(tos=0x3/0x3)),2 |
0f538378 | 94 | ]) |
4863c249 JP |
95 | |
96 | dnl Tunnel CE and encapsulated packet ECT(2) | |
65da723b | 97 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,tos=0x3,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=2,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
ce58df5b | 98 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 99 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=3,tun_flags=-df-csum-key,in_port=1,nw_ecn=2,nw_frag=no |
d23df9a8 | 100 | Datapath actions: set(ipv4(tos=0x3/0x3)),2 |
4863c249 JP |
101 | ]) |
102 | ||
103 | dnl Tunnel CE and encapsulated packet Non-ECT | |
65da723b | 104 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,tos=0x3,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
a13a0209 AT |
105 | AT_CHECK([tail -3 stdout], [0], |
106 | [Final flow: unchanged | |
107 | Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=3,tun_flags=-df-csum-key,in_port=1,nw_ecn=0,nw_frag=no | |
ce58df5b | 108 | Datapath actions: drop |
4863c249 JP |
109 | ]) |
110 | OVS_VSWITCHD_STOP(["/dropping tunnel packet marked ECN CE but is not ECN capable/d"]) | |
0f538378 EJ |
111 | AT_CLEANUP |
112 | ||
113 | AT_SETUP([tunnel - output]) | |
114 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
115 | options:remote_ip=1.1.1.1 options:local_ip=2.2.2.2 \ | |
116 | options:key=5 ofport_request=1\ | |
117 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
b3632186 | 118 | ofport_request=2]) |
0f538378 EJ |
119 | AT_DATA([flows.txt], [dnl |
120 | actions=output:1 | |
121 | ]) | |
122 | ||
a36de779 | 123 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
0f538378 EJ |
124 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) |
125 | ||
e79a6c83 | 126 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
127 | br0 65534/100: (dummy-internal) |
128 | p1 1/1: (gre: key=5, local_ip=2.2.2.2, remote_ip=1.1.1.1) | |
129 | p2 2/2: (dummy) | |
0f538378 EJ |
130 | ]) |
131 | ||
132 | dnl Basic | |
50aa28fd | 133 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=4,ttl=128,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 134 | AT_CHECK([tail -1 stdout], [0], |
8e4c1621 | 135 | [Datapath actions: set(tunnel(tun_id=0x5,src=2.2.2.2,dst=1.1.1.1,ttl=64,flags(df|key))),1 |
0f538378 EJ |
136 | ]) |
137 | ||
138 | dnl ECN | |
50aa28fd | 139 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=1,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 140 | AT_CHECK([tail -1 stdout], [0], |
8e4c1621 | 141 | [Datapath actions: set(tunnel(tun_id=0x5,src=2.2.2.2,dst=1.1.1.1,tos=0x1,ttl=64,flags(df|key))),1 |
0f538378 EJ |
142 | ]) |
143 | OVS_VSWITCHD_STOP | |
144 | AT_CLEANUP | |
145 | ||
f574ff4a AA |
146 | AT_SETUP([tunnel - unencrypted tunnel and not setting skb_mark]) |
147 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
148 | options:remote_ip=1.1.1.1 options:local_ip=2.2.2.2 \ | |
149 | options:key=5 ofport_request=1\ | |
150 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
151 | ofport_request=2 ofport_request=2]) | |
152 | AT_DATA([flows.txt], [dnl | |
153 | actions=output:1 | |
154 | ]) | |
155 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
156 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
157 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=4,ttl=128,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) | |
158 | AT_CHECK([tail -1 stdout], [0], | |
159 | [Datapath actions: set(tunnel(tun_id=0x5,src=2.2.2.2,dst=1.1.1.1,ttl=64,flags(df|key))),1 | |
160 | ]) | |
161 | OVS_VSWITCHD_STOP | |
162 | AT_CLEANUP | |
163 | ||
164 | AT_SETUP([tunnel - unencrypted tunnel and setting skb_mark to 1]) | |
165 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
166 | options:remote_ip=1.1.1.1 options:local_ip=2.2.2.2 \ | |
167 | options:key=5 ofport_request=1\ | |
168 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
169 | ofport_request=2 ofport_request=2]) | |
170 | AT_DATA([flows.txt], [dnl | |
171 | actions=load:0x1->NXM_NX_PKT_MARK[[]],output:1 | |
172 | ]) | |
173 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
174 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
175 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=4,ttl=128,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) | |
176 | AT_CHECK([tail -1 stdout], [0], | |
177 | [Datapath actions: set(tunnel(tun_id=0x5,src=2.2.2.2,dst=1.1.1.1,ttl=64,flags(df|key))),set(skb_mark(0x1)),1 | |
178 | ]) | |
179 | OVS_VSWITCHD_STOP | |
180 | AT_CLEANUP | |
181 | ||
182 | AT_SETUP([tunnel - unencrypted tunnel and setting skb_mark to 2]) | |
183 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
184 | options:remote_ip=1.1.1.1 options:local_ip=2.2.2.2 \ | |
185 | options:key=5 ofport_request=1\ | |
186 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
187 | ofport_request=2 ofport_request=2]) | |
188 | AT_DATA([flows.txt], [dnl | |
189 | actions=load:0x2->NXM_NX_PKT_MARK[[]],output:1 | |
190 | ]) | |
191 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
192 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
193 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=4,ttl=128,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) | |
194 | AT_CHECK([tail -1 stdout], [0], | |
195 | [Datapath actions: set(tunnel(tun_id=0x5,src=2.2.2.2,dst=1.1.1.1,ttl=64,flags(df|key))),set(skb_mark(0x2)),1 | |
196 | ]) | |
a13a0209 AT |
197 | |
198 | AT_CHECK([ovs-appctl netdev-dummy/receive p2 'aa55aa550001f8bc124434b6080045000054ba20000040018486010103580101037001004227e75400030af3195500000000f265010000000000101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f3031323334353637']) | |
199 | ||
200 | ovs-appctl time/warp 5000 | |
201 | ||
202 | AT_CHECK([ | |
203 | ovs-appctl coverage/read-counter datapath_drop_invalid_port | |
204 | ], [0], [dnl | |
205 | 1 | |
206 | ]) | |
207 | ||
f574ff4a AA |
208 | OVS_VSWITCHD_STOP |
209 | AT_CLEANUP | |
210 | ||
0f538378 EJ |
211 | AT_SETUP([tunnel - ToS and TTL inheritance]) |
212 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
213 | options:remote_ip=1.1.1.1 options:tos=inherit \ | |
214 | options:ttl=inherit ofport_request=1 \ | |
215 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
216 | ofport_request=2 ofport_request=2]) | |
217 | AT_DATA([flows.txt], [dnl | |
218 | actions=output:1 | |
219 | ]) | |
220 | ||
a36de779 | 221 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
0f538378 EJ |
222 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) |
223 | ||
e79a6c83 | 224 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
225 | br0 65534/100: (dummy-internal) |
226 | p1 1/1: (gre: remote_ip=1.1.1.1, tos=inherit, ttl=inherit) | |
227 | p2 2/2: (dummy) | |
0f538378 EJ |
228 | ]) |
229 | ||
230 | dnl Basic | |
50aa28fd | 231 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=4,ttl=128,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 232 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 233 | [Datapath actions: set(tunnel(dst=1.1.1.1,tos=0x4,ttl=128,flags(df))),1 |
0f538378 EJ |
234 | ]) |
235 | ||
236 | dnl ECN | |
50aa28fd | 237 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=5,ttl=128,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 238 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 239 | [Datapath actions: set(tunnel(dst=1.1.1.1,tos=0x5,ttl=128,flags(df))),1 |
0f538378 EJ |
240 | ]) |
241 | ||
242 | dnl non-IP | |
50aa28fd | 243 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0806),arp(sip=1.2.3.4,tip=5.6.7.8,op=1,sha=00:0f:10:11:12:13,tha=00:14:15:16:17:18)'], [0], [stdout]) |
0f538378 | 244 | AT_CHECK([tail -1 stdout], [0], |
65da723b | 245 | [Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,flags(df))),1 |
0f538378 EJ |
246 | ]) |
247 | OVS_VSWITCHD_STOP | |
248 | AT_CLEANUP | |
249 | ||
250 | AT_SETUP([tunnel - set_tunnel]) | |
251 | OVS_VSWITCHD_START([dnl | |
252 | add-port br0 p1 -- set Interface p1 type=gre options:key=flow \ | |
253 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
254 | -- add-port br0 p2 -- set Interface p2 type=gre options:key=flow \ | |
255 | options:remote_ip=2.2.2.2 ofport_request=2 \ | |
256 | -- add-port br0 p3 -- set Interface p3 type=gre options:key=flow \ | |
257 | options:remote_ip=3.3.3.3 ofport_request=3 \ | |
258 | -- add-port br0 p4 -- set Interface p4 type=gre options:key=flow \ | |
259 | options:remote_ip=4.4.4.4 ofport_request=4]) | |
260 | AT_DATA([flows.txt], [dnl | |
261 | actions=set_tunnel:1,output:1,set_tunnel:2,output:2,set_tunnel:3,output:3,set_tunnel:5,output:4 | |
262 | ]) | |
263 | ||
a36de779 | 264 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
0f538378 EJ |
265 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) |
266 | ||
e79a6c83 | 267 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
268 | br0 65534/100: (dummy-internal) |
269 | p1 1/1: (gre: key=flow, remote_ip=1.1.1.1) | |
270 | p2 2/1: (gre: key=flow, remote_ip=2.2.2.2) | |
271 | p3 3/1: (gre: key=flow, remote_ip=3.3.3.3) | |
272 | p4 4/1: (gre: key=flow, remote_ip=4.4.4.4) | |
0f538378 EJ |
273 | ]) |
274 | ||
50aa28fd | 275 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(100),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) |
0f538378 | 276 | AT_CHECK([tail -1 stdout], [0], [Datapath actions: dnl |
8e4c1621 JG |
277 | set(tunnel(tun_id=0x1,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl |
278 | set(tunnel(tun_id=0x2,dst=2.2.2.2,ttl=64,flags(df|key))),1,dnl | |
279 | set(tunnel(tun_id=0x3,dst=3.3.3.3,ttl=64,flags(df|key))),1,dnl | |
280 | set(tunnel(tun_id=0x5,dst=4.4.4.4,ttl=64,flags(df|key))),1 | |
0f538378 EJ |
281 | ]) |
282 | OVS_VSWITCHD_STOP | |
283 | AT_CLEANUP | |
284 | ||
285 | AT_SETUP([tunnel - key]) | |
286 | OVS_VSWITCHD_START([dnl | |
287 | add-port br0 p1 -- set Interface p1 type=gre options:key=1 \ | |
288 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
289 | -- add-port br0 p2 -- set Interface p2 type=gre options:in_key=2 \ | |
290 | options:out_key=3 options:remote_ip=1.1.1.1 ofport_request=2 \ | |
291 | -- add-port br0 p3 -- set Interface p3 type=gre options:out_key=5 \ | |
292 | options:remote_ip=1.1.1.1 ofport_request=3]) | |
293 | AT_DATA([flows.txt], [dnl | |
294 | actions=IN_PORT,output:1,output:2,output:3 | |
295 | ]) | |
296 | ||
a36de779 | 297 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
0f538378 EJ |
298 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) |
299 | ||
e79a6c83 | 300 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
301 | br0 65534/100: (dummy-internal) |
302 | p1 1/1: (gre: key=1, remote_ip=1.1.1.1) | |
303 | p2 2/1: (gre: in_key=2, out_key=3, remote_ip=1.1.1.1) | |
304 | p3 3/1: (gre: out_key=5, remote_ip=1.1.1.1) | |
0f538378 EJ |
305 | ]) |
306 | ||
65da723b | 307 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x1,src=1.1.1.1,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 308 | AT_CHECK([tail -1 stdout], [0], [Datapath actions: dnl |
8e4c1621 JG |
309 | set(tunnel(tun_id=0x1,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl |
310 | set(tunnel(tun_id=0x3,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl | |
311 | set(tunnel(tun_id=0x5,dst=1.1.1.1,ttl=64,flags(df|key))),1 | |
0f538378 EJ |
312 | ]) |
313 | ||
65da723b | 314 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x2,src=1.1.1.1,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 315 | AT_CHECK([tail -1 stdout], [0], [Datapath actions: dnl |
8e4c1621 JG |
316 | set(tunnel(tun_id=0x3,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl |
317 | set(tunnel(tun_id=0x1,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl | |
318 | set(tunnel(tun_id=0x5,dst=1.1.1.1,ttl=64,flags(df|key))),1 | |
0f538378 EJ |
319 | ]) |
320 | ||
65da723b | 321 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(src=1.1.1.1,dst=2.2.2.2,ttl=64,flags()),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 322 | AT_CHECK([tail -1 stdout], [0], [Datapath actions: dnl |
8e4c1621 JG |
323 | set(tunnel(tun_id=0x5,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl |
324 | set(tunnel(tun_id=0x1,dst=1.1.1.1,ttl=64,flags(df|key))),1,dnl | |
325 | set(tunnel(tun_id=0x3,dst=1.1.1.1,ttl=64,flags(df|key))),1 | |
0f538378 EJ |
326 | ]) |
327 | ||
65da723b | 328 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0xf,src=1.1.1.1,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [2], [ignore], [dnl |
d40533fc | 329 | no OpenFlow tunnel port for this packet |
0f538378 EJ |
330 | ovs-appctl: ovs-vswitchd: server returned an error |
331 | ]) | |
6e1fb7e1 | 332 | OVS_VSWITCHD_STOP(["/receive tunnel port not found/d"]) |
0f538378 EJ |
333 | AT_CLEANUP |
334 | ||
335 | AT_SETUP([tunnel - key match]) | |
336 | OVS_VSWITCHD_START([dnl | |
337 | add-port br0 p1 -- set Interface p1 type=gre options:key=flow \ | |
338 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
339 | -- add-port br0 p2 -- set Interface p2 type=gre options:key=3 \ | |
340 | options:remote_ip=3.3.3.3 ofport_request=2 \ | |
341 | -- add-port br0 p3 -- set Interface p3 type=dummy ofport_request=3 \ | |
342 | -- add-port br0 p4 -- set Interface p4 type=dummy ofport_request=4 \ | |
343 | -- add-port br0 p5 -- set Interface p5 type=dummy ofport_request=5]) | |
344 | AT_DATA([flows.txt], [dnl | |
345 | tun_id=2,actions=output:3 | |
346 | tun_id=3,actions=output:4,set_tunnel:2,resubmit:99,set_tunnel:4,output:2,resubmit:99 | |
347 | tun_id=4,actions=output:5 | |
348 | ]) | |
349 | ||
a36de779 | 350 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
0f538378 EJ |
351 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) |
352 | ||
e79a6c83 | 353 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
354 | br0 65534/100: (dummy-internal) |
355 | p1 1/1: (gre: key=flow, remote_ip=1.1.1.1) | |
356 | p2 2/1: (gre: key=3, remote_ip=3.3.3.3) | |
357 | p3 3/3: (dummy) | |
358 | p4 4/4: (dummy) | |
359 | p5 5/5: (dummy) | |
0f538378 EJ |
360 | ]) |
361 | ||
65da723b | 362 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x2,src=1.1.1.1,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 EJ |
363 | AT_CHECK([tail -1 stdout], [0], [dnl |
364 | Datapath actions: 3 | |
365 | ]) | |
366 | ||
65da723b | 367 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x3,src=1.1.1.1,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 368 | AT_CHECK([tail -1 stdout], [0], [dnl |
8e4c1621 | 369 | Datapath actions: 4,3,set(tunnel(tun_id=0x3,dst=3.3.3.3,ttl=64,flags(df|key))),1,5 |
0f538378 EJ |
370 | ]) |
371 | ||
65da723b | 372 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x3,src=3.3.3.3,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 EJ |
373 | AT_CHECK([tail -1 stdout], [0], [dnl |
374 | Datapath actions: 4,3,5 | |
375 | ]) | |
376 | ||
65da723b | 377 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x0,src=1.1.1.1,dst=2.2.2.2,ttl=64,flags(key)),in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9)'], [0], [stdout]) |
0f538378 | 378 | AT_CHECK([tail -1 stdout], [0], [dnl |
6b83a3c5 | 379 | Datapath actions: drop |
0f538378 EJ |
380 | ]) |
381 | ||
382 | OVS_VSWITCHD_STOP | |
383 | AT_CLEANUP | |
d302e2e7 | 384 | |
c1fc1411 JG |
385 | AT_SETUP([tunnel - Geneve]) |
386 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=geneve \ | |
387 | options:remote_ip=1.1.1.1 ofport_request=1 options:dst_port=5000]) | |
388 | ||
389 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl | |
7be29a47 BP |
390 | br0 65534/100: (dummy-internal) |
391 | p1 1/5000: (geneve: dst_port=5000, remote_ip=1.1.1.1) | |
c1fc1411 JG |
392 | ]) |
393 | ||
394 | OVS_VSWITCHD_STOP | |
395 | AT_CLEANUP | |
396 | ||
d302e2e7 KM |
397 | AT_SETUP([tunnel - VXLAN]) |
398 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=vxlan \ | |
399 | options:remote_ip=1.1.1.1 ofport_request=1]) | |
400 | ||
e79a6c83 | 401 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
402 | br0 65534/100: (dummy-internal) |
403 | p1 1/4789: (vxlan: remote_ip=1.1.1.1) | |
d302e2e7 KM |
404 | ]) |
405 | ||
406 | OVS_VSWITCHD_STOP | |
407 | AT_CLEANUP | |
408 | ||
ea41c034 FL |
409 | AT_SETUP([tunnel - table version]) |
410 | dnl check if changes in the egress bridge flow table affects | |
411 | dnl discovering the link layer address of tunnel endpoints. | |
412 | OVS_VSWITCHD_START([add-port br0 p0 -- set Interface p0 type=dummy ofport_request=1 other-config:hwaddr=aa:55:aa:55:00:00]) | |
413 | AT_CHECK([ovs-vsctl add-br int-br -- set bridge int-br datapath_type=dummy], [0]) | |
414 | AT_CHECK([ovs-vsctl add-port int-br v1 -- set Interface v1 type=vxlan \ | |
415 | options:remote_ip=172.31.1.2 options:key=123 \ | |
416 | ofport_request=2 \ | |
417 | -- add-port int-br v2 -- set Interface v2 type=internal \ | |
418 | ofport_request=3 \ | |
419 | ], [0]) | |
420 | ||
421 | AT_CHECK([ovs-appctl dpif/show], [0], [dnl | |
422 | dummy@ovs-dummy: hit:0 missed:0 | |
423 | br0: | |
424 | br0 65534/100: (dummy-internal) | |
425 | p0 1/1: (dummy) | |
426 | int-br: | |
427 | int-br 65534/2: (dummy-internal) | |
428 | v1 2/4789: (vxlan: key=123, remote_ip=172.31.1.2) | |
429 | v2 3/3: (dummy-internal) | |
430 | ]) | |
431 | ||
432 | dnl First setup dummy interface IP address, then add the route | |
433 | dnl so that tnl-port table can get valid IP address for the device. | |
434 | AT_CHECK([ovs-appctl netdev-dummy/ip4addr br0 172.31.1.1/24], [0], [OK | |
435 | ]) | |
436 | AT_CHECK([ovs-appctl ovs/route/add 172.31.1.0/24 br0], [0], [OK | |
437 | ]) | |
438 | ||
439 | dnl change the flow table to bump the internal table version | |
440 | AT_CHECK([ovs-ofctl add-flow int-br action=normal]) | |
441 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
442 | AT_CHECK([ovs-ofctl del-flows br0]) | |
443 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
444 | AT_CHECK([ovs-ofctl del-flows br0]) | |
445 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
446 | AT_CHECK([ovs-ofctl del-flows br0]) | |
447 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
448 | AT_CHECK([ovs-ofctl del-flows br0]) | |
449 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
450 | AT_CHECK([ovs-ofctl del-flows br0]) | |
451 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
452 | AT_CHECK([ovs-ofctl del-flows br0]) | |
453 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
454 | AT_CHECK([ovs-ofctl del-flows br0]) | |
455 | AT_CHECK([ovs-ofctl add-flow br0 action=normal]) | |
456 | ||
457 | dnl Check Neighbour discovery. | |
458 | AT_CHECK([ovs-vsctl -- set Interface p0 options:pcap=p0.pcap]) | |
459 | ||
460 | AT_CHECK([ovs-appctl netdev-dummy/receive int-br 'in_port(2),eth(src=aa:55:aa:55:00:00,dst=f8:bc:12:ff:ff:ff),eth_type(0x0800),ipv4(src=1.1.3.92,dst=1.1.3.88,proto=1,tos=0,ttl=64,frag=no),icmp(type=0,code=0)']) | |
461 | AT_CHECK([ovs-pcap p0.pcap > p0.pcap.txt 2>&1]) | |
462 | ||
463 | dnl When the wrong version is used, the flow is not visible and the | |
464 | dnl packet is dropped. | |
465 | AT_CHECK([cat p0.pcap.txt | grep ffffffffffffaa55aa55000008060001080006040001aa55aa550000ac1f0101000000000000ac1f0102 | uniq], [0], [dnl | |
466 | ffffffffffffaa55aa55000008060001080006040001aa55aa550000ac1f0101000000000000ac1f0102 | |
467 | ]) | |
468 | OVS_VSWITCHD_STOP | |
469 | AT_CLEANUP | |
470 | ||
d302e2e7 KM |
471 | AT_SETUP([tunnel - LISP]) |
472 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=lisp \ | |
473 | options:remote_ip=1.1.1.1 ofport_request=1]) | |
474 | ||
e79a6c83 | 475 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
476 | br0 65534/100: (dummy-internal) |
477 | p1 1/4341: (lisp: remote_ip=1.1.1.1) | |
d302e2e7 KM |
478 | ]) |
479 | ||
480 | OVS_VSWITCHD_STOP | |
481 | AT_CLEANUP | |
482 | ||
7dc18ae9 WT |
483 | AT_SETUP([tunnel - ERSPAN]) |
484 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=erspan \ | |
068794b4 GR |
485 | options:remote_ip=1.1.1.1 options:key=1 options:erspan_ver=1 \ |
486 | options:erspan_idx=0x0 ofport_request=1 \ | |
487 | -- add-port br0 p2 -- set Interface p2 type=erspan \ | |
488 | options:remote_ip=1.1.1.1 ofport_request=2 \ | |
489 | options:key=flow options:erspan_ver=1 options:erspan_idx=flow \ | |
490 | -- add-port br0 p3 -- set Interface p3 type=erspan \ | |
491 | options:remote_ip=1.1.1.1 ofport_request=3 \ | |
492 | options:key=10 options:erspan_ver=2 options:erspan_dir=flow \ | |
493 | options:erspan_hwid=flow \ | |
494 | -- add-port br0 p4 -- set Interface p4 type=erspan \ | |
495 | options:remote_ip=1.2.3.4 ofport_request=4 \ | |
496 | options:key=flow options:erspan_ver=flow\ | |
497 | ]) | |
7dc18ae9 WT |
498 | |
499 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl | |
7be29a47 BP |
500 | br0 65534/100: (dummy-internal) |
501 | p1 1/1: (erspan: erspan_idx=0x0, erspan_ver=1, key=1, remote_ip=1.1.1.1) | |
502 | p2 2/1: (erspan: erspan_idx=flow, erspan_ver=1, key=flow, remote_ip=1.1.1.1) | |
503 | p3 3/1: (erspan: erspan_dir=flow, erspan_hwid=flow, erspan_ver=2, key=10, remote_ip=1.1.1.1) | |
504 | p4 4/1: (erspan: erspan_dir=flow, erspan_hwid=flow, erspan_idx=flow, erspan_ver=flow, key=flow, remote_ip=1.2.3.4) | |
068794b4 GR |
505 | ]) |
506 | ||
507 | dnl Check ERSPAN v1 flow-based tunnel push | |
508 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=1, actions=set_tunnel:11,set_field:0x1->tun_erspan_idx,2"]) | |
509 | ||
510 | dnl Check ERSPAN v2 flow-based tunnel push | |
511 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=2, actions=set_field:1->tun_erspan_dir,set_field:0x0->tun_erspan_hwid,3"]) | |
512 | ||
513 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=3, actions=set_field:2->tun_erspan_ver,set_field:1->tun_erspan_dir,set_field:0x0->tun_erspan_hwid,4"]) | |
514 | ||
515 | AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip], | |
516 | [0], [dnl | |
517 | NXST_FLOW reply: | |
518 | in_port=1 actions=set_tunnel:0xb,set_field:0x1->tun_erspan_idx,output:2 | |
519 | in_port=2 actions=set_field:1->tun_erspan_dir,set_field:0->tun_erspan_hwid,output:3 | |
520 | in_port=3 actions=set_field:2->tun_erspan_ver,set_field:1->tun_erspan_dir,set_field:0->tun_erspan_hwid,output:4 | |
7dc18ae9 WT |
521 | ]) |
522 | ||
523 | OVS_VSWITCHD_STOP | |
524 | AT_CLEANUP | |
525 | ||
d302e2e7 KM |
526 | AT_SETUP([tunnel - different VXLAN UDP port]) |
527 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=vxlan \ | |
528 | options:remote_ip=1.1.1.1 ofport_request=1 options:dst_port=4341]) | |
529 | ||
e79a6c83 | 530 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
531 | br0 65534/100: (dummy-internal) |
532 | p1 1/4341: (vxlan: dst_port=4341, remote_ip=1.1.1.1) | |
d302e2e7 KM |
533 | ]) |
534 | ||
535 | dnl change UDP port | |
536 | ||
537 | AT_CHECK([ovs-vsctl -- set Interface p1 options:dst_port=5000]) | |
538 | ||
e79a6c83 | 539 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
540 | br0 65534/100: (dummy-internal) |
541 | p1 1/5000: (vxlan: dst_port=5000, remote_ip=1.1.1.1) | |
d302e2e7 KM |
542 | ]) |
543 | ||
544 | dnl change UDP port to default | |
545 | ||
4f2abb7b | 546 | AT_CHECK([ovs-vsctl -- set Interface p1 options:dst_port=4789]) |
d302e2e7 | 547 | |
e79a6c83 | 548 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl |
7be29a47 BP |
549 | br0 65534/100: (dummy-internal) |
550 | p1 1/4789: (vxlan: remote_ip=1.1.1.1) | |
d302e2e7 | 551 | ]) |
0ad90c84 JR |
552 | OVS_VSWITCHD_STOP |
553 | AT_CLEANUP | |
d302e2e7 | 554 | |
0ad90c84 JR |
555 | AT_SETUP([ofproto-dpif - set_field - tun_src/tun_dst/tun_id]) |
556 | OVS_VSWITCHD_START([dnl | |
557 | add-port br0 p1 -- set Interface p1 type=gre options:key=flow \ | |
558 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
559 | -- add-port br0 p2 -- set Interface p2 type=gre options:key=flow \ | |
560 | options:remote_ip=flow ofport_request=2 \ | |
561 | -- add-port br0 p3 -- set Interface p3 type=gre options:key=flow \ | |
562 | options:remote_ip=flow options:local_ip=flow ofport_request=3 \ | |
563 | -- add-port br0 p4 -- set Interface p4 type=gre options:key=3 \ | |
564 | options:remote_ip=flow ofport_request=4 \ | |
565 | -- add-port br0 p5 -- set Interface p5 type=gre options:key=flow \ | |
566 | options:remote_ip=5.5.5.5 ofport_request=5]) | |
a36de779 PS |
567 | |
568 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
ca5792f0 | 569 | add_of_ports br0 90 |
0ad90c84 JR |
570 | AT_DATA([flows.txt], [dnl |
571 | in_port=90 actions=resubmit:1,resubmit:2,resubmit:3,resubmit:4,resubmit:5 | |
572 | in_port=1 actions=set_field:42->tun_id,output:1 | |
573 | in_port=2 actions=set_field:3.3.3.3->tun_dst,output:2 | |
574 | in_port=3 actions=set_field:1.1.1.1->tun_src,set_field:4.4.4.4->tun_dst,output:3 | |
575 | in_port=4 actions=set_field:2.2.2.2->tun_dst,output:4 | |
576 | in_port=5 actions=set_field:5->tun_id | |
577 | ]) | |
578 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
50aa28fd | 579 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(90),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) |
0ad90c84 | 580 | AT_CHECK([tail -1 stdout], [0], |
8e4c1621 | 581 | [Datapath actions: set(tunnel(tun_id=0x2a,dst=1.1.1.1,ttl=64,flags(df|key))),1,set(tunnel(tun_id=0x2a,dst=3.3.3.3,ttl=64,flags(df|key))),1,set(tunnel(tun_id=0x2a,src=1.1.1.1,dst=4.4.4.4,ttl=64,flags(df|key))),1,set(tunnel(tun_id=0x3,dst=2.2.2.2,ttl=64,flags(df|key))),1 |
0ad90c84 | 582 | ]) |
d302e2e7 KM |
583 | OVS_VSWITCHD_STOP |
584 | AT_CLEANUP | |
9558d2a5 | 585 | |
98514eea WT |
586 | AT_SETUP([tunnel - ERSPAN v1/v2 metadata]) |
587 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=dummy \ | |
588 | ofport_request=1 \ | |
589 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
fe8108c7 BP |
590 | ofport_request=2]) |
591 | ||
592 | # Add these ports separately to ensure that they get the datapath port | |
593 | # number expected below. | |
594 | ovs-vsctl -- add-port br0 p3 \ | |
595 | -- set Interface p3 type=erspan \ | |
596 | ofport_request=3 \ | |
597 | options:remote_ip=1.1.1.1 \ | |
598 | options:key=1 options:erspan_ver=1 \ | |
599 | options:erspan_idx=7 \ | |
600 | -- add-port br0 p4 \ | |
601 | -- set Interface p4 type=erspan \ | |
602 | ofport_request=4 \ | |
603 | options:remote_ip=1.1.1.2 \ | |
604 | options:key=2 options:erspan_ver=2 \ | |
605 | options:erspan_dir=1 \ | |
606 | options:erspan_hwid=7 | |
98514eea WT |
607 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP |
608 | ||
609 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl | |
7be29a47 | 610 | br0 65534/100: (dummy-internal) |
fe8108c7 | 611 | p1 1/1: (dummy) |
7be29a47 | 612 | p2 2/2: (dummy) |
fe8108c7 BP |
613 | p3 3/3: (erspan: erspan_idx=0x7, erspan_ver=1, key=1, remote_ip=1.1.1.1) |
614 | p4 4/3: (erspan: erspan_dir=1, erspan_hwid=0x7, erspan_ver=2, key=2, remote_ip=1.1.1.2) | |
98514eea WT |
615 | ]) |
616 | ||
617 | AT_DATA([flows.txt], [dnl | |
618 | in_port=1,actions=3 | |
619 | in_port=2,actions=4 | |
620 | in_port=3,tun_erspan_ver=1,tun_erspan_idx=0x7,actions=1 | |
621 | in_port=4,tun_erspan_ver=2,tun_erspan_dir=1,tun_erspan_hwid=0xf/0x1,actions=2 | |
622 | ]) | |
623 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
624 | ||
625 | dnl test encap: in_port=1,actions=3 (erspan v1 port) | |
fe8108c7 | 626 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) |
98514eea | 627 | AT_CHECK([tail -1 stdout], [0], |
fe8108c7 | 628 | [Datapath actions: set(tunnel(tun_id=0x1,dst=1.1.1.1,ttl=64,erspan(ver=1,idx=0x7),flags(df|key))),3 |
98514eea WT |
629 | ]) |
630 | ||
631 | dnl test encap: in_port=2,actions=4 (erspan v2 port) | |
632 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) | |
633 | AT_CHECK([tail -1 stdout], [0], | |
fe8108c7 | 634 | [Datapath actions: set(tunnel(tun_id=0x2,dst=1.1.1.2,ttl=64,erspan(ver=2,dir=1,hwid=0x7),flags(df|key))),3 |
98514eea WT |
635 | ]) |
636 | ||
637 | dnl receive packet from ERSPAN port with v1 metadata | |
fe8108c7 | 638 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x1,src=1.1.1.1,dst=2.2.2.2,ttl=64,erspan(ver=1,idx=0x7),flags(df|key)),in_port(3),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
98514eea | 639 | AT_CHECK([tail -2 stdout], [0], |
068794b4 | 640 | [Megaflow: recirc_id=0,eth,ip,tun_id=0x1,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=0,tun_erspan_ver=1,tun_erspan_idx=0x7,tun_flags=+df-csum+key,in_port=3,nw_frag=no |
fe8108c7 | 641 | Datapath actions: 1 |
98514eea WT |
642 | ]) |
643 | ||
644 | dnl receive packet from ERSPAN port with wrong v1 metadata | |
fe8108c7 | 645 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x1,src=1.1.1.1,dst=2.2.2.2,ttl=64,erspan(ver=1,idx=0xabcd),flags(df|key)),in_port(3),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
98514eea | 646 | AT_CHECK([tail -2 stdout], [0], |
068794b4 | 647 | [Megaflow: recirc_id=0,eth,ip,tun_id=0x1,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=0,tun_erspan_ver=1,tun_erspan_idx=0xabcd,tun_flags=+df-csum+key,in_port=3,nw_frag=no |
98514eea WT |
648 | Datapath actions: drop |
649 | ]) | |
650 | ||
651 | dnl receive packet from ERSPAN port with v2 metadata | |
fe8108c7 | 652 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x2,src=1.1.1.2,dst=2.2.2.2,ttl=64,erspan(ver=2,dir=1,hwid=0x7),flags(df|key)),in_port(3),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
98514eea | 653 | AT_CHECK([tail -2 stdout], [0], |
068794b4 | 654 | [Megaflow: recirc_id=0,eth,ip,tun_id=0x2,tun_src=1.1.1.2,tun_dst=2.2.2.2,tun_tos=0,tun_erspan_ver=2,tun_erspan_dir=1,tun_erspan_hwid=0x1,tun_flags=+df-csum+key,in_port=4,nw_frag=no |
98514eea WT |
655 | Datapath actions: 2 |
656 | ]) | |
657 | ||
658 | dnl receive packet from ERSPAN port with wrong v2 metadata | |
fe8108c7 | 659 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x2,src=1.1.1.2,dst=2.2.2.2,ttl=64,erspan(ver=2,dir=0,hwid=0x17),flags(df|key)),in_port(3),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
98514eea | 660 | AT_CHECK([tail -2 stdout], [0], |
068794b4 | 661 | [Megaflow: recirc_id=0,eth,ip,tun_id=0x2,tun_src=1.1.1.2,tun_dst=2.2.2.2,tun_tos=0,tun_erspan_ver=2,tun_erspan_dir=0,tun_erspan_hwid=0x1,tun_flags=+df-csum+key,in_port=4,nw_frag=no |
98514eea WT |
662 | Datapath actions: drop |
663 | ]) | |
664 | ||
665 | dnl test wildcard mask: recevie all v2 regardless of its metadata | |
666 | AT_CHECK([ovs-ofctl del-flows br0 in_port=4,tun_erspan_ver=2,tun_erspan_dir=1,tun_erspan_hwid=0xf/0x1]) | |
667 | AT_CHECK([ovs-ofctl add-flow br0 in_port=4,tun_erspan_ver=2,tun_erspan_dir=0/0,tun_erspan_hwid=0x0/0x0,actions=2]) | |
668 | ||
e4e2009e | 669 | AT_CHECK([ovs-ofctl --sort=in_port dump-flows br0 | ofctl_strip], |
98514eea | 670 | [0], [dnl |
98514eea WT |
671 | in_port=1 actions=output:3 |
672 | in_port=2 actions=output:4 | |
068794b4 GR |
673 | tun_erspan_ver=1,tun_erspan_idx=0x7,in_port=3 actions=output:1 |
674 | tun_erspan_ver=2,in_port=4 actions=output:2 | |
98514eea WT |
675 | ]) |
676 | ||
677 | dnl this time it won't drop | |
fe8108c7 | 678 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x2,src=1.1.1.2,dst=2.2.2.2,ttl=64,erspan(ver=2,dir=0,hwid=0x17),flags(df|key)),in_port(3),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
98514eea | 679 | AT_CHECK([tail -2 stdout], [0], |
068794b4 | 680 | [Megaflow: recirc_id=0,eth,ip,tun_id=0x2,tun_src=1.1.1.2,tun_dst=2.2.2.2,tun_tos=0,tun_erspan_ver=2,tun_flags=+df-csum+key,in_port=4,nw_frag=no |
98514eea WT |
681 | Datapath actions: 2 |
682 | ]) | |
683 | ||
068794b4 GR |
684 | dnl flow-based erspan_idx options |
685 | AT_CHECK([ovs-vsctl add-port br0 p5 -- set Interface p5 type=erspan \ | |
686 | options:remote_ip=1.1.1.2 ofport_request=5 \ | |
687 | options:key=flow options:erspan_ver=1 options:erspan_idx=flow]) | |
688 | ||
689 | AT_CHECK([ovs-ofctl del-flows br0]) | |
690 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=1, actions=set_tunnel:11,set_field:0x7->tun_erspan_idx,5"]) | |
691 | ||
692 | AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip], | |
693 | [0], [dnl | |
694 | NXST_FLOW reply: | |
695 | in_port=1 actions=set_tunnel:0xb,set_field:0x7->tun_erspan_idx,output:5 | |
696 | ]) | |
697 | ||
fe8108c7 | 698 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) |
068794b4 | 699 | AT_CHECK([tail -1 stdout], [0], |
fe8108c7 | 700 | [Datapath actions: set(tunnel(tun_id=0xb,dst=1.1.1.2,ttl=64,erspan(ver=1,idx=0x7),flags(df|key))),3 |
068794b4 GR |
701 | ]) |
702 | ||
98514eea WT |
703 | OVS_VSWITCHD_STOP |
704 | AT_CLEANUP | |
705 | ||
9558d2a5 JG |
706 | AT_SETUP([tunnel - Geneve metadata]) |
707 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=geneve \ | |
708 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
709 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
710 | ofport_request=2 ofport_request=2]) | |
711 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
712 | ||
4e548ad9 | 713 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=0,len=4}->tun_metadata0,{class=0xffff,type=1,len=8}->tun_metadata1"]) |
9558d2a5 JG |
714 | |
715 | AT_DATA([flows.txt], [dnl | |
716 | in_port=2,actions=set_field:0xa->tun_metadata0,set_field:0x1234567890abcdef->tun_metadata1,1 | |
717 | tun_metadata0=0xb/0xf,actions=2 | |
718 | ]) | |
719 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
720 | ||
721 | dnl Option generation | |
722 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) | |
723 | AT_CHECK([tail -1 stdout], [0], | |
998300ec | 724 | [Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,tp_dst=6081,geneve({class=0xffff,type=0,len=4,0xa}{class=0xffff,type=0x1,len=8,0x1234567890abcdef}),flags(df))),6081 |
9558d2a5 JG |
725 | ]) |
726 | ||
727 | dnl Option match | |
beb75a40 | 728 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=0,len=4,0xb}),flags(df|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
9558d2a5 | 729 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 730 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=+df-csum+key,tun_metadata0=0xb/0xf,in_port=1,nw_frag=no |
9558d2a5 JG |
731 | Datapath actions: 2 |
732 | ]) | |
733 | ||
734 | dnl Skip unknown option | |
beb75a40 | 735 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=0,len=4,0xb}{class=0xffff,type=2,len=4,0xc}),flags(df|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
9558d2a5 | 736 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 737 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=+df-csum+key,tun_metadata0=0xb/0xf,in_port=1,nw_frag=no |
9558d2a5 JG |
738 | Datapath actions: 2 |
739 | ]) | |
740 | ||
741 | dnl Check mapping table constraints | |
1cb20095 | 742 | AT_CHECK([ovs-ofctl del-flows br0]) |
4e548ad9 ML |
743 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=2,len=124}->tun_metadata2,{class=0xffff,type=3,len=124}->tun_metadata3"], [1], [ignore], |
744 | [OFPT_ERROR (xid=0x4): NXTTMFC_TABLE_FULL | |
745 | NXT_TLV_TABLE_MOD (xid=0x4): | |
9558d2a5 | 746 | ADD mapping table: |
5a0e4aec BP |
747 | class type length match field |
748 | ------ ---- ------ -------------- | |
749 | 0xffff 0x2 124 tun_metadata2 | |
750 | 0xffff 0x3 124 tun_metadata3 | |
9558d2a5 JG |
751 | ]) |
752 | ||
4f7b100c JG |
753 | AT_CHECK([ovs-ofctl add-flow br0 "tun_metadata0,tun_metadata0,actions=drop"], [1], [ignore], |
754 | [ovs-ofctl: field tun_metadata0 set multiple times | |
755 | ]) | |
756 | ||
757 | AT_CHECK([ovs-ofctl add-flow br0 "tun_metadata0=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef,tun_metadata1=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef,tun_metadata2=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef,tun_metadata3=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef,tun_metadata4=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef,actions=drop"], [1], [ignore], | |
758 | [ovs-ofctl: field tun_metadata4 exceeds maximum size for tunnel metadata (used 320, max 256) | |
759 | ]) | |
760 | ||
9558d2a5 | 761 | dnl Allocation and match with fragmented address space |
4e548ad9 ML |
762 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=2,len=124}->tun_metadata2"]) |
763 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=3,len=4}->tun_metadata3"]) | |
764 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=4,len=112}->tun_metadata4"]) | |
765 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=3,len=4}->tun_metadata3"]) | |
766 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=3,len=8}->tun_metadata3"]) | |
9558d2a5 JG |
767 | |
768 | AT_CHECK([ovs-ofctl add-flow br0 tun_metadata3=0x1234567890abcdef,actions=2]) | |
beb75a40 | 769 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=3,len=8,0x1234567890abcdef}),flags(df|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
9558d2a5 | 770 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 771 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=+df-csum+key,tun_metadata3=0x1234567890abcdef,in_port=1,nw_frag=no |
9558d2a5 JG |
772 | Datapath actions: 2 |
773 | ]) | |
774 | ||
5c7c16d8 YHW |
775 | AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip], |
776 | [0], [dnl | |
777 | NXST_FLOW reply: | |
778 | tun_metadata3=0x1234567890abcdef actions=output:2 | |
779 | ]) | |
780 | ||
781 | dnl A TLV mapping should not be removed if any active flow uses the mapping. | |
782 | AT_CHECK([ovs-ofctl del-tlv-map br0], [1], [], [dnl | |
783 | OFPT_ERROR (xid=0x4): NXTTMFC_INVALID_TLV_DEL | |
784 | NXT_TLV_TABLE_MOD (xid=0x4): | |
785 | CLEAR | |
786 | ]) | |
787 | ||
788 | AT_CHECK([ovs-ofctl del-flows br0], [0]) | |
789 | AT_CHECK([ovs-ofctl del-tlv-map br0], [0]) | |
790 | ||
791 | dnl Flow modification | |
792 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=1,len=4}->tun_metadata0"]) | |
793 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=2,len=4}->tun_metadata1"]) | |
794 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=3,len=4}->tun_metadata2"]) | |
795 | ||
796 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=1 actions=multipath(eth_src,50,modulo_n,1,0,tun_metadata0[[0..31]])"]) | |
797 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=2 actions=push:tun_metadata1[[0..31]],clone(move:tun_metadata2[[0..31]]->reg0[[0..31]])"]) | |
798 | ||
799 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=1 actions=output:4"]) | |
800 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=3,len=4}->tun_metadata0"]) | |
801 | ||
802 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=2 actions=push:tun_metadata2[[0..31]]"]) | |
803 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=2,len=4}->tun_metadata1"]) | |
804 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=3,len=4}->tun_metadata2"], [1], [], [dnl | |
805 | OFPT_ERROR (xid=0x4): NXTTMFC_INVALID_TLV_DEL | |
806 | NXT_TLV_TABLE_MOD (xid=0x4): | |
807 | DEL mapping table: | |
5a0e4aec BP |
808 | class type length match field |
809 | ------ ---- ------ -------------- | |
810 | 0xffff 0x3 4 tun_metadata2 | |
5c7c16d8 YHW |
811 | ]) |
812 | ||
813 | AT_CHECK([ovs-ofctl del-flows br0], [0]) | |
814 | AT_CHECK([ovs-ofctl del-tlv-map br0], [0]) | |
815 | ||
816 | dnl Learn action | |
817 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=1,len=4}->tun_metadata1"]) | |
818 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=2,len=4}->tun_metadata2"]) | |
819 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=2, eth_src=00:00:00:00:00:01 actions=learn(tun_metadata1[[0..31]]=reg1, output:NXM_OF_IN_PORT[[]])"]) | |
820 | AT_CHECK([ovs-ofctl add-flow br0 "in_port=2, eth_src=00:00:00:00:00:02 actions=learn(reg1[[0..31]]=0xFF, load:reg1[[0..31]]->tun_metadata2[[0..31]])"]) | |
821 | flow1="in_port(2),eth(src=00:00:00:00:00:01,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0800)" | |
822 | flow2="in_port(2),eth(src=00:00:00:00:00:02,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0800)" | |
823 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy "$flow1" -generate], [0], [stdout]) | |
824 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy "$flow2" -generate], [0], [stdout]) | |
825 | ||
826 | dnl Delete flows with learn action | |
827 | AT_CHECK([ovs-ofctl del-flows br0 "in_port=2"]) | |
828 | ||
829 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=1,len=4}->tun_metadata1"], [1], [], [dnl | |
830 | OFPT_ERROR (xid=0x4): NXTTMFC_INVALID_TLV_DEL | |
831 | NXT_TLV_TABLE_MOD (xid=0x4): | |
832 | DEL mapping table: | |
5a0e4aec BP |
833 | class type length match field |
834 | ------ ---- ------ -------------- | |
835 | 0xffff 0x1 4 tun_metadata1 | |
5c7c16d8 YHW |
836 | ]) |
837 | AT_CHECK([ovs-ofctl del-flows br0 "tun_metadata1"]) | |
838 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=1,len=4}->tun_metadata1"]) | |
839 | ||
840 | AT_CHECK([ovs-ofctl del-tlv-map br0 "{class=0xffff,type=2,len=4}->tun_metadata2"], [1], [], [dnl | |
841 | OFPT_ERROR (xid=0x4): NXTTMFC_INVALID_TLV_DEL | |
842 | NXT_TLV_TABLE_MOD (xid=0x4): | |
843 | DEL mapping table: | |
5a0e4aec BP |
844 | class type length match field |
845 | ------ ---- ------ -------------- | |
846 | 0xffff 0x2 4 tun_metadata2 | |
5c7c16d8 YHW |
847 | ]) |
848 | AT_CHECK([ovs-ofctl del-flows br0 "reg1=0xFF"]) | |
849 | AT_CHECK([ovs-ofctl del-tlv-map br0], [0]) | |
9558d2a5 JG |
850 | |
851 | OVS_VSWITCHD_STOP | |
852 | AT_CLEANUP | |
1cb20095 JG |
853 | |
854 | AT_SETUP([tunnel - Geneve option present]) | |
855 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=geneve \ | |
856 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
857 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
858 | ofport_request=2 ofport_request=2]) | |
859 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
860 | ||
4e548ad9 | 861 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=0,len=4}->tun_metadata0,{class=0xffff,type=1,len=0}->tun_metadata1,{class=0xffff,type=2,len=4}->tun_metadata2"]) |
1cb20095 JG |
862 | |
863 | AT_DATA([flows.txt], [dnl | |
864 | priority=1,tun_metadata0,actions=2 | |
865 | priority=2,tun_metadata1=0,actions=IN_PORT | |
866 | priority=3,tun_metadata2=0,actions=drop | |
867 | ]) | |
868 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
869 | ||
870 | AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip | sort], | |
871 | [0], [dnl | |
872 | priority=1,tun_metadata0 actions=output:2 | |
873 | priority=2,tun_metadata1 actions=IN_PORT | |
874 | priority=3,tun_metadata2=0 actions=drop | |
875 | NXST_FLOW reply: | |
876 | ]) | |
877 | ||
beb75a40 | 878 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=0,len=4,0x12345678}),flags(df|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
1cb20095 | 879 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 880 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=+df-csum+key,tun_metadata0,tun_metadata1=NP,tun_metadata2=NP,in_port=1,nw_frag=no |
1cb20095 JG |
881 | Datapath actions: 2 |
882 | ]) | |
883 | ||
beb75a40 | 884 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=1,len=0}),flags(df|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) |
1cb20095 | 885 | AT_CHECK([tail -2 stdout], [0], |
e3981271 | 886 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=+df-csum+key,tun_metadata1,tun_metadata2=NP,in_port=1,nw_ecn=0,nw_frag=no |
81f9ef5a | 887 | Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,tp_dst=6081,geneve({class=0xffff,type=0x1,len=0}),flags(df))),6081 |
1cb20095 JG |
888 | ]) |
889 | ||
110f7c75 TLSC |
890 | OVS_VSWITCHD_STOP |
891 | AT_CLEANUP | |
892 | ||
893 | AT_SETUP([tunnel - concomitant IPv6 and IPv4 tunnels]) | |
894 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=vxlan \ | |
895 | options:remote_ip=1.1.1.1 ofport_request=1 \ | |
896 | -- add-port br0 p2 -- set Interface p2 type=vxlan \ | |
897 | options:remote_ip=2001:cafe::1 ofport_request=2]) | |
898 | AT_DATA([flows.txt], [dnl | |
899 | in_port=1,actions=2 | |
900 | in_port=2,actions=1 | |
901 | ]) | |
902 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
903 | ||
904 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
905 | ||
906 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0,src=1.1.1.1,dst=1.1.1.2,ttl=64),in_port(4789)'], [0], [stdout]) | |
907 | AT_CHECK([tail -1 stdout], [0], | |
81f9ef5a | 908 | [Datapath actions: set(tunnel(ipv6_dst=2001:cafe::1,ttl=64,tp_dst=4789,flags(df))),4789 |
110f7c75 TLSC |
909 | ]) |
910 | ||
911 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'tunnel(tun_id=0x0,ipv6_src=2001:cafe::1,ipv6_dst=2001:cafe::2,ttl=64),in_port(4789)'], [0], [stdout]) | |
912 | AT_CHECK([tail -1 stdout], [0], | |
81f9ef5a | 913 | [Datapath actions: set(tunnel(dst=1.1.1.1,ttl=64,tp_dst=4789,flags(df))),4789 |
110f7c75 TLSC |
914 | ]) |
915 | ||
189de33f EC |
916 | OVS_VSWITCHD_STOP |
917 | AT_CLEANUP | |
918 | ||
919 | AT_SETUP([tunnel - concomitant incompatible tunnels on the same port]) | |
920 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=vxlan \ | |
921 | options:remote_ip=flow ofport_request=1]) | |
922 | ||
923 | AT_CHECK([ovs-vsctl add-port br0 p2 -- set Interface p2 type=vxlan \ | |
924 | options:remote_ip=flow options:exts=gbp options:key=1 ofport_request=2], [0], | |
925 | [], [ignore]) | |
926 | ||
927 | AT_CHECK([grep 'p2: could not set configuration (File exists)' ovs-vswitchd.log | sed "s/^.*\(p2:.*\)$/\1/"], [0], | |
928 | [p2: could not set configuration (File exists) | |
929 | ]) | |
930 | ||
931 | OVS_VSWITCHD_STOP(["/p2: VXLAN-GBP, and non-VXLAN-GBP tunnels can't be configured on the same dst_port/d | |
932 | /p2: could not set configuration (File exists)/d"]) | |
933 | AT_CLEANUP | |
934 | ||
935 | AT_SETUP([tunnel - concomitant incompatible tunnels on different ports]) | |
936 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=vxlan \ | |
937 | options:remote_ip=flow ofport_request=1]) | |
938 | ||
939 | AT_CHECK([ovs-vsctl add-port br0 p2 -- set Interface p2 type=vxlan options:dst_port=9000 \ | |
940 | options:remote_ip=flow options:exts=gbp ofport_request=2]) | |
941 | ||
942 | AT_CHECK([grep p2 ovs-vswitchd.log | sed "s/^.*\(bridge br0:.*\)$/\1/"], [0], | |
943 | [bridge br0: added interface p2 on port 2 | |
944 | ]) | |
110f7c75 | 945 | |
81f9ef5a WT |
946 | OVS_VSWITCHD_STOP |
947 | AT_CLEANUP | |
948 | ||
949 | AT_SETUP([tunnel - Mix Geneve/GRE options]) | |
950 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=geneve \ | |
951 | options:remote_ip=1.1.1.1 options:csum=true ofport_request=1 \ | |
952 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
953 | ofport_request=2 ofport_request=2 \ | |
954 | -- add-port br0 p3 -- set Interface p3 type=gre \ | |
955 | options:remote_ip=2.2.2.2 options:csum=false options:key=123 ofport_request=3]) | |
956 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
957 | ||
958 | AT_DATA([flows.txt], [dnl | |
959 | priority=1,in_port=1,actions=3 | |
960 | ]) | |
961 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
962 | ||
963 | AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip | sort], | |
964 | [0], [dnl | |
965 | priority=1,in_port=1 actions=output:3 | |
966 | NXST_FLOW reply: | |
967 | ]) | |
968 | ||
969 | dnl the input packet from geneve tunnel has flags(-df+csum+key) flags, making | |
970 | dnl sure that the output gre tunnel has (+df-csum+key). | |
971 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=0,len=4,0x12345678}),flags(csum|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) | |
972 | AT_CHECK([tail -2 stdout], [0], | |
973 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=-df+csum+key,in_port=1,nw_ecn=0,nw_frag=no | |
974 | Datapath actions: set(tunnel(tun_id=0x7b,dst=2.2.2.2,ttl=64,flags(df|key))),1 | |
975 | ]) | |
976 | ||
c6d87201 WT |
977 | AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=0,len=4}->tun_metadata0"]) |
978 | AT_CHECK([ovs-ofctl del-flows br0]) | |
979 | ||
980 | AT_DATA([flows2.txt], [dnl | |
981 | priority=1,in_port=1,tun_metadata0=0x123, actions=3 | |
982 | ]) | |
983 | AT_CHECK([ovs-ofctl add-flows br0 flows2.txt]) | |
984 | ||
985 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x0,src=1.1.1.1,dst=1.1.1.2,ttl=64,geneve({class=0xffff,type=0,len=4,0x123}),flags(csum|key)),in_port(6081),skb_mark(0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(frag=no)'], [0], [stdout]) | |
986 | AT_CHECK([tail -2 stdout], [0], | |
987 | [Megaflow: recirc_id=0,eth,ip,tun_id=0,tun_src=1.1.1.1,tun_dst=1.1.1.2,tun_tos=0,tun_flags=-df+csum+key,tun_metadata0=0x123,in_port=1,nw_ecn=0,nw_frag=no | |
988 | Datapath actions: set(tunnel(tun_id=0x7b,dst=2.2.2.2,ttl=64,flags(df|key))),1 | |
989 | ]) | |
990 | ||
991 | dnl without the fix, the actions have geneve options: | |
992 | dnl set(tunnel(tun_id=0x7b,dst=2.2.2.2,ttl=64,geneve({class=0xffff,type=0,len=4,0x123}),flags(df|key))),1 | |
993 | dnl which is not correct | |
994 | ||
1cb20095 JG |
995 | OVS_VSWITCHD_STOP |
996 | AT_CLEANUP | |
8416e50f VD |
997 | |
998 | AT_SETUP([tunnel - neighbor entry add and deletion]) | |
999 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gre \ | |
1000 | options:remote_ip=1.1.1.1 options:local_ip=2.2.2.2 \ | |
1001 | options:key=5 ofport_request=1 \ | |
1002 | -- add-port br0 p2 -- set Interface p2 type=gre \ | |
1003 | options:local_ip=3.3.3.3 options:remote_ip=4.4.4.4 \ | |
1004 | ofport_request=2]) | |
1005 | AT_CHECK([ovs-vsctl add-br br1 -- set bridge br1 datapath_type=dummy], [0]) | |
1006 | ||
1007 | dnl Populate tunnel neighbor cache table | |
1008 | AT_CHECK([ | |
1009 | ovs-appctl tnl/arp/set p1 10.0.0.1 00:00:10:00:00:01 | |
1010 | ovs-appctl tnl/arp/set p1 10.0.0.2 00:00:10:00:00:02 | |
1011 | ovs-appctl tnl/arp/set p2 10.0.1.1 00:00:10:00:01:01 | |
1012 | ovs-appctl tnl/arp/set br0 10.0.2.1 00:00:10:00:02:01 | |
1013 | ovs-appctl tnl/arp/set br0 10.0.2.2 00:00:10:00:02:02 | |
1014 | ovs-appctl tnl/arp/set br1 20.0.0.1 00:00:20:00:00:01 | |
1015 | ], [0], [stdout]) | |
1016 | ||
1017 | AT_CHECK([ovs-appctl tnl/neigh/show | tail -n+3 | sort], [0], [dnl | |
1018 | 10.0.0.1 00:00:10:00:00:01 p1 | |
1019 | 10.0.0.2 00:00:10:00:00:02 p1 | |
1020 | 10.0.1.1 00:00:10:00:01:01 p2 | |
1021 | 10.0.2.1 00:00:10:00:02:01 br0 | |
1022 | 10.0.2.2 00:00:10:00:02:02 br0 | |
1023 | 20.0.0.1 00:00:20:00:00:01 br1 | |
1024 | ]) | |
1025 | ||
1026 | dnl neighbor table after deleting port p1 | |
1027 | AT_CHECK([ovs-vsctl del-port br0 p1],[0], [stdout]) | |
1028 | AT_CHECK([ovs-appctl tnl/neigh/show | tail -n+3 | grep -w p1 | sort], [0], [dnl | |
1029 | ]) | |
1030 | ||
1031 | dnl neighbor table after deleting bridge br0 | |
1032 | AT_CHECK([ovs-vsctl del-br br0],[0], [stdout]) | |
1033 | AT_CHECK([ovs-appctl tnl/neigh/show | tail -n+3 | sort], [0], [dnl | |
1034 | 20.0.0.1 00:00:20:00:00:01 br1 | |
1035 | ]) | |
1036 | ||
1037 | dnl neighbor table after deleting bridge br1 | |
1038 | AT_CHECK([ovs-vsctl del-br br1],[0], [stdout]) | |
1039 | AT_CHECK([ovs-appctl tnl/neigh/show | tail -n+3 | sort], [0], [dnl | |
1040 | ]) | |
1041 | ||
1042 | OVS_VSWITCHD_STOP | |
1043 | AT_CLEANUP | |
3c6d05a0 WT |
1044 | |
1045 | AT_SETUP([tunnel - GTP-U basic]) | |
1046 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=gtpu \ | |
1047 | options:remote_ip=1.1.1.1 \ | |
1048 | options:key=123 ofport_request=1]) | |
1049 | ||
1050 | AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl | |
1051 | br0 65534/100: (dummy-internal) | |
1052 | p1 1/2152: (gtpu: key=123, remote_ip=1.1.1.1) | |
1053 | ]) | |
1054 | ||
1055 | AT_CHECK([ovs-appctl tnl/ports/show |sort], [0], [dnl | |
1056 | Listening ports: | |
1057 | gtpu_sys_2152 (2152) ref_cnt=1 | |
1058 | ]) | |
1059 | ||
1060 | OVS_VSWITCHD_STOP | |
1061 | AT_CLEANUP | |
1062 | ||
1063 | AT_SETUP([tunnel - GTP-U push and pop]) | |
1064 | OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=dummy \ | |
1065 | ofport_request=1 \ | |
1066 | -- add-port br0 p2 -- set Interface p2 type=dummy \ | |
1067 | ofport_request=2]) | |
1068 | ||
1069 | # Add these ports separately to ensure that they get the datapath port | |
1070 | # number expected below. | |
1071 | ovs-vsctl -- add-port br0 p3 \ | |
1072 | -- set Interface p3 type=gtpu \ | |
1073 | ofport_request=3 \ | |
1074 | options:remote_ip=1.1.1.1 \ | |
1075 | options:key=3 \ | |
1076 | options:packet_type=legacy_l3 | |
1077 | ovs-vsctl -- add-port br0 p4 \ | |
1078 | -- set Interface p4 type=gtpu \ | |
1079 | ofport_request=4 \ | |
1080 | options:remote_ip=1.1.1.2 \ | |
1081 | options:key=4 \ | |
1082 | options:packet_type=legacy_l3 | |
1083 | OVS_VSWITCHD_DISABLE_TUNNEL_PUSH_POP | |
1084 | ||
1085 | dnl AT_CHECK([ovs-appctl dpif/show | tail -n +4], [0], [dnl | |
1086 | AT_CHECK([ovs-appctl dpif/show | tail -n +4], [0], [dnl | |
1087 | p1 1/1: (dummy) | |
1088 | p2 2/2: (dummy) | |
1089 | p3 3/2152: (gtpu: key=3, remote_ip=1.1.1.1) | |
1090 | p4 4/2152: (gtpu: key=4, remote_ip=1.1.1.2) | |
1091 | ]) | |
1092 | ||
1093 | AT_DATA([flows.txt], [dnl | |
1094 | in_port=1,actions=3 | |
1095 | in_port=2,actions=4 | |
1096 | in_port=3,tun_gtpu_flags=0x30,tun_gtpu_msgtype=255,actions=1 | |
1097 | ]) | |
1098 | AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) | |
1099 | ||
1100 | AT_CHECK([ovs-appctl tnl/ports/show |sort], [0], [dnl | |
1101 | Listening ports: | |
1102 | gtpu_sys_2152 (2152) ref_cnt=2 | |
1103 | ]) | |
1104 | ||
1105 | dnl Encap: in_port=1,actions=3 | |
1106 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout]) | |
1107 | AT_CHECK([tail -1 stdout], [0], | |
1108 | [Datapath actions: set(tunnel(tun_id=0x3,dst=1.1.1.1,ttl=64,tp_dst=2152,flags(df|key))),pop_eth,2152 | |
1109 | ]) | |
1110 | ||
1111 | dnl receive packet from GTP-U port, match it, and output to layer3 GRE | |
1112 | AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'recirc_id(0),tunnel(tun_id=0x3,src=1.1.1.1,dst=2.2.2.2,ttl=64,gtpu(flags=0x30,msgtype=255),flags(df|key)),in_port(2152),packet_type(ns=1,id=0),skb_mark(0),ipv4(frag=no)'], [0], [stdout]) | |
1113 | AT_CHECK([tail -2 stdout], [0], | |
1114 | [Megaflow: recirc_id=0,packet_type=(1,0),tun_id=0x3,tun_src=1.1.1.1,tun_dst=2.2.2.2,tun_tos=0,gtpu_flags=0x30,gtpu_msgtype=255,tun_flags=+df-csum+key,in_port=3,dl_type=0x0000 | |
1115 | Datapath actions: push_eth(src=00:00:00:00:00:00,dst=00:00:00:00:00:00),1 | |
1116 | ]) | |
1117 | ||
1118 | OVS_VSWITCHD_STOP | |
1119 | AT_CLEANUP |