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
51 AT_SETUP([OFPT_HELLO with extra data])
52 AT_KEYWORDS([ofp-print])
53 AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
56 00000000 65 78 74 72 61 20 64 61-74 61 0a |extra data. |
60 dnl OFPT_ERROR tests are in ofp-errors.at.
62 AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
63 AT_KEYWORDS([ofp-print])
64 AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
65 OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
69 AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
70 AT_KEYWORDS([ofp-print])
71 AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
72 OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
73 00000000 25 53 54 1a 9d |%ST.. |
77 AT_SETUP([OFPT_ECHO_REPLY, empty payload])
78 AT_KEYWORDS([ofp-print])
79 AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
80 OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
84 AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
85 AT_KEYWORDS([ofp-print])
86 AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
87 OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
88 00000000 a3 30 ef af 9e |.0... |
92 AT_SETUP([OFPT_FEATURES_REQUEST])
93 AT_KEYWORDS([ofp-print])
94 AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
95 OFPT_FEATURES_REQUEST (xid=0x1):
99 AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
100 AT_KEYWORDS([ofp-print])
101 AT_CHECK([ovs-ofctl ofp-print "\
102 01 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
103 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
104 ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
105 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
106 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
108 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
110 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
111 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
113 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
114 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
117 OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
118 n_tables:2, n_buffers:256
119 capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
120 actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
121 1(eth1): addr:50:54:00:00:00:02
124 current: 100MB-FD AUTO_NEG
125 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
126 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
127 speed: 100 Mbps now, 100 Mbps max
128 2(eth2): addr:50:54:00:00:00:03
131 current: 100MB-FD AUTO_NEG
132 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
133 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
134 speed: 100 Mbps now, 100 Mbps max
135 3(eth0): addr:50:54:00:00:00:01
138 current: 100MB-FD AUTO_NEG
139 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
140 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
141 speed: 100 Mbps now, 100 Mbps max
142 LOCAL(br0): addr:50:54:00:00:00:01
145 speed: 100 Mbps now, 100 Mbps max
149 AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
150 AT_KEYWORDS([ofp-print])
151 AT_CHECK([ovs-ofctl ofp-print "\
152 01 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
153 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
154 ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
155 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
156 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
158 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
160 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
161 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
163 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
164 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165 00 00 02 08 00 00 02 8f 00 00 02 8f \
167 ***decode error: OFPBRC_BAD_LEN***
168 00000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
169 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
170 00000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
171 00000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
172 00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
173 00000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
174 00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
175 00000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
176 00000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
177 00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
178 000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
179 000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
180 000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
181 000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
183 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
184 received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
188 AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
189 AT_KEYWORDS([ofp-print])
190 AT_CHECK([ovs-ofctl ofp-print "\
191 02 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
192 00 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \
193 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
194 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
195 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
196 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
197 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
198 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
199 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
200 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
202 OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
203 n_tables:2, n_buffers:256
204 capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
205 3(eth0): addr:50:54:00:00:00:01
208 current: 100MB-FD AUTO_NEG
209 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
210 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
211 speed: 100 Mbps now, 100 Mbps max
212 LOCAL(br0): addr:50:54:00:00:00:01
215 speed: 100 Mbps now, 100 Mbps max
219 AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
220 AT_KEYWORDS([ofp-print])
221 AT_CHECK([ovs-ofctl ofp-print "\
222 02 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
223 00 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \
224 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
225 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
226 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
227 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
228 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
229 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
230 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
232 ***decode error: OFPBRC_BAD_LEN***
233 00000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
234 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 ff ff |................|
235 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
236 00000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
237 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
238 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
239 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
240 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
241 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
243 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
244 received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
248 AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
249 AT_KEYWORDS([ofp-print])
250 AT_CHECK([ovs-ofctl ofp-print "\
251 03 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
252 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 06 ff \
253 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
254 62 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
255 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
256 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
257 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
258 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
259 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
260 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
262 OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
263 n_tables:255, n_buffers:256
264 capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
265 3(eth0): addr:50:54:00:00:00:01
268 current: 100MB-FD AUTO_NEG
269 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
270 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
271 speed: 100 Mbps now, 100 Mbps max
272 LOCAL(br0): addr:50:54:00:00:00:01
275 speed: 100 Mbps now, 100 Mbps max
279 AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
280 AT_KEYWORDS([ofp-print])
281 AT_CHECK([ovs-ofctl ofp-print "\
282 03 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
283 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 06 ff \
284 ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
285 62 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
286 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
287 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
288 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
289 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
290 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
292 OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
293 (***truncated to 144 bytes from 160***)
294 00000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
295 00000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 06 ff |...........w....|
296 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
297 00000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
298 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
299 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
300 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
301 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
302 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
304 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
308 AT_SETUP([OFPT_GET_CONFIG_REQUEST])
309 AT_KEYWORDS([ofp-print])
310 AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
311 OFPT_GET_CONFIG_REQUEST (xid=0x1):
315 AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
316 AT_KEYWORDS([ofp-print])
317 AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
318 OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
323 AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
324 AT_KEYWORDS([ofp-print])
325 AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
326 OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
330 AT_SETUP([OFPT_PACKET_IN - OF1.0])
331 AT_KEYWORDS([ofp-print])
332 AT_CHECK([ovs-ofctl ofp-print "\
333 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
334 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
335 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
336 c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
337 50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
339 OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
340 priority:0,tunnel:0,metadata:0,in_port:0000,tci(0) mac(50:54:00:00:00:05->50:54:00:00:00:06) type:0800 proto:6 tos:0 ttl:64 ip(192.168.0.1->192.168.0.2) port(10031->0) tcp_csum:26e8
344 AT_SETUP([OFPT_PACKET_IN - OF1.2])
345 AT_KEYWORDS([ofp-print])
346 AT_CHECK([ovs-ofctl ofp-print "\
347 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
348 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
349 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
350 00 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
351 00 00 00 23 20 83 c1 5f 00 00 00 00 \
353 OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
354 priority:0,tunnel:0,metadata:0,in_port:0000,tci(0) mac(00:23:20:83:c1:5f->ff:ff:ff:ff:ff:ff) type:8035 proto:0 tos:0 ttl:0 ip(0.0.0.0->0.0.0.0)
358 AT_SETUP([OFPT_FLOW_REMOVED])
359 AT_KEYWORDS([ofp-print])
360 AT_CHECK([ovs-ofctl ofp-print "\
361 01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
362 00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
363 00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
364 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
365 30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
366 00 00 00 00 00 00 00 3c \
368 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,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.82s idle5 pkts1 bytes60
372 AT_SETUP([OFPT_PORT_STATUS - OF1.0])
373 AT_KEYWORDS([ofp-print])
374 AT_CHECK([ovs-ofctl ofp-print "\
375 01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
376 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
377 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
378 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
380 OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
383 current: 100MB-FD AUTO_NEG
384 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
385 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
386 speed: 100 Mbps now, 100 Mbps max
390 AT_SETUP([OFPT_PORT_STATUS - OF1.1])
391 AT_KEYWORDS([ofp-print])
392 AT_CHECK([ovs-ofctl ofp-print "\
393 02 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
394 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
395 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
396 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
397 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
399 OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
402 current: 100MB-FD AUTO_NEG
403 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
404 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
405 speed: 100 Mbps now, 100 Mbps max
409 AT_SETUP([OFPT_PACKET_OUT - OF1.0])
410 AT_KEYWORDS([ofp-print])
411 AT_CHECK([ovs-ofctl ofp-print "\
412 01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
413 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
414 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
415 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
416 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
419 OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
423 AT_SETUP([OFPT_PACKET_OUT - OF1.1])
424 AT_KEYWORDS([ofp-print])
425 AT_CHECK([ovs-ofctl ofp-print "\
426 03 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
427 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
428 05 dc 00 00 00 00 00 00 \
430 OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
434 # The flow is formatted with cls_rule_format() for the low-verbosity case.
435 AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
436 AT_KEYWORDS([ofp-print])
437 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
438 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
439 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
440 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
441 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
442 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
444 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 idle:5 buf:0x10e out_port:0 actions=output:3
446 ofp_util|INFO|normalization changed ofp_match, details:
447 ofp_util|INFO| pre: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
448 ofp_util|INFO|post: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2
452 # The flow is formatted with cls_rule_format() for the low-verbosity case.
453 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
454 AT_KEYWORDS([ofp-print])
455 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
456 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
457 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
458 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
459 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
460 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
461 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
462 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
463 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
464 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
466 OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:255 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 actions=output:3
471 # The flow is formatted with ofp10_match_to_string() for the
472 # high-verbosity case.
473 AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
474 AT_KEYWORDS([ofp-print])
475 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
476 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
477 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
478 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
479 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
480 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
482 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
484 ofp_util|INFO|normalization changed ofp_match, details:
485 ofp_util|INFO| pre: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
486 ofp_util|INFO|post: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2
490 # The flow is formatted with cls_rule_format() for the low-verbosity case.
491 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
492 AT_KEYWORDS([ofp-print])
493 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
494 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
495 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
496 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
497 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
498 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
499 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
500 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
501 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
502 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
504 OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:255 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 actions=output:3
509 AT_SETUP([OFPT_PORT_MOD - OF1.0])
510 AT_KEYWORDS([ofp-print])
511 AT_CHECK([ovs-ofctl ofp-print "\
512 01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
513 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
515 OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
522 AT_SETUP([OFPT_PORT_MOD - OF1.1])
523 AT_KEYWORDS([ofp-print])
524 AT_CHECK([ovs-ofctl ofp-print "\
525 02 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
526 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
527 00 00 00 00 00 00 00 00 \
529 OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
536 AT_SETUP([OFPST_DESC request])
537 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
538 AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
539 OFPST_DESC request (xid=0x1):
543 AT_SETUP([OFPST_DESC reply])
544 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
545 AT_CHECK([ovs-ofctl ofp-print "\
546 01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
547 72 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
548 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
549 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
551 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
552 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
553 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
554 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
555 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
556 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
557 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
558 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
559 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
561 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
562 00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
563 20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
564 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
565 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
566 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
567 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
568 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
569 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
571 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
572 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
573 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
574 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
575 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
576 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
577 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
578 00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
579 30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
581 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
582 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
583 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
584 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
585 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
586 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
587 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
588 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
589 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
591 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
592 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
593 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
594 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
595 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
596 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
597 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
598 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
599 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
601 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
602 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
603 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
604 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
605 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
606 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
607 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
608 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
611 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
612 00 00 00 00 00 00 00 00 00 00 00 00 \
614 OFPST_DESC reply (xid=0x1):
615 Manufacturer: Nicira, Inc.
616 Hardware: Open vSwitch
623 AT_SETUP([OFPST_FLOW request])
624 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
625 AT_CHECK([ovs-ofctl ofp-print "\
626 01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
627 ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
628 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
629 00 00 00 00 ff 00 ff ff \
631 OFPST_FLOW request (xid=0x4): @&t@
635 AT_SETUP([OFPST_FLOW reply])
636 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
637 AT_CHECK([ovs-ofctl ofp-print "\
638 01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
639 00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
640 00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
641 c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
642 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
643 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
644 00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
645 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
646 00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
647 c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
648 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
649 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
650 00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
651 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
652 00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
653 c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
654 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
655 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
656 00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
657 00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
658 00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
659 c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
660 80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
661 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
662 00 00 04 fa 00 00 00 08 00 01 00 00 \
663 00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
664 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
665 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
666 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
667 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
668 00 00 00 00 00 00 00 00 \
670 OFPST_FLOW reply (xid=0x4):
671 cookie=0x0, duration=4.2s, 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,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1
672 cookie=0x0, duration=8.9s, 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
673 cookie=0x0, duration=4.28s, 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
674 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
675 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
679 AT_SETUP([OFPST_AGGREGATE request])
680 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
681 AT_CHECK([ovs-ofctl ofp-print "\
682 01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
683 ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
684 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
685 00 00 00 00 ff 00 ff ff \
687 OFPST_AGGREGATE request (xid=0x4): @&t@
691 AT_SETUP([OFPST_AGGREGATE reply])
692 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
693 AT_CHECK([ovs-ofctl ofp-print "\
694 01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
695 00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
698 OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
702 AT_SETUP([OFPST_TABLE request])
703 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
704 AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
705 OFPST_TABLE request (xid=0x1):
709 AT_SETUP([OFPST_TABLE reply])
710 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
711 AT_CHECK([ovs-ofctl ofp-print "\
712 01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
713 63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
714 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
715 00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
716 00 00 00 00 00 00 00 00 00 00 00 00 \
718 OFPST_TABLE reply (xid=0x1): 1 tables
719 0: classifier: wild=0x3fffff, max=1048576, active=11
724 AT_SETUP([OFPST_PORT request])
725 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
726 AT_CHECK([ovs-ofctl ofp-print "\
727 01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
730 OFPST_PORT request (xid=0x1): port_no=65535
734 AT_SETUP([OFPST_PORT reply])
735 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
736 AT_CHECK([ovs-ofctl ofp-print "\
737 01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
738 00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
739 00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
740 00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
741 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
742 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
743 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
744 00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
745 00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
746 00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
747 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
748 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
749 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
750 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
751 00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
752 00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
753 00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
754 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
755 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
756 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
757 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
758 00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
759 00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
761 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
762 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
763 00 00 00 00 00 00 00 00 00 00 00 00 \
765 OFPST_PORT reply (xid=0x1): 4 ports
766 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
767 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
768 port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
769 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
770 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
771 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
772 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
773 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
777 AT_SETUP([OFPST_QUEUE request])
778 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
779 AT_CHECK([ovs-ofctl ofp-print "\
780 01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
783 OFPST_QUEUE request (xid=0x1):port=ALL queue=ALL
787 AT_SETUP([OFPST_QUEUE reply])
788 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
789 AT_CHECK([ovs-ofctl ofp-print "\
790 01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
791 00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
792 00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
793 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
794 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
795 00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
796 00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
797 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
798 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
799 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
800 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
801 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
802 00 00 00 00 00 00 00 00 00 00 00 00 \
804 OFPST_QUEUE reply (xid=0x1): 6 queues
805 port 3 queue 1: bytes=302, pkts=1, errors=0
806 port 3 queue 2: bytes=0, pkts=0, errors=0
807 port 2 queue 1: bytes=2100, pkts=20, errors=0
808 port 2 queue 2: bytes=0, pkts=0, errors=0
809 port 1 queue 1: bytes=0, pkts=0, errors=0
810 port 1 queue 2: bytes=0, pkts=0, errors=0
814 AT_SETUP([OFPST_PORT_DESC request - OF1.0])
815 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
816 AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
817 OFPST_PORT_DESC request (xid=0x1):
821 AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
822 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
823 AT_CHECK([ovs-ofctl ofp-print "\
824 01 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
825 00 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
826 00 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
827 00 00 02 8f 00 00 02 8f 00 00 00 00 \
829 OFPST_PORT_DESC reply (xid=0x0):
830 3(eth0): addr:50:54:00:00:00:01
833 current: 100MB-FD AUTO_NEG
834 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
835 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
836 speed: 100 Mbps now, 100 Mbps max
840 AT_SETUP([OFPT_BARRIER_REQUEST])
841 AT_KEYWORDS([ofp-print])
842 AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
843 OFPT_BARRIER_REQUEST (xid=0x1):
847 AT_SETUP([OFPT_BARRIER_REPLY])
848 AT_KEYWORDS([ofp-print])
849 AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
850 OFPT_BARRIER_REPLY (xid=0x1):
854 AT_SETUP([NXT_ROLE_REQUEST])
855 AT_KEYWORDS([ofp-print])
856 AT_CHECK([ovs-ofctl ofp-print "\
857 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
860 NXT_ROLE_REQUEST (xid=0x2): role=master
864 AT_SETUP([NXT_ROLE_REPLY])
865 AT_KEYWORDS([ofp-print])
866 AT_CHECK([ovs-ofctl ofp-print "\
867 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
870 NXT_ROLE_REPLY (xid=0x2): role=slave
874 AT_SETUP([NXT_SET_PACKET_IN])
875 AT_KEYWORDS([ofp-print])
876 AT_CHECK([ovs-ofctl ofp-print "\
877 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
880 NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
884 AT_SETUP([NXT_PACKET_IN])
885 AT_KEYWORDS([ofp-print])
886 AT_CHECK([ovs-ofctl ofp-print "\
887 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
888 ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
889 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
890 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
891 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
892 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
893 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
894 00 00 ff ff 00 00 00 00 00 00 82 82 82 82 82 82 \
895 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
896 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
897 00 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \
898 31 6d 00 00 00 00 00 00 00 00 \
900 NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a00005a5a0000/0xffff0000ffff0000 reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
901 priority:0,tunnel:0,metadata:0,in_port:0000,tci(vlan:80,pcp:0) mac(80:81:81:81:81:81->82:82:82:82:82:82) type:0800 proto:6 tos:0 ttl:0 ip(83.83.83.83->84.84.84.84) port(85->86) tcp_csum:316d
905 AT_SETUP([NXT_SET_ASYNC_CONFIG])
906 AT_KEYWORDS([ofp-print])
907 AT_CHECK([ovs-ofctl ofp-print "\
908 01 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
909 00 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
910 00 00 00 00 00 00 00 03 \
912 NXT_SET_ASYNC_CONFIG (xid=0x0):
914 PACKET_IN: no_match invalid_ttl 12
915 PORT_STATUS: add delete
919 PACKET_IN: no_match action invalid_ttl 12
920 PORT_STATUS: add delete modify
921 FLOW_REMOVED: idle hard
925 AT_SETUP([NXT_SET_CONTROLLER_ID])
926 AT_KEYWORDS([ofp-print])
927 AT_CHECK([ovs-ofctl ofp-print "\
928 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
929 00 00 00 00 00 00 00 7b \
931 NXT_SET_CONTROLLER_ID (xid=0x3): id=123
935 AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
936 AT_KEYWORDS([ofp-print])
937 AT_CHECK([ovs-ofctl ofp-print "\
938 01 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
941 NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
945 AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
946 AT_KEYWORDS([ofp-print])
947 AT_CHECK([ovs-ofctl ofp-print "\
948 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
950 NXT_FLOW_MONITOR_PAUSED (xid=0x3):
954 AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
955 AT_KEYWORDS([ofp-print])
956 AT_CHECK([ovs-ofctl ofp-print "\
957 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
959 NXT_FLOW_MONITOR_RESUMED (xid=0x3):
963 AT_SETUP([NXT_SET_FLOW_FORMAT])
964 AT_KEYWORDS([ofp-print])
965 AT_CHECK([ovs-ofctl ofp-print "\
966 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
969 NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
973 # The flow is formatted with cls_rule_format() for the low-verbosity case.
974 AT_SETUP([NXT_FLOW_MOD, low verbosity])
975 AT_KEYWORDS([ofp-print])
976 AT_CHECK([ovs-ofctl ofp-print "\
977 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
978 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
979 ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
980 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
981 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
982 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
984 NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
988 # The flow is formatted with ofp10_match_to_string() for the
989 # low-verbosity case.
990 AT_SETUP([NXT_FLOW_MOD, high verbosity])
991 AT_KEYWORDS([ofp-print])
992 AT_CHECK([ovs-ofctl ofp-print "\
993 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
994 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
995 ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
996 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
997 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
998 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1000 NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) out_port:256 actions=load:0x5->NXM_NX_REG0[[]]
1004 AT_SETUP([NXT_FLOW_REMOVED])
1005 AT_KEYWORDS([ofp-print])
1006 AT_CHECK([ovs-ofctl ofp-print "\
1007 01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
1008 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \
1009 01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
1010 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1011 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1012 00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
1013 1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
1014 c0 a8 00 02 00 00 00 00 \
1016 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,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2 reason=idle duration6.024s idle5 pkts1 bytes60
1020 AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
1021 AT_KEYWORDS([ofp-print])
1022 AT_CHECK([ovs-ofctl ofp-print "\
1023 01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
1024 01 00 00 00 00 00 00 00 \
1026 NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
1030 AT_SETUP([NXST_FLOW request])
1031 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1032 AT_CHECK([ovs-ofctl ofp-print "\
1033 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
1034 00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1036 NXST_FLOW request (xid=0x4): @&t@
1040 AT_SETUP([NXST_FLOW reply])
1041 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1042 AT_CHECK([ovs-ofctl ofp-print "\
1043 01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
1044 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
1045 02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1046 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1047 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1048 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1049 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1050 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1051 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
1052 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
1053 00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
1054 00 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
1055 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1056 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1057 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1058 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1059 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1060 00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
1061 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
1062 33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
1063 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1064 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1065 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1066 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1067 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1068 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1069 14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
1070 00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
1071 00 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
1072 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1073 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1074 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1075 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1076 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1077 00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
1078 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
1079 34 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
1080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1081 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1082 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1083 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1084 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1085 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
1086 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
1087 00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
1088 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1089 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1090 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1091 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1092 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1093 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1094 00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
1095 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
1096 02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1097 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1098 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1099 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1100 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1101 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1102 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1103 14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
1104 00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
1105 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1106 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1107 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
1108 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
1109 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1110 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
1111 00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
1112 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
1113 27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1114 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1115 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1116 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1117 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1118 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1119 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1120 14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
1121 00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
1122 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1123 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1124 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
1125 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
1126 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1127 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
1128 00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
1129 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
1130 0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1131 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1132 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1133 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1134 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1135 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1136 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
1137 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
1138 00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
1139 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1140 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1141 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
1142 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
1143 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1144 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
1145 00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
1146 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
1147 04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1148 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1149 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1150 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1151 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1152 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1153 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1154 14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
1155 00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
1156 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1157 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1158 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1159 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1160 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1161 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1162 00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
1163 00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
1164 2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
1165 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1166 00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
1167 00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
1168 ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
1169 00 00 00 00 00 00 00 05 \
1170 00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
1171 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1172 00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
1174 [[NXST_FLOW reply (xid=0x4):
1175 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
1176 cookie=0x0, duration=3.84s, 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
1177 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
1178 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
1179 cookie=0x0, duration=2.88s, 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
1180 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
1181 cookie=0x0, duration=1.04s, 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
1182 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
1183 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
1184 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
1185 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
1186 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
1187 cookie=0x0, duration=0.08s, 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
1188 cookie=0x0, duration=1.96s, 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
1189 cookie=0x0, duration=228.78s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
1190 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
1194 AT_SETUP([NXST_AGGREGATE request])
1195 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1196 AT_CHECK([ovs-ofctl ofp-print "\
1197 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
1198 00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1200 NXST_AGGREGATE request (xid=0x4): @&t@
1204 AT_SETUP([NXST_AGGREGATE reply])
1205 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1206 AT_CHECK([ovs-ofctl ofp-print "\
1207 01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
1208 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
1209 00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
1211 NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
1215 AT_SETUP([NXST_FLOW_MONITOR request])
1216 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1217 AT_CHECK([ovs-ofctl ofp-print "\
1218 01 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
1219 00 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
1220 00 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
1222 NXST_FLOW_MONITOR request (xid=0x4):
1223 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
1224 id=8192 flags=delete table=2 in_port=1
1228 AT_SETUP([NXST_FLOW_MONITOR reply])
1229 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1230 AT_CHECK([ovs-ofctl ofp-print "\
1231 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
1232 00 20 00 01 00 04 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
1233 00 00 00 02 00 01 00 00 \
1234 00 08 00 03 00 01 86 a0 \
1236 NXST_FLOW_MONITOR reply (xid=0x4):
1237 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
1238 event=ABBREV xid=0x186a0