4 AT_KEYWORDS([ofp-print])
5 AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
10 AT_KEYWORDS([ofp-print])
11 AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12 OpenFlow packet too short (only 2 bytes):
17 AT_SETUP([wrong OpenFlow version])
18 AT_KEYWORDS([ofp-print])
19 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
21 ***decode error: OFPBRC_BAD_TYPE***
22 00000000 00 bb 00 08 ee ff 00 11- |........ |
23 ], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187)
27 AT_SETUP([truncated message])
28 AT_KEYWORDS([ofp-print])
29 AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl
30 (***truncated to 8 bytes from 52445***)
31 00000000 01 10 cc dd ee ff 00 11- |........ |
35 AT_SETUP([message only uses part of buffer])
36 AT_KEYWORDS([ofp-print])
37 AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl
38 (***only uses 9 bytes out of 10***)
39 00000000 01 10 00 09 ee ff 00 11-22 33 |........"3 |
44 AT_SETUP([OFPT_HELLO - ordinary])
45 AT_KEYWORDS([ofp-print])
46 AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
52 AT_SETUP([OFPT_HELLO with extra data])
53 AT_KEYWORDS([ofp-print])
54 AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
58 unknown data in hello:
59 00000000 01 00 00 13 00 00 00 00-65 78 74 72 61 20 64 61 |........extra da|
60 00000010 74 61 0a |ta. |
64 AT_SETUP([OFPT_HELLO with version bitmap])
65 AT_KEYWORDS([ofp-print])
66 AT_CHECK([ovs-ofctl ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f0"], [0],
69 version bitmap: 0x04, 0x05, 0x06, 0x07
73 AT_SETUP([OFPT_HELLO with version bitmap and extra data])
74 AT_KEYWORDS([ofp-print])
75 AT_CHECK([ovs-ofctl ofp-print "\
76 01 00 00 1b 00 00 00 00 ff ff 00 06 01 02 00 00 \
77 00 01 00 08 00 00 00 f0 61 62 63"], [0],
80 version bitmap: 0x04, 0x05, 0x06, 0x07
81 unknown data in hello:
82 00000000 01 00 00 1b 00 00 00 00-ff ff 00 06 01 02 00 00 |................|
83 00000010 00 01 00 08 00 00 00 f0-61 62 63 |........abc |
87 AT_SETUP([OFPT_HELLO with higher than supported version])
88 AT_KEYWORDS([ofp-print])
89 AT_CHECK([ovs-ofctl ofp-print "0f 00 00 08 00 00 00 00"], [0],
91 OFPT_HELLO (OF 0x0f) (xid=0x0):
92 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
94 AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0],
96 OFPT_HELLO (OF 0x40) (xid=0x0):
97 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
99 AT_CHECK([ovs-ofctl ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c aa aa aa aa aa aa aa aa 00 00 00 00"], [0],
101 OFPT_HELLO (OF 0x3f) (xid=0x0):
102 version bitmap: 0x01, 0x03, 0x05, 0x07, 0x09, 0x0b, 0x0d, 0x0f, 0x11, 0x13, 0x15, 0x17, 0x19, 0x1b, 0x1d, 0x1f
106 AT_SETUP([OFPT_HELLO with contradictory version bitmaps])
107 AT_KEYWORDS([ofp-print])
108 dnl Bitmap claims support for no versions at all.
109 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 00"], [0],
110 [OFPT_HELLO (xid=0x0):
112 unknown data in hello:
113 00000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................|
115 ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
117 dnl Bitmap claims support for only versions above 0x1f.
118 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c 00 00 00 00 aa aa aa aa 00 00 00 00"], [0],
119 [OFPT_HELLO (OF 0x3f) (xid=0x0):
120 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
121 unknown data in hello:
122 00000000 3f 00 00 18 00 00 00 00-00 01 00 0c 00 00 00 00 |?...............|
123 00000010 aa aa aa aa 00 00 00 00- |........ |
125 ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
127 dnl Bitmap claims support for nonexistent version 0x00.
128 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f1"], [0], [dnl
129 OFPT_HELLO (xid=0x0):
130 version bitmap: 0x04, 0x05, 0x06, 0x07
132 ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
134 dnl Bitmap claims support for only nonexistent version 0x00.
135 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 01"], [0], [dnl
136 OFPT_HELLO (xid=0x0):
138 unknown data in hello:
139 00000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................|
141 ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
142 ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
146 dnl OFPT_ERROR tests are in ofp-errors.at.
148 AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
149 AT_KEYWORDS([ofp-print])
150 AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
151 OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
155 AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
156 AT_KEYWORDS([ofp-print])
157 AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
158 OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
159 00000000 25 53 54 1a 9d |%ST.. |
163 AT_SETUP([OFPT_ECHO_REPLY, empty payload])
164 AT_KEYWORDS([ofp-print])
165 AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
166 OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
170 AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
171 AT_KEYWORDS([ofp-print])
172 AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
173 OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
174 00000000 a3 30 ef af 9e |.0... |
178 AT_SETUP([OFPT_FEATURES_REQUEST])
179 AT_KEYWORDS([ofp-print])
180 AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
181 OFPT_FEATURES_REQUEST (xid=0x1):
185 AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
186 AT_KEYWORDS([ofp-print])
187 AT_CHECK([ovs-ofctl ofp-print "\
188 01 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
189 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
190 ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
191 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
192 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
193 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
194 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
195 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
196 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
197 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
198 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
199 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
201 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
203 OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
204 n_tables:2, n_buffers:256
205 capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
206 actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
207 1(eth1): addr:50:54:00:00:00:02
210 current: 100MB-FD AUTO_NEG
211 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
212 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
213 speed: 100 Mbps now, 100 Mbps max
214 2(eth2): addr:50:54:00:00:00:03
217 current: 100MB-FD AUTO_NEG
218 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
219 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
220 speed: 100 Mbps now, 100 Mbps max
221 3(eth0): addr:50:54:00:00:00:01
224 current: 100MB-FD AUTO_NEG
225 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
226 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
227 speed: 100 Mbps now, 100 Mbps max
228 LOCAL(br0): addr:50:54:00:00:00:01
231 speed: 0 Mbps now, 0 Mbps max
235 AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
236 AT_KEYWORDS([ofp-print])
237 AT_CHECK([ovs-ofctl ofp-print "\
238 01 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
239 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
240 ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
241 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
242 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
243 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
244 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
245 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
246 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
247 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
248 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
249 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
251 00 00 02 08 00 00 02 8f 00 00 02 8f \
253 ***decode error: OFPBRC_BAD_LEN***
254 00000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
255 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
256 00000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
257 00000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
258 00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
259 00000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
260 00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
261 00000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
262 00000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
263 00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
264 000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
265 000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
266 000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
267 000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
269 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
270 received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
274 AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
275 AT_KEYWORDS([ofp-print])
276 AT_CHECK([ovs-ofctl ofp-print "\
277 02 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
278 00 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
279 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
280 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
281 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
282 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
283 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
284 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
285 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
286 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
288 OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
289 n_tables:2, n_buffers:256
290 capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
291 3(eth0): addr:50:54:00:00:00:01
294 current: 100MB-FD AUTO_NEG
295 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
296 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
297 speed: 100 Mbps now, 100 Mbps max
298 LOCAL(br0): addr:50:54:00:00:00:01
301 speed: 100 Mbps now, 100 Mbps max
305 AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
306 AT_KEYWORDS([ofp-print])
307 AT_CHECK([ovs-ofctl ofp-print "\
308 02 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
309 00 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
310 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
311 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
312 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
313 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
314 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
315 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
316 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
318 ***decode error: OFPBRC_BAD_LEN***
319 00000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
320 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 00 00 |................|
321 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
322 00000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
323 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
324 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
325 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
326 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
327 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
329 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
330 received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
334 AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
335 AT_KEYWORDS([ofp-print])
336 AT_CHECK([ovs-ofctl ofp-print "\
337 03 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
338 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
339 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
340 62 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
341 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
342 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
343 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
344 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
345 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
346 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
348 OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
349 n_tables:255, n_buffers:256
350 capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
351 3(eth0): addr:50:54:00:00:00:01
354 current: 100MB-FD AUTO_NEG
355 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
356 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
357 speed: 100 Mbps now, 100 Mbps max
358 LOCAL(br0): addr:50:54:00:00:00:01
361 speed: 100 Mbps now, 100 Mbps max
365 AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
366 AT_KEYWORDS([ofp-print])
367 AT_CHECK([ovs-ofctl ofp-print "\
368 03 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
369 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
370 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
371 62 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
372 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
373 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
374 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
375 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
376 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
378 OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
379 (***truncated to 144 bytes from 160***)
380 00000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
381 00000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 00 00 |...........w....|
382 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
383 00000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
384 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
385 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
386 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
387 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
388 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
390 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
394 AT_SETUP([OFPT_FEATURES_REPLY - OF1.3])
395 AT_KEYWORDS([ofp-print])
396 AT_CHECK([ovs-ofctl ofp-print "\
397 04 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
398 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
400 OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
401 n_tables:255, n_buffers:256
402 capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
406 AT_SETUP([OFPT_FEATURES_REPLY - OF1.4])
407 AT_KEYWORDS([ofp-print])
408 AT_CHECK([ovs-ofctl ofp-print "\
409 05 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
410 00 00 01 00 ff 00 00 00 00 00 07 6f 00 00 00 00 \
412 OFPT_FEATURES_REPLY (OF1.4) (xid=0x1): dpid:0000505400000001
413 n_tables:255, n_buffers:256
414 capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS IP_REASM QUEUE_STATS PORT_BLOCKED BUNDLES FLOW_MONITORING
418 AT_SETUP([OFPT_FEATURES_REPLY - OF1.5])
419 AT_KEYWORDS([ofp-print])
420 AT_CHECK([ovs-ofctl ofp-print "\
421 06 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
422 00 00 01 00 ff 00 00 00 00 00 07 6f 00 00 00 00 \
424 OFPT_FEATURES_REPLY (OF1.5) (xid=0x1): dpid:0000505400000001
425 n_tables:255, n_buffers:256
426 capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS IP_REASM QUEUE_STATS PORT_BLOCKED BUNDLES FLOW_MONITORING
430 AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
431 AT_KEYWORDS([ofp-print])
432 AT_CHECK([ovs-ofctl ofp-print "\
433 04 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
434 00 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
436 OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
437 n_tables:255, n_buffers:256, auxiliary_id:1
438 capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
442 AT_SETUP([OFPT_GET_CONFIG_REQUEST])
443 AT_KEYWORDS([ofp-print])
444 AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
445 OFPT_GET_CONFIG_REQUEST (xid=0x1):
449 AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
450 AT_KEYWORDS([ofp-print])
451 AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
452 OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
457 AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
458 AT_KEYWORDS([ofp-print])
459 AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
460 OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
464 AT_SETUP([OFPT_PACKET_IN - OF1.0])
465 AT_KEYWORDS([ofp-print])
466 AT_CHECK([ovs-ofctl ofp-print "\
467 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
468 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
469 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
470 c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
471 50 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
473 OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
474 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
478 AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data])
479 AT_KEYWORDS([ofp-print])
480 AT_CHECK([ovs-ofctl ofp-print "\
481 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
482 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
483 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
484 c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
485 50 10 02 00 26 e8 00 00 00 00 00 00 00 00 \
487 OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
488 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=ack tcp_csum:26e8
489 00000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00
490 00000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8
491 00000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 10
492 00000030 02 00 26 e8 00 00 00 00-00 00 00 00
496 AT_SETUP([OFPT_PACKET_IN - OF1.1])
497 AT_KEYWORDS([ofp-print])
498 AT_CHECK([ovs-ofctl ofp-print "\
499 02 0a 00 54 00 00 00 00 00 00 01 11 00 00 00 03 \
500 00 00 00 03 00 3c 00 00 \
501 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
502 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
503 c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
504 50 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
506 OFPT_PACKET_IN (OF1.1) (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
507 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
511 AT_SETUP([OFPT_PACKET_IN - OF1.2])
512 AT_KEYWORDS([ofp-print])
513 AT_CHECK([ovs-ofctl ofp-print "\
514 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
515 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
516 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
517 00 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \
518 00 00 00 23 20 83 c1 5f 00 00 00 00 \
520 OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
521 rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=1,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
525 AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
526 AT_KEYWORDS([ofp-print])
527 AT_CHECK([ovs-ofctl ofp-print "\
528 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
529 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
530 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
531 00 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
532 00 00 00 23 20 83 c1 5f 00 00 00 00 \
534 OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
535 rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
536 00000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
537 00000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
538 00000020 00 23 20 83 c1 5f 00 00-00 00
542 AT_SETUP([OFPT_PACKET_IN - OF1.3])
543 AT_KEYWORDS([ofp-print])
544 AT_CHECK([ovs-ofctl ofp-print "\
545 04 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
546 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
547 ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
548 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
549 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
552 OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
553 rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
557 AT_SETUP([OFPT_PACKET_IN - OF1.4])
558 AT_KEYWORDS([ofp-print])
559 AT_CHECK([ovs-ofctl ofp-print "\
560 05 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
561 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
562 ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
563 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
564 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
567 OFPT_PACKET_IN (OF1.4) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
568 rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
572 AT_SETUP([OFPT_PACKET_IN - OF1.5])
573 AT_KEYWORDS([ofp-print])
574 AT_CHECK([ovs-ofctl ofp-print "\
575 06 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
576 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
577 ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
578 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
579 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
582 OFPT_PACKET_IN (OF1.5) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
583 rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
587 AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
588 AT_KEYWORDS([ofp-print])
589 AT_CHECK([ovs-ofctl ofp-print "\
590 04 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
591 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
592 ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
593 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
594 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
597 OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
598 rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
599 00000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
600 00000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
601 00000020 00 23 20 83 c1 5f 00 00-00 00
605 AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
606 AT_KEYWORDS([ofp-print])
607 AT_CHECK([ovs-ofctl ofp-print "\
608 01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
609 00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
610 00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
611 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
612 30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
613 00 00 00 00 00 00 00 3c \
615 OFPT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.820s idle5 pkts1 bytes60
619 AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
620 AT_KEYWORDS([ofp-print])
621 AT_CHECK([ovs-ofctl ofp-print "\
622 03 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
623 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
624 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
625 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
626 OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
630 AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
631 AT_KEYWORDS([ofp-print])
632 AT_CHECK([ovs-ofctl ofp-print "\
633 04 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
634 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
635 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
636 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
637 OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
641 AT_SETUP([OFPT_FLOW_REMOVED - OF1.5])
642 AT_KEYWORDS([ofp-print])
643 AT_CHECK([ovs-ofctl ofp-print "\
644 06 0b 00 80 00 00 00 02 01 00 00 00 11 00 22 00 \
645 00 00 00 00 00 00 00 01 00 01 00 2d 80 00 00 04 \
646 00 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
647 0a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
648 00 00 00 00 00 00 00 00 00 00 00 34 80 02 00 08 \
649 00 00 00 98 29 e6 ed c0 80 02 02 08 00 00 00 98 \
650 00 00 00 00 80 02 08 08 00 00 00 00 00 00 00 02 \
651 80 02 0a 08 00 00 00 00 00 00 00 80 00 00 00 00 \
653 OFPT_FLOW_REMOVED (OF1.5) (xid=0x2): priority=0,ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 reason=idle table_id=1 cookie:0x1 duration152.703s idle4352 hard8704 pkts2 bytes128
657 AT_SETUP([OFPT_PORT_STATUS - OF1.0])
658 AT_KEYWORDS([ofp-print])
659 AT_CHECK([ovs-ofctl ofp-print "\
660 01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
661 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
662 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
663 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
665 OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
668 current: 100MB-FD AUTO_NEG
669 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
670 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
671 speed: 100 Mbps now, 100 Mbps max
675 AT_SETUP([OFPT_PORT_STATUS - OF1.1])
676 AT_KEYWORDS([ofp-print])
677 AT_CHECK([ovs-ofctl ofp-print "\
678 02 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
679 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
680 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
681 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
682 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
684 OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
687 current: 100MB-FD AUTO_NEG
688 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
689 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
690 speed: 100 Mbps now, 100 Mbps max
694 AT_SETUP([OFPT_PORT_STATUS - OF1.4])
695 AT_KEYWORDS([ofp-print])
696 AT_CHECK([ovs-ofctl ofp-print "\
697 05 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
698 00 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
699 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
700 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
701 00 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
702 00 01 86 a0 00 01 86 a0 \
704 OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
707 current: 100MB-FD AUTO_NEG
708 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
709 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
710 speed: 100 Mbps now, 100 Mbps max
714 AT_SETUP([OFPT_PACKET_OUT - OF1.0])
715 AT_KEYWORDS([ofp-print])
716 AT_CHECK([ovs-ofctl ofp-print "\
717 01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
718 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
719 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
720 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
721 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
724 OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
728 AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
729 AT_KEYWORDS([ofp-print])
730 AT_CHECK([ovs-ofctl ofp-print "\
731 01 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
732 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
733 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
734 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
735 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
738 OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
739 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
743 AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
744 AT_KEYWORDS([ofp-print])
745 AT_CHECK([ovs-ofctl ofp-print "\
746 01 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
747 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
748 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
749 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
750 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
753 OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
754 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
755 00000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
756 00000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
757 00000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
758 00000030 00 00 6d 75 00 00 00 00-00 00 00 00
762 AT_SETUP([OFPT_PACKET_OUT - OF1.1])
763 AT_KEYWORDS([ofp-print])
764 AT_CHECK([ovs-ofctl ofp-print "\
765 03 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
766 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
767 05 dc 00 00 00 00 00 00 \
769 OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
773 AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
774 AT_KEYWORDS([ofp-print])
775 AT_CHECK([ovs-ofctl ofp-print "\
776 03 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
777 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
778 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
779 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
780 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
781 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
784 OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
785 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
789 AT_SETUP([OFPT_PACKET_OUT - OF1.5])
790 AT_KEYWORDS([ofp-print packet-out])
791 AT_CHECK([ovs-ofctl ofp-print "\
792 06 0d 00 30 11 22 33 44 ff ff ff 00 00 10 00 00 \
793 00 01 00 10 80 00 00 04 00 00 00 01 00 00 00 00 \
794 00 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \
796 OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): in_port=1 actions=FLOOD buffer=0xffffff00
800 AT_CHECK([ovs-ofctl ofp-print "\
801 06 0d 00 40 11 22 33 44 ff ff ff 00 00 10 00 00 \
802 00 01 00 20 80 00 04 08 00 00 00 00 00 00 00 03 \
803 80 00 4C 08 00 00 00 00 00 00 00 05 00 00 00 00 \
804 00 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \
806 OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_BAD_PORT***
807 00000000 06 0d 00 40 11 22 33 44-ff ff ff 00 00 10 00 00 |...@."3D........|
808 00000010 00 01 00 20 80 00 04 08-00 00 00 00 00 00 00 03 |... ............|
809 00000020 80 00 4c 08 00 00 00 00-00 00 00 05 00 00 00 00 |..L.............|
810 00000030 00 00 00 10 ff ff ff fb-05 dc 00 00 00 00 00 00 |................|
813 AT_CHECK([ovs-ofctl ofp-print "\
814 06 0d 00 48 11 22 33 44 ff ff ff 00 00 10 00 00 \
815 00 01 00 28 80 00 00 04 00 00 00 01 80 00 04 08 \
816 00 00 00 00 00 00 00 03 80 00 4C 08 00 00 00 00 \
817 00 00 00 05 00 00 00 00 00 00 00 10 ff ff ff fb \
818 05 dc 00 00 00 00 00 00 \
820 OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): tun_id=0x5,metadata=0x3,in_port=1 actions=FLOOD buffer=0xffffff00
823 dnl include non pipeline field
824 AT_CHECK([ovs-ofctl ofp-print "\
825 06 0d 00 38 11 22 33 44 ff ff ff 00 00 10 00 00 \
826 00 01 00 18 80 00 00 04 00 00 00 01 80 00 16 04 \
827 11 22 33 44 00 00 00 00 00 00 00 10 ff ff ff fb \
828 05 dc 00 00 00 00 00 00 \
830 OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_PIPELINE_FIELDS_ONLY***
831 00000000 06 0d 00 38 11 22 33 44-ff ff ff 00 00 10 00 00 |...8."3D........|
833 00000010 00 01 00 18 80 00 00 04-00 00 00 01 80 00 16 04 |................|
834 00000020 11 22 33 44 00 00 00 00-00 00 00 10 ff ff ff fb |."3D............|
835 00000030 05 dc 00 00 00 00 00 00- |........ |
840 AT_SETUP([OFPT_PACKET_OUT - OF1.5, with packet])
841 AT_KEYWORDS([ofp-print packet-out])
842 AT_CHECK([ovs-ofctl ofp-print "\
843 06 0d 00 74 11 22 33 44 ff ff ff ff 00 10 00 00 \
844 00 01 00 18 80 00 00 04 00 00 00 01 80 00 04 08 \
845 00 00 00 00 00 00 00 03 00 00 00 10 ff ff ff fb \
846 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
847 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
848 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
849 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
852 OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): metadata=0x3,in_port=1 actions=FLOOD data_len=60
853 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
857 # The flow is formatted with cls_rule_format() for the low-verbosity case.
858 AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
859 AT_KEYWORDS([ofp-print])
860 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
861 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
862 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
863 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
864 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
865 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
867 OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 idle:5 buf:0x10e out_port:0 actions=output:3
869 ofp_match|INFO|normalization changed ofp_match, details:
870 ofp_match|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
871 ofp_match|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
875 # The flow is formatted with cls_rule_format() for the low-verbosity case.
876 AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
877 AT_KEYWORDS([ofp-print])
878 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
880 da1aa3e035d87158 ffffffffffffffff \
881 02 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
884 0000 0058 00000000 000003f7 \
885 000000000000ffffffffffff 000000000000ffffffffffff \
886 0000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
887 00000000 00 000000 0000000000000000ffffffffffffffff \
889 0001 0008 03 000000 \
891 OFPT_FLOW_MOD (OF1.1) (xid=0x1020304): MOD table:2 priority=40000,arp,arp_spa=192.168.128.0/24 cookie:0xda1aa3e035d87158/0xffffffffffffffff idle:60 hard:120 send_flow_rem check_overlap actions=goto_table:3
895 # The flow is formatted with cls_rule_format() for the low-verbosity case.
896 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
897 AT_KEYWORDS([ofp-print])
898 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
899 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
900 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
901 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
902 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
903 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
904 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
905 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
906 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
907 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
909 OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
914 # The flow is formatted with ofp10_match_to_string() for the
915 # high-verbosity case.
916 AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
917 AT_KEYWORDS([ofp-print])
918 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
919 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
920 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
921 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
922 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
923 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
925 OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e out_port:0 actions=output:3
927 ofp_match|INFO|normalization changed ofp_match, details:
928 ofp_match|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
929 ofp_match|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
933 # The flow is formatted with cls_rule_format() for the low-verbosity case.
934 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
935 AT_KEYWORDS([ofp-print])
936 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
937 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
938 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
939 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
940 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
941 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
942 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
943 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
944 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
945 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
947 OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
952 # The flow is formatted with cls_rule_format() for the low-verbosity case.
953 AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
954 AT_KEYWORDS([ofp-print])
955 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
956 04 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
957 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
958 ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
959 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
960 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
961 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
962 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
963 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
964 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
966 OFPT_FLOW_MOD (OF1.3) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 send_flow_rem check_overlap reset_counts no_packet_counts no_byte_counts actions=output:3
971 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
972 AT_KEYWORDS([ofp-print])
973 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
974 03 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
975 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
976 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
977 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
978 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
979 c0 a8 03 5c 00 00 00 00 \
981 OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
986 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
987 AT_KEYWORDS([ofp-print])
988 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
989 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
991 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
992 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
993 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
994 c0 a8 4a 7a 00 00 00 00 \
996 OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
1001 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
1002 AT_KEYWORDS([ofp-print])
1003 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1004 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
1005 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1006 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
1007 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
1008 00 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
1009 0d 06 00 00 00 00 00 00 \
1011 OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
1016 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
1017 AT_KEYWORDS([ofp-print])
1018 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1019 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1021 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
1022 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
1023 00 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
1024 11 5d 00 00 00 00 00 00 \
1026 OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
1031 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - experimenter OXM])
1032 AT_KEYWORDS([ofp-print])
1033 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1034 03 0e 00 48 52 33 45 07 00 00 00 00 00 00 00 00 \
1035 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1036 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
1037 00 01 00 14 ff ff 01 0c 00 00 23 20 01 23 45 67 \
1038 0f ff ff ff 00 00 00 00
1040 OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,dp_hash=0x1234567/0xfffffff actions=drop
1045 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field nd_target, nd_sll])
1046 AT_KEYWORDS([ofp-print])
1047 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1048 03 0e 00 78 00 00 00 02 00 00 00 00 00 00 00 00 \
1049 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1050 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
1051 00 01 00 14 80 00 0a 02 86 dd 80 00 14 01 3a 80 \
1052 00 3a 01 87 00 00 00 00 00 04 00 30 00 00 00 00 \
1053 00 19 00 18 80 00 3e 10 00 00 00 00 00 00 00 00 \
1054 00 00 00 00 00 00 00 01 00 19 00 10 80 00 40 06 \
1055 aa aa aa aa aa aa 00 00
1057 OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD priority=255,icmp6,icmp_type=135 actions=set_field:::1->nd_target,set_field:aa:aa:aa:aa:aa:aa->nd_sll
1062 dnl This triggered a buggy "instructions out of order" message earlier.
1063 AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
1064 AT_KEYWORDS([ofp-print])
1065 AT_CHECK([ovs-ofctl ofp-print "\
1066 04 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
1067 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
1068 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
1069 00 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
1070 OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
1074 AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
1075 AT_KEYWORDS([ofp-print])
1076 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1077 03 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
1078 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
1079 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1081 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
1082 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
1083 c0 a8 03 5c 00 00 00 00 \
1085 OFPST_FLOW reply (OF1.2) (xid=0x52334504):
1086 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
1091 AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
1092 AT_KEYWORDS([ofp-print])
1093 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1094 03 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
1095 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
1096 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1097 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1098 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
1099 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
1100 c0 a8 4a 7a 00 00 00 00 \
1102 OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1103 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
1108 AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
1109 AT_KEYWORDS([ofp-print])
1110 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1111 03 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
1112 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
1113 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1114 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1115 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
1116 00 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
1117 0d 06 00 00 00 00 00 00 \
1119 OFPST_FLOW reply (OF1.2) (xid=0x52334504):
1120 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
1125 AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
1126 AT_KEYWORDS([ofp-print])
1127 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
1128 03 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
1129 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
1130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1131 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1132 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
1133 00 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
1134 11 5d 00 00 00 00 00 00 \
1136 OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1137 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
1142 AT_SETUP([OFPT_PORT_MOD - OF1.0])
1143 AT_KEYWORDS([ofp-print])
1144 AT_CHECK([ovs-ofctl ofp-print "\
1145 01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
1146 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1148 OFPT_PORT_MOD (xid=0x3): port: 3: addr:50:54:00:00:00:01
1151 advertise: UNCHANGED
1155 AT_SETUP([OFPT_PORT_MOD - OF1.1])
1156 AT_KEYWORDS([ofp-print])
1157 AT_CHECK([ovs-ofctl ofp-print "\
1158 02 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
1159 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
1160 00 00 00 00 00 00 00 00 \
1162 OFPT_PORT_MOD (OF1.1) (xid=0x3): port: 3: addr:50:54:00:00:00:01
1165 advertise: UNCHANGED
1169 AT_SETUP([OFPT_PORT_MOD - OF1.2])
1170 AT_KEYWORDS([ofp-print])
1171 AT_CHECK([ovs-ofctl ofp-print "\
1172 03 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
1173 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
1174 00 00 00 00 00 00 00 00 \
1176 OFPT_PORT_MOD (OF1.2) (xid=0x3): port: 3: addr:50:54:00:00:00:01
1179 advertise: UNCHANGED
1183 AT_SETUP([OFPT_PORT_MOD - OF1.3])
1184 AT_KEYWORDS([ofp-print])
1185 AT_CHECK([ovs-ofctl ofp-print "\
1186 04 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
1187 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
1188 00 00 00 00 00 00 00 00 \
1190 OFPT_PORT_MOD (OF1.3) (xid=0x3): port: 3: addr:50:54:00:00:00:01
1193 advertise: UNCHANGED
1197 AT_SETUP([OFPT_PORT_MOD - OF1.4])
1198 AT_KEYWORDS([ofp-print])
1199 AT_CHECK([ovs-ofctl ofp-print "\
1200 05 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
1201 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
1202 00 00 00 08 00 00 00 01
1204 OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01
1211 AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1212 AT_KEYWORDS([ofp-print])
1213 AT_CHECK([ovs-ofctl ofp-print "\
1214 02 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1216 OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1220 AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1221 AT_KEYWORDS([ofp-print])
1222 AT_CHECK([ovs-ofctl ofp-print "\
1223 03 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1225 OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1229 AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1230 AT_KEYWORDS([ofp-print])
1231 AT_CHECK([ovs-ofctl ofp-print "\
1232 04 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1234 OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2
1238 AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1239 AT_KEYWORDS([ofp-print])
1240 AT_CHECK([ovs-ofctl ofp-print "\
1241 05 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1243 OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, eviction=off, vacancy=off
1247 AT_SETUP([OFPST_DESC request])
1248 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1249 AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1250 OFPST_DESC request (xid=0x1):
1254 AT_SETUP([OFPST_DESC reply])
1255 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1256 AT_CHECK([ovs-ofctl ofp-print "\
1257 01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
1258 72 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
1259 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1261 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1262 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1263 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1264 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1265 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1266 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1267 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1268 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1269 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1271 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1272 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1273 00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
1274 20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
1275 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1276 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1277 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1278 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1279 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1281 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1282 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1283 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1284 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1285 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1286 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1287 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1288 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1289 00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
1290 30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
1291 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1292 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1293 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1294 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1295 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1296 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1297 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1298 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1299 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1301 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1302 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1303 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1304 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1305 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
1306 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1307 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
1308 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1309 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1310 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1311 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1312 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1313 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1314 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1315 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1316 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1317 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1318 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1319 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1321 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1322 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1323 00 00 00 00 00 00 00 00 00 00 00 00 \
1325 OFPST_DESC reply (xid=0x1):
1326 Manufacturer: Nicira, Inc.
1327 Hardware: Open vSwitch
1330 DP Description: None
1334 AT_SETUP([OFPST_FLOW request - OF1.0])
1335 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1336 AT_CHECK([ovs-ofctl ofp-print "\
1337 01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1338 ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1339 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1340 00 00 00 00 ff 00 ff ff \
1342 OFPST_FLOW request (xid=0x4):
1346 AT_SETUP([OFPST_FLOW request - OF1.2])
1347 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1348 AT_CHECK([ovs-ofctl ofp-print "\
1349 03 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1350 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
1351 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1352 00 01 00 04 00 00 00 00 \
1354 OFPST_FLOW request (OF1.2) (xid=0x2):
1358 AT_SETUP([OFPST_FLOW request - OF1.3])
1359 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1360 AT_CHECK([ovs-ofctl ofp-print "\
1361 04 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1362 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
1363 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1364 00 01 00 04 00 00 00 00 \
1366 OFPST_FLOW request (OF1.3) (xid=0x2):
1370 AT_SETUP([OFPST_FLOW request - OF1.5])
1371 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1372 AT_CHECK([ovs-ofctl ofp-print "\
1373 06 12 00 38 00 00 00 04 00 01 00 00 00 00 00 00 \
1374 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
1375 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1376 00 01 00 04 00 00 00 00 \
1378 OFPST_FLOW request (OF1.5) (xid=0x4):
1382 AT_SETUP([OFPST_FLOW reply - OF1.0])
1383 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1384 AT_CHECK([ovs-ofctl ofp-print "\
1385 01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
1386 00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
1387 00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1388 c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1389 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
1390 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
1391 00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
1392 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
1393 00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1394 c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1395 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
1396 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
1397 00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
1398 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
1399 00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1400 c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1401 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
1402 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
1403 00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
1404 00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
1405 00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1406 c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
1407 80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
1408 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
1409 00 00 04 fa 00 00 00 08 00 01 00 00 \
1410 00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
1411 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1412 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1413 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
1414 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1415 00 00 00 00 00 00 00 00 \
1417 OFPST_FLOW reply (xid=0x4):
1418 cookie=0x0, duration=4.200s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1
1419 cookie=0x0, duration=8.900s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, priority=65535,icmp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
1420 cookie=0x0, duration=4.280s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=1,nw_tos=0,tp_src=0,tp_dst=0 actions=output:3
1421 cookie=0x0, duration=9.096s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, icmp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,icmp_type=8,icmp_code=0 actions=output:1
1422 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
1426 AT_SETUP([OFPST_FLOW reply - OF1.2])
1427 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1428 AT_CHECK([ovs-ofctl ofp-print "\
1429 03 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
1430 00 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
1431 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1432 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
1433 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1434 ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
1435 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
1436 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
1437 05 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
1438 20 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
1439 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
1440 00 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
1441 00 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
1442 0a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
1443 00 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
1444 00 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
1445 00 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
1446 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1447 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
1448 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1449 52 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
1450 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
1451 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
1452 05 dc 00 00 00 00 00 00 \
1454 OFPST_FLOW reply (OF1.2) (xid=0x2):
1455 cookie=0x0, duration=3.023s, table=0, n_packets=1, n_bytes=98, ip,metadata=0,in_port=2,dl_dst=ca:da:ad:d6:0d:37,nw_tos=0 actions=output:2
1456 cookie=0x0, duration=4.545s, table=0, n_packets=2, n_bytes=140, ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 actions=output:2
1457 cookie=0x0, duration=4.548s, table=0, n_packets=1, n_bytes=42, ip,metadata=0,in_port=2,dl_dst=52:54:00:97:00:69,nw_tos=0 actions=output:2
1461 AT_SETUP([OFPST_FLOW reply - OF1.5])
1462 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1463 AT_CHECK([ovs-ofctl ofp-print "\
1464 06 13 01 00 00 00 00 04 00 01 00 00 00 00 00 00 \
1465 00 78 00 00 00 00 80 00 00 00 00 00 00 05 00 00 \
1466 00 00 00 00 00 00 00 00 00 01 00 0c 80 00 00 04 \
1467 00 00 00 02 00 00 00 00 00 00 00 34 80 02 00 08 \
1468 00 00 00 c4 0b 06 e0 40 80 02 02 08 00 00 00 c4 \
1469 00 00 00 00 80 02 08 08 00 00 00 00 00 00 00 02 \
1470 80 02 0a 08 00 00 00 00 00 00 00 80 00 00 00 00 \
1471 00 04 00 18 00 00 00 00 00 00 00 10 ff ff ff fa \
1472 00 00 00 00 00 00 00 00 00 78 00 00 00 00 0f a0 \
1473 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 \
1474 00 01 00 0c 80 00 00 04 00 00 00 03 00 00 00 00 \
1475 00 00 00 34 80 02 00 08 00 00 00 b3 25 40 be 40 \
1476 80 02 02 08 00 00 00 b3 00 00 00 00 80 02 08 08 \
1477 00 00 00 00 00 00 00 02 80 02 0a 08 00 00 00 00 \
1478 00 00 00 80 00 00 00 00 00 04 00 18 00 00 00 00 \
1479 00 00 00 10 ff ff ff fa 00 00 00 00 00 00 00 00 \
1481 OFPST_FLOW reply (OF1.5) (xid=0x4):
1482 cookie=0x0, duration=196.185s, table=0, n_packets=2, n_bytes=128, send_flow_rem reset_counts idle_age=196, in_port=2 actions=NORMAL
1483 cookie=0x0, duration=179.625s, table=0, n_packets=2, n_bytes=128, send_flow_rem reset_counts idle_age=179, priority=4000,in_port=3 actions=NORMAL
1487 AT_SETUP([OFPST_AGGREGATE request - OF1.0])
1488 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1489 AT_CHECK([ovs-ofctl ofp-print "\
1490 01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1491 ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1492 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1493 00 00 00 00 ff 00 ff ff \
1495 OFPST_AGGREGATE request (xid=0x4):
1499 AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1500 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1501 AT_CHECK([ovs-ofctl ofp-print "\
1502 03 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1503 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
1504 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1505 00 01 00 04 00 00 00 00 \
1507 OFPST_AGGREGATE request (OF1.2) (xid=0x2):
1511 AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1512 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1513 AT_CHECK([ovs-ofctl ofp-print "\
1514 04 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1515 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
1516 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1517 00 01 00 04 00 00 00 00 \
1519 OFPST_AGGREGATE request (OF1.3) (xid=0x2):
1523 AT_SETUP([OFPST_AGGREGATE request - OF1.5])
1524 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1525 AT_CHECK([ovs-ofctl ofp-print "\
1526 06 12 00 60 00 00 00 04 00 02 00 00 00 00 00 00 \
1527 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
1528 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1529 00 01 00 04 00 00 00 00 00 00 00 24 80 02 06 04 \
1530 00 00 00 00 80 02 08 08 00 00 00 00 00 00 00 00 \
1531 80 02 0a 08 00 00 00 00 00 00 00 00 00 00 00 00 \
1533 OFPST_AGGREGATE request (OF1.5) (xid=0x4):
1537 AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
1538 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1539 AT_CHECK([ovs-ofctl ofp-print "\
1540 01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
1541 00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
1544 OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1548 AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1549 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1550 AT_CHECK([ovs-ofctl ofp-print "\
1551 03 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
1552 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
1553 00 00 00 03 00 00 00 00 \
1555 OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1559 AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1560 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1561 AT_CHECK([ovs-ofctl ofp-print "\
1562 04 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
1563 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
1564 00 00 00 03 00 00 00 00 \
1566 OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1570 AT_SETUP([OFPST_AGGREGATE reply - OF1.5])
1571 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1572 AT_CHECK([ovs-ofctl ofp-print "\
1573 06 13 00 38 00 00 00 04 00 02 00 00 00 00 00 00 \
1574 00 00 00 24 80 02 06 04 00 00 00 03 80 02 08 08 \
1575 00 00 00 00 00 00 00 79 80 02 0a 08 00 00 00 00 \
1576 00 00 4b 4f 00 00 00 00 \
1578 OFPST_AGGREGATE reply (OF1.5) (xid=0x4): packet_count=121 byte_count=19279 flow_count=3
1582 AT_SETUP([OFPST_TABLE request - OF1.0])
1583 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1584 AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1585 OFPST_TABLE request (xid=0x1):
1589 AT_SETUP([OFPST_TABLE request - OF1.1])
1590 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1591 AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1592 OFPST_TABLE request (OF1.1) (xid=0x2):
1596 AT_SETUP([OFPST_TABLE request - OF1.2])
1597 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1598 AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1599 OFPST_TABLE request (OF1.2) (xid=0x2):
1603 AT_SETUP([OFPST_TABLE request - OF1.3])
1604 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1605 AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1606 OFPST_TABLE request (OF1.3) (xid=0x2):
1610 AT_SETUP([OFPST_TABLE reply - OF1.0])
1611 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1612 AT_CHECK([ovs-ofctl ofp-print "\
1613 01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
1614 63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
1615 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1616 00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
1617 00 00 00 00 00 00 00 00 00 00 00 00 \
1619 OFPST_TABLE reply (xid=0x1):
1620 table 0 ("classifier"):
1621 active=11, lookup=0, matched=0
1624 exact match or wildcard: in_port eth_{src,dst,type} vlan_{vid,pcp} ip_{src,dst} nw_{proto,tos} tcp_{src,dst}
1628 AT_SETUP([OFPST_TABLE reply - OF1.2])
1629 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1630 (echo 'OFPST_TABLE reply (OF1.2) (xid=0x2):
1631 table 0 ("classifier"):
1632 active=1, lookup=74614, matched=106024
1635 instructions (table miss and others):
1636 instructions: write_metadata goto_table
1637 Write-Actions and Apply-Actions features:
1638 supported on Set-Field: metadata in_port_oxm eth_{src,dst,type} vlan_{vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst,label} nw_proto ip_dscp nw_ecn arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll}
1640 exact match or wildcard: metadata in_port_oxm eth_{src,dst,type} vlan_{vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst,label} nw_proto ip_dscp nw_ecn arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll}
1643 active=0, lookup=0, matched=0
1646 for i in `seq 2 253`; do
1647 printf ' table %d ("table%d"): ditto\n' $i $i
1649 echo ' table 254 ("table254"):
1650 active=2, lookup=0, matched=0
1651 (same features)') > expout
1653 (pad32="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
1654 pad7="00 00 00 00 00 00 00 "
1655 mid="00 00 00 0f ff ff ff ff \
1656 00 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
1657 00 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
1658 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1659 00 00 00 07 00 00 00 00 00 0f 42 40 "
1660 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1662 printf "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1665 printf "%02x $pad7" $x
1666 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1667 printf "$mid 00 00 00 01 "
1668 printf "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1671 while test $x -lt 254; do
1672 printf "%02x $pad7" $x
1673 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1674 printf "$mid 00 00 00 00 $tail "
1679 printf "%02x $pad7" $x
1680 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1681 printf "$mid 00 00 00 02 $tail") > in
1682 AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
1685 AT_SETUP([OFPST_TABLE reply - OF1.3])
1686 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1687 AT_CHECK([ovs-ofctl ofp-print "\
1688 04 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
1689 00 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
1690 00 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
1691 00 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1693 OFPST_TABLE reply (OF1.3) (xid=0x1):
1695 active=11, lookup=512, matched=256
1698 active=12, lookup=513, matched=257
1702 AT_SETUP([OFPST_PORT request - 1.0])
1703 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1704 AT_CHECK([ovs-ofctl ofp-print "\
1705 01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
1708 OFPST_PORT request (xid=0x1): port_no=ANY
1712 AT_SETUP([OFPST_PORT request - 1.1])
1713 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1714 AT_CHECK([ovs-ofctl ofp-print "\
1715 02 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1716 ff ff ff ff 00 00 00 00 \
1718 OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
1722 AT_SETUP([OFPST_PORT request - 1.2])
1723 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1724 AT_CHECK([ovs-ofctl ofp-print "\
1725 03 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1726 ff ff ff ff 00 00 00 00 \
1728 OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
1732 AT_SETUP([OFPST_PORT request - 1.3])
1733 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1734 AT_CHECK([ovs-ofctl ofp-print "\
1735 04 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1736 ff ff ff ff 00 00 00 00 \
1738 OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
1742 AT_SETUP([OFPST_PORT reply - OF1.0])
1743 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1744 AT_CHECK([ovs-ofctl ofp-print "\
1745 01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
1746 00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
1747 00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
1748 00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
1749 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1751 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1752 00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
1753 00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
1754 00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
1755 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1756 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1757 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1758 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
1759 00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
1760 00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
1761 00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
1762 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1763 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1764 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1765 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
1766 00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
1767 00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
1768 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1769 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1771 00 00 00 00 00 00 00 00 00 00 00 00 \
1773 OFPST_PORT reply (xid=0x1): 4 ports
1774 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1775 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
1776 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
1777 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1778 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1779 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1780 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1781 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1785 AT_SETUP([OFPST_PORT reply - OF1.2])
1786 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1787 AT_CHECK([ovs-ofctl ofp-print "\
1788 03 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
1789 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
1790 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
1791 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
1792 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1793 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1794 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1795 00 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
1796 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
1797 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
1798 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1799 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1801 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1802 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
1803 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
1804 00 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
1805 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1806 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1807 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1808 00 00 00 00 00 00 00 00 \
1810 OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1811 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1812 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1813 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1814 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1815 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1816 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1820 AT_SETUP([OFPST_PORT reply - OF1.3])
1821 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1822 AT_CHECK([ovs-ofctl ofp-print "\
1823 04 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
1824 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
1825 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
1826 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
1827 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1828 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1829 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1830 00 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1831 ff ff ff fe 00 00 00 00 \
1832 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
1833 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
1834 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1835 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1836 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1837 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1838 ff ff ff ff ff ff ff ff \
1839 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
1840 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
1841 00 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
1842 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1843 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1844 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1845 00 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1847 OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1848 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1849 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1851 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1852 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1853 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1854 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1859 AT_SETUP([OFPST_PORT reply - OF1.4])
1860 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1861 AT_CHECK([ovs-ofctl ofp-print "\
1862 05 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
1863 00 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
1864 00 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
1865 00 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
1866 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1867 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1868 00 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
1869 00 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
1870 00 00 00 00 00 00 00 ff \
1872 OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1873 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1874 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1879 AT_SETUP([OFPST_QUEUE request - OF1.0])
1880 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1881 AT_CHECK([ovs-ofctl ofp-print "\
1882 01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1885 OFPST_QUEUE request (xid=0x1): port=ANY queue=ALL
1889 AT_SETUP([OFPST_QUEUE request - OF1.1])
1890 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1891 AT_CHECK([ovs-ofctl ofp-print "\
1892 02 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1893 ff ff ff ff ff ff ff ff \
1895 OFPST_QUEUE request (OF1.1) (xid=0x2): port=ANY queue=ALL
1899 AT_SETUP([OFPST_QUEUE request - OF1.2])
1900 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1901 AT_CHECK([ovs-ofctl ofp-print "\
1902 03 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1903 ff ff ff ff ff ff ff ff \
1905 OFPST_QUEUE request (OF1.2) (xid=0x2): port=ANY queue=ALL
1909 AT_SETUP([OFPST_QUEUE request - OF1.3])
1910 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1911 AT_CHECK([ovs-ofctl ofp-print "\
1912 04 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1913 ff ff ff ff ff ff ff ff \
1915 OFPST_QUEUE request (OF1.3) (xid=0x2): port=ANY queue=ALL
1919 AT_SETUP([OFPST_QUEUE reply - OF1.0])
1920 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1921 AT_CHECK([ovs-ofctl ofp-print "\
1922 01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
1923 00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
1924 00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
1925 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
1926 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
1927 00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
1928 00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
1929 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
1930 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
1931 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
1932 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
1933 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
1934 00 00 00 00 00 00 00 00 00 00 00 00 \
1936 OFPST_QUEUE reply (xid=0x1): 6 queues
1937 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1938 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1939 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1940 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1941 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1942 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1946 AT_SETUP([OFPST_QUEUE reply - OF1.1])
1947 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1948 AT_CHECK([ovs-ofctl ofp-print "\
1949 02 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
1950 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
1951 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
1952 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
1953 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1954 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
1955 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
1956 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
1957 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1958 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1959 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1960 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
1961 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1963 OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
1964 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1965 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1966 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1967 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1968 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1969 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1973 AT_SETUP([OFPST_QUEUE reply - OF1.2])
1974 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1975 AT_CHECK([ovs-ofctl ofp-print "\
1976 03 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
1977 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
1978 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
1979 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
1980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1981 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
1982 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
1983 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
1984 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1985 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1986 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1987 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
1988 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1990 OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
1991 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1992 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1993 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1994 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1995 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1996 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
2000 AT_SETUP([OFPST_QUEUE reply - OF1.3])
2001 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2002 AT_CHECK([ovs-ofctl ofp-print "\
2003 04 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
2004 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
2005 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
2006 00 00 00 64 1d cd 65 00 \
2007 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
2008 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2009 00 00 00 64 1d cd 65 00 \
2010 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
2011 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
2012 00 00 00 64 1d cd 65 00 \
2013 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
2014 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2015 00 00 00 64 1d cd 65 00 \
2016 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
2017 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2018 00 00 00 64 1d cd 65 00 \
2019 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
2020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2021 ff ff ff ff ff ff ff ff \
2023 OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
2024 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
2025 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2026 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
2027 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2028 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
2029 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
2033 AT_SETUP([OFPST_QUEUE reply - OF1.4])
2034 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2035 AT_CHECK([ovs-ofctl ofp-print "\
2036 05 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
2037 00 30 00 00 00 00 00 00 \
2038 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
2039 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
2040 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
2041 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
2042 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2043 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
2044 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
2045 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
2046 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
2047 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
2048 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2049 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
2050 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
2051 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2052 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
2053 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
2054 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2055 ff ff ff ff ff ff ff ff \
2057 OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
2058 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
2059 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2060 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
2061 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2062 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
2063 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
2067 AT_SETUP([NXST_GROUP request - OF1.0])
2068 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2069 AT_CHECK([ovs-ofctl ofp-print "\
2070 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \
2071 ff ff ff ff 00 00 00 00 \
2072 "], [0], [NXST_GROUP request (xid=0x4): group_id=ANY
2076 AT_SETUP([OFPST_GROUP request - OF1.1])
2077 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2078 AT_CHECK([ovs-ofctl ofp-print "\
2079 02 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
2080 ff ff ff ff 00 00 00 00 \
2081 "], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
2085 AT_SETUP([NXST_GROUP reply - OF1.0])
2086 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2087 AT_CHECK([ovs-ofctl ofp-print "\
2088 01 11 00 b8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \
2089 00 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
2090 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
2091 00 00 00 12 1d cd 65 00 \
2092 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2093 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2094 00 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
2095 00 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
2096 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
2097 00 00 00 10 1d cd 65 00 \
2098 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2099 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2101 NXST_GROUP reply (xid=0x4):
2102 group_id=2271560481,duration=18.500s,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
2103 group_id=5,duration=16.500s,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
2107 AT_SETUP([OFPST_GROUP reply - OF1.1])
2108 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2109 AT_CHECK([ovs-ofctl ofp-print "\
2110 02 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
2111 00 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
2112 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
2113 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2114 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2115 00 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
2116 00 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
2117 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
2118 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2119 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2121 OFPST_GROUP reply (OF1.1) (xid=0x2):
2122 group_id=2271560481,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
2123 group_id=5,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
2127 AT_SETUP([OFPST_GROUP reply - OF1.3])
2128 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2129 AT_CHECK([ovs-ofctl ofp-print "\
2130 04 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
2131 00 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
2132 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
2133 00 00 00 12 1d cd 65 00 \
2134 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2135 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2136 00 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
2137 00 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
2138 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
2139 00 00 00 10 1d cd 65 00 \
2140 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2141 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2143 OFPST_GROUP reply (OF1.3) (xid=0x2):
2144 group_id=2271560481,duration=18.500s,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
2145 group_id=5,duration=16.500s,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
2149 AT_SETUP([NXST_GROUP_DESC request - OF1.0])
2150 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2151 AT_CHECK([ovs-ofctl ofp-print "\
2152 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \
2153 00 00 00 01 00 00 00 00
2154 "], [0], [NXST_GROUP_DESC request (xid=0x4): group_id=1
2158 AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
2159 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2160 AT_CHECK([ovs-ofctl ofp-print "\
2161 02 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
2162 "], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
2166 AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
2167 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2168 AT_CHECK([ovs-ofctl ofp-print "\
2169 06 12 00 18 00 00 00 02 00 07 00 00 00 00 00 00 \
2170 00 00 00 01 00 00 00 00
2171 "], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
2175 AT_SETUP([NXST_GROUP_DESC reply - OF1.0])
2176 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2177 AT_CHECK([ovs-ofctl ofp-print "\
2178 01 11 00 c8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \
2179 00 b0 01 00 00 00 20 00 00 60 00 00 00 00 00 00 \
2180 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
2181 00 00 00 08 00 64 00 00 \
2182 00 01 00 08 00 00 00 01 \
2183 00 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
2184 00 00 00 08 00 c8 00 00 \
2185 00 01 00 08 00 00 00 02 \
2186 00 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
2187 00 00 00 08 00 c8 00 00 \
2188 00 01 00 08 00 00 00 03 \
2189 ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
2190 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
2191 00 00 00 00 00 00 00 00 \
2192 80 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
2193 14 01 ff 00 00 00 00 00 \
2195 NXST_GROUP_DESC reply (xid=0x4):
2196 group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2200 AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
2201 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2202 AT_CHECK([ovs-ofctl ofp-print "\
2203 02 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
2204 00 68 01 00 00 00 20 00 \
2205 00 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
2206 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
2207 00 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
2208 00 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
2209 00 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
2210 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2212 OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2213 group_id=8192,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
2217 AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2218 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2219 AT_CHECK([ovs-ofctl ofp-print "\
2220 06 13 00 d8 00 00 00 02 00 07 00 00 00 00 00 00 \
2221 00 c8 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
2222 00 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
2223 00 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
2224 00 01 00 08 00 00 00 01 \
2225 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
2226 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
2227 00 01 00 08 00 00 00 02 \
2228 00 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
2229 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
2230 00 01 00 08 00 00 00 03 \
2231 ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
2232 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
2233 00 00 00 00 00 00 00 00 \
2234 80 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
2235 14 01 ff 00 00 00 00 00 \
2237 OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
2238 group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2242 AT_SETUP([NXST_GROUP_FEATURES request])
2243 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2244 AT_CHECK([ovs-ofctl ofp-print "\
2245 01 10 00 18 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \
2246 "], [0], [NXST_GROUP_FEATURES request (xid=0x4):
2250 AT_SETUP([OFPST_GROUP_FEATURES request])
2251 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2252 AT_CHECK([ovs-ofctl ofp-print "\
2253 03 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2254 "], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2258 AT_SETUP([NXST_GROUP_FEATURES reply])
2259 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2260 AT_CHECK([ovs-ofctl ofp-print "\
2261 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \
2262 00 00 00 0f 00 00 00 0f \
2263 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
2264 00 00 00 01 00 00 00 07 00 00 00 0f 00 00 00 1f \
2266 NXST_GROUP_FEATURES reply (xid=0x4):
2275 actions: output set_vlan_vid set_vlan_pcp
2278 actions: output set_vlan_vid set_vlan_pcp strip_vlan
2279 fast failover group:
2281 actions: output set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
2285 AT_SETUP([OFPST_GROUP_FEATURES reply])
2286 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2287 AT_CHECK([ovs-ofctl ofp-print "\
2288 03 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
2289 00 00 00 0f 00 00 00 0f \
2290 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
2291 00 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
2293 OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2302 actions: output push_vlan
2305 actions: output strip_vlan push_vlan
2306 fast failover group:
2308 actions: output strip_vlan push_vlan push_mpls
2312 AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2313 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2314 AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
2315 OFPST_PORT_DESC request (xid=0x1): port=ANY
2319 AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2320 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2321 AT_CHECK([ovs-ofctl ofp-print "\
2322 06 12 00 18 00 00 00 02 00 0d 00 00 00 00 00 00 \
2323 00 00 00 05 00 00 00 00"], [0], [dnl
2324 OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
2328 AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2329 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2330 AT_CHECK([ovs-ofctl ofp-print "\
2331 01 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
2332 00 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
2333 00 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
2334 00 00 02 8f 00 00 02 8f 00 00 00 00 \
2336 OFPST_PORT_DESC reply (xid=0x0):
2337 3(eth0): addr:50:54:00:00:00:01
2340 current: 100MB-FD AUTO_NEG
2341 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2342 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2343 speed: 100 Mbps now, 100 Mbps max
2347 AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2348 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2349 AT_CHECK([ovs-ofctl ofp-print "\
2350 05 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
2351 00 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
2352 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
2353 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
2354 00 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
2355 00 01 86 a0 00 01 86 a0 \
2357 OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2358 3(eth0): addr:50:54:00:00:00:01
2361 current: 100MB-FD AUTO_NEG
2362 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2363 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2364 speed: 100 Mbps now, 100 Mbps max
2368 AT_SETUP([OFPT_METER_MOD request - OF1.3])
2369 AT_KEYWORDS([ofp-print])
2370 AT_CHECK([ovs-ofctl ofp-print "\
2371 04 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
2372 00 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2374 OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2375 type=drop rate=1024 burst_size=128
2379 AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2380 AT_KEYWORDS([ofp-print])
2381 AT_CHECK([ovs-ofctl ofp-print "\
2382 04 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
2383 00 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2385 OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2386 00000000 04 1d 00 20 85 01 d7 38-00 00 00 00 00 00 00 01 |... ...8........|
2387 00000010 00 05 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................|
2391 AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2392 AT_KEYWORDS([ofp-print])
2393 AT_CHECK([ovs-ofctl ofp-print "\
2394 04 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2396 OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2397 00000000 04 1d 00 10 28 a6 26 52-00 08 00 00 00 00 00 01 |....@{:@.&R........|
2401 AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2402 AT_KEYWORDS([ofp-print])
2403 AT_CHECK([ovs-ofctl ofp-print "\
2404 04 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
2405 00 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2407 OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2408 00000000 04 1d 00 20 82 b3 a1 a4-00 00 00 03 00 00 00 01 |... ............|
2409 00000010 00 01 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................|
2413 AT_SETUP([OFPST_METER request - OF1.3])
2414 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2415 AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2416 OFPST_METER request (OF1.3) (xid=0x2): meter=1
2420 AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2421 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2422 AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2423 OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2427 AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2428 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2429 AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2430 OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2434 AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2435 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2436 AT_CHECK([ovs-ofctl ofp-print "\
2437 04 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
2438 00 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
2440 OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2441 max_meter:65536 max_bands:16 max_color:2
2442 band_types: drop dscp_remark
2443 capabilities: kbps pktps burst stats
2447 AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2448 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2449 AT_CHECK([ovs-ofctl ofp-print "\
2450 04 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
2451 00 28 00 05 00 00 00 01 \
2452 00 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
2453 00 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
2454 00 18 00 09 00 00 00 02 \
2455 00 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2457 OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2458 meter=1 kbps burst bands=
2459 type=drop rate=65536 burst_size=1280
2460 type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2462 meter=2 kbps stats bands=
2463 type=drop rate=131072
2467 AT_SETUP([OFPST_METER reply - OF1.3])
2468 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2469 AT_CHECK([ovs-ofctl ofp-print "\
2470 04 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
2471 00 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
2472 00 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
2473 00 00 01 8a 0a 6e 23 44 \
2474 00 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
2475 00 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
2476 00 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
2477 00 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
2478 00 00 01 87 0a 23 6e 44 \
2479 00 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2481 OFPST_METER reply (OF1.3) (xid=0x2):
2482 meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
2483 0: packet_count:126 byte_count:13363
2484 1: packet_count:231 byte_count:37934
2486 meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
2487 0: packet_count:42 byte_count:1075
2491 AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2492 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2493 AT_CHECK([ovs-ofctl ofp-print "\
2494 04 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
2495 09 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
2496 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2497 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2498 ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
2499 00 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
2500 00 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
2501 00 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
2502 00 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
2503 00 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
2504 00 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
2505 00 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
2506 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
2507 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
2508 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
2509 3d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
2510 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
2511 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
2512 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
2513 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
2514 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
2515 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2516 ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2517 bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2518 cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2519 dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2520 ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2521 fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
2522 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
2523 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
2524 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
2525 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
2526 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
2527 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
2528 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
2529 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
2530 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
2531 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2532 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2533 b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2534 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2535 d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2536 e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2537 f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
2538 00 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
2539 00 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
2540 00 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
2541 00 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
2542 00 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
2543 00 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
2544 00 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
2545 00 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
2546 00 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
2547 00 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
2548 00 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
2549 00 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
2550 00 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
2551 00 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
2552 00 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
2553 00 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
2554 00 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
2555 00 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
2556 00 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
2557 00 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
2558 00 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
2559 00 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
2560 00 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
2561 00 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
2562 00 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
2563 00 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
2564 00 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
2565 00 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
2566 00 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
2567 00 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
2568 00 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
2569 00 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
2570 00 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
2571 00 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
2572 00 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
2573 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
2574 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
2575 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
2576 80 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
2577 80 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
2578 80 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
2579 80 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
2580 80 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
2581 80 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
2582 80 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
2583 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2584 80 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
2585 80 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
2586 00 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
2587 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
2588 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
2589 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
2590 80 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
2591 80 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
2592 80 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
2593 80 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
2594 80 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
2595 80 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
2596 80 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
2597 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2598 80 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
2599 80 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
2600 00 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
2601 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
2602 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
2603 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
2604 80 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
2605 80 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
2606 80 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
2607 80 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
2608 80 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
2609 80 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
2610 80 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
2611 00 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
2612 80 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
2613 00 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
2614 00 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
2615 00 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
2616 80 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
2617 80 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
2618 00 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
2619 80 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
2620 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2621 00 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
2622 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
2623 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
2624 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
2625 80 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
2626 80 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
2627 80 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
2628 80 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
2629 80 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
2630 80 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
2631 80 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
2632 00 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
2633 80 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
2634 00 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
2635 00 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
2636 00 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
2637 80 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
2638 80 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
2639 00 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
2640 80 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
2641 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2642 "], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5): flags=[[more]]
2644 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
2646 instructions (table miss and others):
2648 instructions: apply_actions clear_actions write_actions write_metadata goto_table
2649 Write-Actions and Apply-Actions features:
2650 actions: output group set_field strip_vlan push_vlan mod_nw_ttl dec_ttl set_mpls_ttl dec_mpls_ttl push_mpls pop_mpls set_queue
2651 supported on Set-Field: tun_{id,src,dst} metadata in_{port,port_oxm} pkt_mark reg0...reg7 eth_{src,dst} vlan_{tci,vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst} nw_tos ip_dscp nw_{ecn,ttl} arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst}
2653 exact match or wildcard: tun_{id,src,dst} metadata in_{port,port_oxm} pkt_mark reg0...reg7 eth_{src,dst,type} vlan_{tci,vid,pcp} mpls_{label,tc,bos} ip_{src,dst} ipv6_{src,dst,label} nw_{proto,tos} ip_dscp nw_{ecn,ttl} ip_frag arp_{op,spa,tpa,sha,tha} tcp_{src,dst,flags} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll}
2657 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
2658 AT_KEYWORDS([ofp-print])
2659 AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2660 OFPT_BARRIER_REQUEST (xid=0x1):
2664 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2665 AT_KEYWORDS([ofp-print])
2666 AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2667 OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2671 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2672 AT_KEYWORDS([ofp-print])
2673 AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2674 OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2678 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2679 AT_KEYWORDS([ofp-print])
2680 AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2681 OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2685 AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
2686 AT_KEYWORDS([ofp-print])
2687 AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2688 OFPT_BARRIER_REPLY (xid=0x1):
2692 AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
2693 AT_KEYWORDS([ofp-print])
2694 AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2695 OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2699 AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
2700 AT_KEYWORDS([ofp-print])
2701 AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2702 OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2706 AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2707 AT_KEYWORDS([ofp-print])
2708 AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2709 OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2713 AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2714 AT_KEYWORDS([ofp-print])
2715 AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
2716 OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2720 AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2721 AT_KEYWORDS([ofp-print])
2722 AT_CHECK([ovs-ofctl ofp-print "\
2723 03 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2724 OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2728 AT_SETUP([OFPST_QUEUE_DESC request - OF1.4])
2729 AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REQUEST])
2730 AT_CHECK([ovs-ofctl ofp-print "\
2731 05 12 00 18 00 00 00 01 00 0f 00 00 00 00 00 00 \
2732 00 00 00 01 00 00 00 02"], [0],
2733 [OFPST_QUEUE_DESC request (OF1.4) (xid=0x1): port=1 queue=2
2737 AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2738 AT_KEYWORDS([ofp-print])
2739 AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
2740 00 01 00 00 00 00 00 00 \
2741 00 00 55 55 00 28 00 00 \
2742 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
2743 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
2744 00 00 44 44 00 08 00 00 \
2746 OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2748 queue 21845: min_rate:50.0% max_rate:75.0%
2752 AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.1])
2753 AT_KEYWORDS([ofp-print])
2754 AT_CHECK([ovs-ofctl ofp-print "02 17 00 40 00 00 00 01 \
2755 00 00 00 01 00 00 00 00 \
2756 00 00 55 55 00 28 00 00 \
2757 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
2758 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
2759 00 00 44 44 00 08 00 00 \
2761 OFPT_QUEUE_GET_CONFIG_REPLY (OF1.1) (xid=0x1): port=1
2763 queue 21845: min_rate:50.0% max_rate:75.0%
2767 AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2768 AT_KEYWORDS([ofp-print])
2769 AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
2770 00 00 00 01 00 00 00 00 \
2771 00 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
2772 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
2773 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
2774 00 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2776 OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2778 queue 21845: min_rate:50.0% max_rate:75.0%
2782 AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.3])
2783 AT_KEYWORDS([ofp-print])
2784 AT_CHECK([ovs-ofctl ofp-print "04 17 00 50 00 00 00 01 \
2785 00 00 00 01 00 00 00 00 \
2786 00 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
2787 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
2788 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
2789 00 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2791 OFPT_QUEUE_GET_CONFIG_REPLY (OF1.3) (xid=0x1): port=1
2793 queue 21845: min_rate:50.0% max_rate:75.0%
2797 # OF1.4 renamed OFPT_QUEUE_GET_CONFIG_REPLY to OFPST_QUEUE_DESC.
2798 AT_SETUP([OFPST_QUEUE_DESC reply - OF1.4])
2799 AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REPLY])
2800 AT_CHECK([ovs-ofctl ofp-print "\
2801 05 13 00 48 00 00 00 01 00 0f 00 00 00 00 00 00 \
2803 00 00 00 01 00 00 55 55 00 20 00 00 00 00 00 00 \
2804 00 01 00 08 01 f4 00 00 \
2805 00 02 00 08 02 ee 00 00 \
2807 00 00 00 02 00 00 44 44 00 18 00 00 00 00 00 00 \
2808 00 02 00 08 00 64 00 00 \
2810 OFPST_QUEUE_DESC reply (OF1.4) (xid=0x1): port=1
2811 queue 21845: min_rate:50.0% max_rate:75.0%
2813 queue 17476: max_rate:10.0%
2817 AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2818 AT_KEYWORDS([ofp-print])
2819 dnl This message has bit 12 set for the PACKET_IN messages (master and slave).
2820 dnl Those aren't supported bits so they get silently ignored on decoding.
2821 dnl That seems reasonable because OF1.3 doesn't define any error codes for
2823 AT_CHECK([ovs-ofctl ofp-print "\
2824 04 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
2825 00 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2827 OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2829 PACKET_IN: no_match invalid_ttl
2830 PORT_STATUS: add delete
2834 REQUESTFORWARD: (off)
2837 PACKET_IN: no_match action invalid_ttl
2838 PORT_STATUS: add delete modify
2839 FLOW_REMOVED: idle hard
2842 REQUESTFORWARD: (off)
2846 AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2847 AT_KEYWORDS([ofp-print])
2848 AT_CHECK([ovs-ofctl ofp-print "\
2849 03 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
2850 00 00 00 00 00 00 00 03 \
2852 OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2856 AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2857 AT_KEYWORDS([ofp-print])
2858 AT_CHECK([ovs-ofctl ofp-print "\
2859 03 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
2860 00 00 00 00 00 00 00 00 \
2862 OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2866 AT_SETUP([NXT_ROLE_REQUEST])
2867 AT_KEYWORDS([ofp-print])
2868 AT_CHECK([ovs-ofctl ofp-print "\
2869 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
2872 NXT_ROLE_REQUEST (xid=0x2): role=master
2876 AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2877 AT_KEYWORDS([ofp-print])
2878 AT_CHECK([ovs-ofctl ofp-print "\
2879 03 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
2880 12 34 56 78 ab cd ef 90 \
2882 OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
2886 AT_SETUP([NXT_ROLE_REPLY])
2887 AT_KEYWORDS([ofp-print])
2888 AT_CHECK([ovs-ofctl ofp-print "\
2889 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
2892 NXT_ROLE_REPLY (xid=0x2): role=slave
2896 AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.3])
2897 AT_KEYWORDS([ofp-print])
2898 AT_CHECK([ovs-ofctl ofp-print "\
2899 04 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
2900 00 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2902 ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=experimenter_data_changed
2906 AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.3])
2907 AT_KEYWORDS([ofp-print])
2908 AT_CHECK([ovs-ofctl ofp-print "\
2909 04 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
2910 00 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2912 ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=configuration_changed
2916 AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.3])
2917 AT_KEYWORDS([ofp-print])
2918 AT_CHECK([ovs-ofctl ofp-print "\
2919 04 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
2920 00 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2922 ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master generation_id=16 reason=configuration_changed
2926 AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2927 AT_KEYWORDS([ofp-print])
2928 AT_CHECK([ovs-ofctl ofp-print "\
2929 05 1e 00 18 00 00 00 0a \
2930 00 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2932 OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
2936 AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2937 AT_KEYWORDS([ofp-print])
2938 AT_CHECK([ovs-ofctl ofp-print "\
2939 05 1e 00 18 00 00 00 0a \
2940 00 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2942 OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
2946 AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2947 AT_KEYWORDS([ofp-print])
2948 AT_CHECK([ovs-ofctl ofp-print "\
2949 05 1e 00 18 00 00 00 0a \
2950 00 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2952 OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
2956 AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2957 AT_KEYWORDS([ofp-print])
2958 AT_CHECK([ovs-ofctl ofp-print "\
2959 05 20 00 18 00 00 00 02 \
2960 05 0f 00 10 02 00 00 00 \
2961 00 00 00 00 00 00 00 01 \
2963 OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2964 ADD group_id=1,type=all
2968 AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2969 AT_KEYWORDS([ofp-print])
2970 AT_CHECK([ovs-ofctl ofp-print "\
2971 05 20 00 18 00 00 00 02 \
2972 05 0f 00 10 02 00 00 00 \
2973 00 01 01 00 00 00 00 01 \
2975 OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2976 MOD group_id=1,type=select
2980 AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2981 AT_KEYWORDS([ofp-print])
2982 AT_CHECK([ovs-ofctl ofp-print "\
2983 05 20 00 18 00 00 00 02 \
2984 05 1d 00 10 02 00 00 00 \
2985 00 00 00 00 00 00 00 01 \
2987 OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod ADD meter=1 bands=
2991 AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2992 AT_KEYWORDS([ofp-print])
2993 AT_CHECK([ovs-ofctl ofp-print "\
2994 05 20 00 18 00 00 00 02 \
2995 05 1d 00 10 02 00 00 00 \
2996 00 01 01 00 00 00 00 01 \
2998 OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod MOD meter=1 flags:0x100 bands=
3002 AT_SETUP([NXT_REQUESTFORWARD - inner NXT_GROUP_MOD])
3003 AT_KEYWORDS([ofp-print])
3004 AT_CHECK([ovs-ofctl ofp-print "\
3005 dnl OF version 1.0; type=extension:
3011 dnl Nicira vendor number:
3013 dnl subtype (message id number = 132 in this case)
3015 dnl inner msg copied and pasted from NXT_GROUP_MOD test above:
3016 01 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f 00 00 01 00 87 65 43 21 \
3017 00 60 00 00 ff ff ff ff 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
3018 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 00 20 00 08 00 00 00 01 \
3019 00 00 00 08 00 02 00 00 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02 \
3020 00 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 00 00 00 08 00 c8 00 00 \
3021 00 01 00 08 00 00 00 03 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
3022 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 \
3024 NXT_REQUESTFORWARD (xid=0x2): reason=group_mod
3025 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3029 AT_SETUP([NXT_REQUESTFORWARD - inner OFPT_GROUP_MOD - OF1.1])
3030 AT_KEYWORDS([ofp-print])
3031 AT_CHECK([ovs-ofctl ofp-print "\
3032 dnl OF Version 1.1; type=extension:
3038 dnl Nicira vendor number:
3040 dnl subtype (message id number = 132 in this case)
3042 dnl inner msg copied and pasted from OFPT_GROUP_MOD OF1.1 test above:
3043 02 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
3044 00 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
3045 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
3046 00 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
3047 00 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
3048 00 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
3049 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3051 NXT_REQUESTFORWARD (OF1.1) (xid=0x2): reason=group_mod
3052 ADD group_id=2271560481,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
3056 AT_SETUP([ONFT_REQUESTFORWARD - inner OFPT_METER_MOD - OF1.3])
3057 AT_KEYWORDS([ofp-print])
3058 AT_CHECK([ovs-ofctl ofp-print "\
3059 dnl OF Version 1.3; type=extension:
3065 dnl ONF vendor number:
3067 dnl subtype (message id number = 2350 in this case)
3069 dnl inner msg copied and pasted from the valid OFPT_METER_MOD OF1.3 test:
3070 04 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
3071 00 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
3073 ONFT_REQUESTFORWARD (OF1.3) (xid=0x2): reason=meter_mod ADD meter=5 kbps burst stats bands=
3074 type=drop rate=1024 burst_size=128
3078 AT_SETUP([NXT_SET_PACKET_IN])
3079 AT_KEYWORDS([ofp-print])
3080 AT_CHECK([ovs-ofctl ofp-print "\
3081 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
3084 NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxt_packet_in
3088 AT_SETUP([NXT_PACKET_IN])
3089 AT_KEYWORDS([ofp-print])
3090 AT_CHECK([ovs-ofctl ofp-print "\
3091 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
3092 ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
3093 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
3094 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
3095 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
3096 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
3097 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
3098 ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
3099 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
3100 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
3101 00 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
3102 31 6d 00 00 00 00 00 00 00 00 \
3104 NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered)
3105 tcp,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=syn tcp_csum:316d
3109 AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
3110 AT_KEYWORDS([ofp-print])
3111 AT_CHECK([ovs-ofctl ofp-print "\
3112 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
3113 ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
3114 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
3115 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
3116 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
3117 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
3118 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
3119 ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
3120 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
3121 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
3122 00 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
3123 31 6d 00 00 00 00 00 00 00 00 \
3125 NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered)
3126 tcp,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=fin tcp_csum:316d
3127 00000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
3128 00000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
3129 00000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
3130 00000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
3134 AT_SETUP([NX_PACKET_IN2])
3135 AT_KEYWORDS([ofp-print])
3136 AT_CHECK([ovs-ofctl ofp-print "
3137 01 04 0098 00000000 00002320 0000001e
3139 82 82 82 82 82 82 80 81 81 81 81 81 81 00 00 50
3140 08 00 45 00 00 28 00 00 00 00 00 06 32 05 53 53
3141 53 53 54 54 54 54 00 55 00 56 00 00 00 00 00 00 00000000
3145 0004 0010 00000000 fedcba9876543210
3147 0006 0010 80000408 5a5a5a5a5a5a5a5a
3148 0007 0009 0102030405 00000000000000
3151 NXT_PACKET_IN2 (xid=0x0): table_id=7 cookie=0xfedcba9876543210 total_len=64 metadata=0x5a5a5a5a5a5a5a5a (via action) data_len=48 buffer=0x00000114
3152 userdata=01.02.03.04.05
3153 ip,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=0
3157 AT_SETUP([NXT_SET_ASYNC_CONFIG])
3158 AT_KEYWORDS([ofp-print])
3159 dnl This message has bit 12 set for the PACKET_IN messages (master and slave).
3160 dnl Those aren't supported bits so they get silently ignored on decoding.
3161 AT_CHECK([ovs-ofctl ofp-print "\
3162 01 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
3163 00 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
3164 00 00 00 00 00 00 00 03 \
3166 NXT_SET_ASYNC_CONFIG (xid=0x0):
3168 PACKET_IN: no_match invalid_ttl
3169 PORT_STATUS: add delete
3173 REQUESTFORWARD: (off)
3176 PACKET_IN: no_match action invalid_ttl
3177 PORT_STATUS: add delete modify
3178 FLOW_REMOVED: idle hard
3181 REQUESTFORWARD: (off)
3185 AT_SETUP([OFPT_SET_ASYNC_CONFIG])
3186 AT_KEYWORDS([ofp-print])
3187 AT_CHECK([ovs-ofctl ofp-print "\
3188 05 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
3189 00 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
3190 00 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
3191 00 05 00 08 00 00 00 05 \
3193 OFPT_SET_ASYNC (OF1.4) (xid=0x2):
3196 PORT_STATUS: add modify
3197 FLOW_REMOVED: idle delete
3200 REQUESTFORWARD: (off)
3203 PACKET_IN: no_match invalid_ttl
3205 FLOW_REMOVED: delete group_delete meter_delete
3208 REQUESTFORWARD: (off)
3212 AT_SETUP([OFPT_SET_ASYNC_CONFIG - invalid mask - OF1.4])
3213 AT_KEYWORDS([ofp-print])
3214 AT_CHECK([ovs-ofctl ofp-print "\
3215 05 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 40 \
3216 00 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
3217 00 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
3218 00 05 00 08 00 00 00 05 \
3220 OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_INVALID***
3221 00000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 40 |...8...........@|
3222 00000010 00 01 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
3223 00000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
3224 00000030 00 05 00 08 00 00 00 05- |........ |
3226 AT_CHECK([sed 's/.*|//' stderr], [0],
3227 [bad value 0x40 for PACKET_IN (allowed mask 0x3f)
3231 AT_SETUP([OFPT_SET_ASYNC_CONFIG - unsupported configuration - OF1.4])
3232 AT_KEYWORDS([ofp-print])
3233 AT_CHECK([ovs-ofctl ofp-print "\
3234 05 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
3235 00 11 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
3236 00 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
3237 00 05 00 08 00 00 00 05\
3239 OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_UNSUPPORTED***
3240 00000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 05 |...8............|
3241 00000010 00 11 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
3242 00000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
3243 00000030 00 05 00 08 00 00 00 05- |........ |
3245 AT_CHECK([sed 's/.*|//' stderr], [0],
3246 [unknown async config property type 17
3250 AT_SETUP([NXT_SET_CONTROLLER_ID])
3251 AT_KEYWORDS([ofp-print])
3252 AT_CHECK([ovs-ofctl ofp-print "\
3253 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
3254 00 00 00 00 00 00 00 7b \
3256 NXT_SET_CONTROLLER_ID (xid=0x3): id=123
3260 AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
3261 AT_KEYWORDS([ofp-print])
3262 AT_CHECK([ovs-ofctl ofp-print "\
3263 01 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
3266 NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
3270 AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
3271 AT_KEYWORDS([ofp-print])
3272 AT_CHECK([ovs-ofctl ofp-print "\
3273 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
3275 NXT_FLOW_MONITOR_PAUSED (xid=0x3):
3279 AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
3280 AT_KEYWORDS([ofp-print])
3281 AT_CHECK([ovs-ofctl ofp-print "\
3282 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
3284 NXT_FLOW_MONITOR_RESUMED (xid=0x3):
3288 AT_SETUP([NXT_SET_FLOW_FORMAT])
3289 AT_KEYWORDS([ofp-print])
3290 AT_CHECK([ovs-ofctl ofp-print "\
3291 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
3294 NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
3298 # The flow is formatted with cls_rule_format() for the low-verbosity case.
3299 AT_SETUP([NXT_FLOW_MOD, low verbosity])
3300 AT_KEYWORDS([ofp-print])
3301 AT_CHECK([ovs-ofctl ofp-print "\
3302 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
3303 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
3304 ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
3305 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
3306 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
3307 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3309 NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
3313 # The flow is formatted with ofp10_match_to_string() for the
3314 # low-verbosity case.
3315 AT_SETUP([NXT_FLOW_MOD, high verbosity])
3316 AT_KEYWORDS([ofp-print])
3317 AT_CHECK([ovs-ofctl ofp-print "\
3318 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
3319 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
3320 ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
3321 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
3322 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
3323 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3325 NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) out_port:256 actions=load:0x5->NXM_NX_REG0[[]]
3329 AT_SETUP([NXT_GROUP_MOD add - OF1.0])
3330 AT_KEYWORDS([ofp-print])
3331 AT_CHECK([ovs-ofctl ofp-print "\
3332 01 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f \
3333 00 00 01 00 87 65 43 21 \
3334 00 60 00 00 ff ff ff ff \
3336 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
3337 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3339 00 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
3340 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02
3342 00 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
3343 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3344 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
3345 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
3346 00 00 00 00 00 00 00 07 \
3348 NXT_GROUP_MOD (xid=0x2):
3349 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3353 AT_SETUP([OFPT_GROUP_MOD - OF1.1])
3354 AT_KEYWORDS([ofp-print])
3355 AT_CHECK([ovs-ofctl ofp-print "\
3356 02 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
3357 00 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
3358 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
3359 00 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
3360 00 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
3361 00 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
3362 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3364 OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
3365 ADD group_id=2271560481,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
3369 AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
3370 AT_KEYWORDS([ofp-print])
3371 AT_CHECK([ovs-ofctl ofp-print "\
3372 06 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \
3373 00 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
3374 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
3375 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3376 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
3377 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
3378 00 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
3379 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3380 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3381 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
3382 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
3383 00 00 00 00 00 00 00 07 \
3385 OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
3386 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3390 AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
3391 AT_KEYWORDS([ofp-print])
3392 AT_CHECK([ovs-ofctl ofp-print "\
3393 06 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
3394 00 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
3395 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
3396 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3397 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
3398 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
3399 00 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
3400 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3401 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3403 OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
3404 INSERT_BUCKET command_bucket_id:first,group_id=2271560481,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3408 AT_SETUP([NXT_FLOW_REMOVED])
3409 AT_KEYWORDS([ofp-print])
3410 AT_CHECK([ovs-ofctl ofp-print "\
3411 01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
3412 00 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
3413 01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
3414 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
3415 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
3416 00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
3417 1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
3418 c0 a8 00 02 00 00 00 00 \
3420 NXT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2 reason=idle table_id=1 duration6.024s idle5 pkts1 bytes60
3424 AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
3425 AT_KEYWORDS([ofp-print])
3426 AT_CHECK([ovs-ofctl ofp-print "\
3427 01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
3428 01 00 00 00 00 00 00 00 \
3430 NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
3434 AT_SETUP([NXT_RESUME])
3435 AT_KEYWORDS([ofp-print])
3436 AT_CHECK([ovs-ofctl ofp-print "\
3437 01 04 0038 01020304 00002320 0000001c \
3438 0000 0012 ffffffffffff 102030405060 1234 000000000000 \
3439 0006 000a 00000002 fffd 000000000000
3441 NXT_RESUME (xid=0x1020304): total_len=14 in_port=CONTROLLER (via no_match) data_len=14 (unbuffered)
3442 vlan_tci=0x0000,dl_src=10:20:30:40:50:60,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x1234
3446 AT_SETUP([NXST_FLOW request])
3447 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3448 AT_CHECK([ovs-ofctl ofp-print "\
3449 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
3450 00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3452 NXST_FLOW request (xid=0x4):
3456 AT_SETUP([NXST_FLOW reply])
3457 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3458 AT_CHECK([ovs-ofctl ofp-print "\
3459 01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
3460 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
3461 02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
3462 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3463 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
3464 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
3465 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3466 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3467 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
3468 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
3469 00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
3470 00 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
3471 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3472 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
3473 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
3474 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3475 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
3476 00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
3477 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
3478 33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
3479 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3480 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
3481 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
3482 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3483 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3484 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
3485 14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
3486 00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
3487 00 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
3488 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3489 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
3490 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
3491 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3492 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
3493 00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
3494 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
3495 34 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
3496 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3497 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
3498 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
3499 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3500 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3501 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
3502 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
3503 00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
3504 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
3505 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3506 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
3507 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
3508 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3509 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
3510 00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
3511 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
3512 02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
3513 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3514 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
3515 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
3516 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3517 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3518 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
3519 14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
3520 00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
3521 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
3522 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3523 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
3524 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
3525 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3526 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
3527 00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
3528 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
3529 27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
3530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3531 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
3532 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
3533 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3534 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3535 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
3536 14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
3537 00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
3538 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
3539 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3540 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
3541 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
3542 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3543 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
3544 00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
3545 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
3546 0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
3547 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3548 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
3549 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
3550 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3551 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3552 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
3553 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
3554 00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
3555 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
3556 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3557 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
3558 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
3559 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3560 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
3561 00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
3562 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
3563 04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
3564 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
3565 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
3566 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
3567 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
3568 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3569 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
3570 14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
3571 00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
3572 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
3573 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
3574 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
3575 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
3576 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3577 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
3578 00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
3579 00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
3580 2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
3581 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
3582 00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
3583 00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3584 ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
3585 00 00 00 00 00 00 00 05 \
3586 00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
3587 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
3588 00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
3590 [[NXST_FLOW reply (xid=0x4):
3591 cookie=0x0, duration=1.048s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2535,tp_dst=0 actions=output:1
3592 cookie=0x0, duration=3.840s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, idle_age=2, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2532,tp_dst=0 actions=output:1
3593 cookie=0x0, duration=2.872s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, idle_age=4, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2533 actions=output:3
3594 cookie=0x0, duration=4.756s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, idle_age=0, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2531,tp_dst=0 actions=output:1
3595 cookie=0x0, duration=2.880s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, hard_timeout=10, idle_age=2, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2533,tp_dst=0 actions=output:1
3596 cookie=0x0, duration=5.672s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2530,tp_dst=0 actions=output:1
3597 cookie=0x0, duration=1.040s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2535 actions=output:3
3598 cookie=0x0, duration=1.952s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2534 actions=output:3
3599 cookie=0x0, duration=4.668s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2531 actions=output:3
3600 cookie=0x0, duration=3.752s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2532 actions=output:3
3601 cookie=0x0, duration=0.172s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2536,tp_dst=0 actions=output:1
3602 cookie=0x0, duration=5.624s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2530 actions=output:3
3603 cookie=0x0, duration=0.080s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2536 actions=output:3
3604 cookie=0x0, duration=1.960s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2534,tp_dst=0 actions=output:1
3605 cookie=0x0, duration=228.780s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
3606 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
3610 AT_SETUP([NXST_AGGREGATE request])
3611 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3612 AT_CHECK([ovs-ofctl ofp-print "\
3613 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
3614 00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3616 NXST_AGGREGATE request (xid=0x4):
3620 AT_SETUP([NXST_AGGREGATE reply])
3621 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3622 AT_CHECK([ovs-ofctl ofp-print "\
3623 01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
3624 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
3625 00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3627 NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3631 AT_SETUP([NXST_FLOW_MONITOR request])
3632 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3633 AT_CHECK([ovs-ofctl ofp-print "\
3634 01 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
3635 00 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
3636 00 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3638 NXST_FLOW_MONITOR request (xid=0x4):
3639 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3640 id=8192 flags=delete table=2 in_port=1
3644 AT_SETUP([NXST_FLOW_MONITOR reply])
3645 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3646 AT_CHECK([ovs-ofctl ofp-print "\
3647 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
3648 00 20 00 01 00 05 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
3649 00 00 00 02 00 01 00 00 \
3650 00 08 00 03 00 01 86 a0 \
3652 NXST_FLOW_MONITOR reply (xid=0x4):
3653 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3654 event=ABBREV xid=0x186a0
3659 AT_SETUP([OFPT_BUNDLE_CONTROL - atomic OPEN_REQUEST])
3660 AT_KEYWORDS([ofp-print bundle])
3661 AT_CHECK([ovs-ofctl ofp-print "\
3662 05 21 00 10 00 00 00 00 \
3663 00 00 00 01 00 00 00 01 \
3665 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3666 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3670 AT_SETUP([OFPT_BUNDLE_CONTROL - ordered OPEN_REQUEST])
3671 AT_KEYWORDS([ofp-print bundle])
3672 AT_CHECK([ovs-ofctl ofp-print "\
3673 05 21 00 10 00 00 00 00 \
3674 00 00 00 01 00 00 00 02 \
3676 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3677 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3681 AT_SETUP([OFPT_BUNDLE_CONTROL - atomic ordered OPEN_REQUEST])
3682 AT_KEYWORDS([ofp-print bundle])
3683 AT_CHECK([ovs-ofctl ofp-print "\
3684 05 21 00 10 00 00 00 00 \
3685 00 00 00 01 00 00 00 03 \
3687 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3688 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3692 AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
3693 AT_KEYWORDS([ofp-print bundle])
3694 AT_CHECK([ovs-ofctl ofp-print "\
3695 05 21 00 10 00 00 00 00 \
3696 00 00 00 01 00 01 00 01 \
3698 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3699 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3703 AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
3704 AT_KEYWORDS([ofp-print bundle])
3705 AT_CHECK([ovs-ofctl ofp-print "\
3706 05 21 00 10 00 00 00 00 \
3707 00 00 00 01 00 02 00 01 \
3709 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3710 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3714 AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3715 AT_KEYWORDS([ofp-print bundle])
3716 AT_CHECK([ovs-ofctl ofp-print "\
3717 05 21 00 10 00 00 00 00 \
3718 00 00 00 01 00 03 00 01 \
3720 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3721 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3725 AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3726 AT_KEYWORDS([ofp-print bundle])
3727 AT_CHECK([ovs-ofctl ofp-print "\
3728 05 21 00 10 00 00 00 00 \
3729 00 00 00 01 00 04 00 01 \
3731 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3732 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3736 AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3737 AT_KEYWORDS([ofp-print bundle])
3738 AT_CHECK([ovs-ofctl ofp-print "\
3739 05 21 00 10 00 00 00 00 \
3740 00 00 00 01 00 05 00 01 \
3742 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3743 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3747 AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3748 AT_KEYWORDS([ofp-print bundle])
3749 AT_CHECK([ovs-ofctl ofp-print "\
3750 05 21 00 10 00 00 00 00 \
3751 00 00 00 01 00 06 00 01 \
3753 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3754 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3758 AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3759 AT_KEYWORDS([ofp-print bundle])
3760 AT_CHECK([ovs-ofctl ofp-print "\
3761 05 21 00 10 00 00 00 00 \
3762 00 00 00 01 00 07 00 01 \
3764 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3765 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3769 AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
3770 AT_KEYWORDS([ofp-print bundle])
3771 AT_CHECK([ovs-ofctl ofp-print "\
3772 05 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
3773 05 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
3775 OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
3776 00000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
3777 00000010 05 00 00 08 00 00 00 01-00 00 00 00 00 00 00 00 |................|
3781 AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
3782 AT_KEYWORDS([ofp-print bundle])
3783 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
3784 05 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
3785 05 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
3787 OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
3788 00000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
3789 00000010 05 00 00 10 00 00 00 00-00 00 00 00 00 00 00 00 |................|
3791 ofp_bundle|WARN|OFPT_HELLO message not allowed inside OFPT14_BUNDLE_ADD_MESSAGE
3795 AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
3796 AT_KEYWORDS([ofp-print bundle])
3797 AT_CHECK([ovs-ofctl ofp-print "\
3798 05 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
3799 05 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
3800 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3801 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
3802 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
3803 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
3804 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
3805 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
3806 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
3807 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3809 OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3810 bundle_id=0x1 flags=atomic
3811 OFPT_FLOW_MOD (OF1.4) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
3815 AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
3816 AT_KEYWORDS([ofp-print bundle])
3817 AT_CHECK([ovs-ofctl ofp-print "\
3818 05 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
3819 05 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
3820 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
3821 00 00 00 08 00 00 00 01
3823 OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
3824 bundle_id=0x1 flags=atomic
3825 OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01
3832 AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - GROUP_MOD])
3833 AT_KEYWORDS([ofp-print bundle])
3834 AT_CHECK([ovs-ofctl ofp-print "\
3835 06 22 00 c8 00 00 00 03 00 00 00 01 00 00 00 01 \
3836 06 0f 00 b8 00 00 00 03 00 00 01 00 87 65 43 21 \
3837 00 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
3838 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
3839 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3840 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
3841 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
3842 00 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
3843 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3844 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3845 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
3846 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
3847 00 00 00 00 00 00 00 07 \
3849 OFPT_BUNDLE_ADD_MESSAGE (OF1.5) (xid=0x3):
3850 bundle_id=0x1 flags=atomic
3851 OFPT_GROUP_MOD (OF1.5) (xid=0x3):
3852 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3856 AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PACKET_OUT])
3857 AT_KEYWORDS([ofp-print bundle packet-out])
3858 AT_CHECK([ovs-ofctl ofp-print "\
3859 05 22 00 74 00 00 00 03 00 00 00 01 00 00 00 01 \
3860 05 0d 00 64 00 00 00 03 ff ff ff ff ff ff ff fe \
3861 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
3862 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
3863 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
3864 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
3865 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
3868 OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
3869 bundle_id=0x1 flags=atomic
3870 OFPT_PACKET_OUT (OF1.4) (xid=0x3): in_port=LOCAL actions=FLOOD data_len=60
3871 tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
3875 AT_SETUP([NXST_IPFIX_BRIDGE - request])
3876 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3877 AT_CHECK([ovs-ofctl ofp-print "\
3878 01 10 00 18 00 00 00 02 \
3879 ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00 \
3881 NXST_IPFIX_BRIDGE request (xid=0x2):
3885 AT_SETUP([NXST_IPFIX_BRIDGE - reply])
3886 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3887 AT_CHECK([ovs-ofctl ofp-print "\
3888 01 11 00 70 00 00 00 02 \
3889 ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00\
3890 00 00 00 00 00 00 00 01 \
3891 00 00 00 00 00 00 00 10 \
3892 00 00 00 00 00 00 00 78 \
3893 00 00 00 00 00 00 00 f0 \
3894 00 00 00 00 00 00 00 00 \
3895 00 00 00 00 00 00 00 a0 \
3896 00 00 00 00 00 00 00 02 \
3897 00 00 00 00 00 00 00 03 \
3898 00 00 00 00 00 00 00 04 \
3899 00 00 00 00 00 00 00 05 \
3900 00 00 00 00 00 00 00 00 \
3902 NXST_IPFIX_BRIDGE reply (xid=0x2):
3903 bridge ipfix: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3904 pkts errs=160, ipv4 errs=2, ipv6 errs=3, tx errs=5
3908 AT_SETUP([NXST_IPFIX_FLOW - request])
3909 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3910 AT_CHECK([ovs-ofctl ofp-print "\
3911 01 10 00 18 00 00 00 02 \
3912 ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00 \
3914 NXST_IPFIX_FLOW request (xid=0x2):
3918 AT_SETUP([NXST_IPFIX_FLOW - reply])
3919 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3920 AT_CHECK([ovs-ofctl ofp-print "\
3921 01 11 00 C8 00 00 00 02 \
3922 ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00\
3923 00 00 00 00 00 00 00 01 \
3924 00 00 00 00 00 00 00 10 \
3925 00 00 00 00 00 00 00 78 \
3926 00 00 00 00 00 00 00 f0 \
3927 00 00 00 00 00 00 00 00 \
3928 00 00 00 00 00 00 00 a0 \
3929 00 00 00 10 00 00 00 02 \
3930 00 00 00 00 00 00 00 03 \
3931 00 00 00 00 00 00 00 04 \
3932 00 00 00 00 00 00 00 05 \
3933 00 00 00 01 00 00 00 00 \
3934 00 00 00 00 00 00 00 01 \
3935 00 00 00 00 00 00 00 10 \
3936 00 00 00 00 00 00 00 78 \
3937 00 00 00 00 00 00 00 f0 \
3938 00 00 00 00 00 00 00 00 \
3939 00 00 00 00 00 00 00 a0 \
3940 00 00 00 10 00 00 00 02 \
3941 00 00 00 00 00 00 00 03 \
3942 00 00 00 00 00 00 00 04 \
3943 00 00 00 00 00 00 00 05 \
3944 00 00 00 02 00 00 00 00 \
3946 NXST_IPFIX_FLOW reply (xid=0x2): 2 ids
3947 id 1: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3948 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
3949 id 2: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3950 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
3954 AT_SETUP([NXT_CT_FLUSH_ZONE])
3955 AT_KEYWORDS([ofp-print])
3956 AT_CHECK([ovs-ofctl ofp-print "\
3957 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 1d \
3958 00 00 00 00 00 00 00 0d \
3960 NXT_CT_FLUSH_ZONE (xid=0x3): zone_id=13