Fix handling of OFPP_ANY in OpenFlow 1.1 and later.
[sliver-openvswitch.git] / tests / ofp-print.at
1 AT_BANNER([ofp-print])
2
3 AT_SETUP([empty])
4 AT_KEYWORDS([ofp-print])
5 AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6 ])
7 AT_CLEANUP
8
9 AT_SETUP([too short])
10 AT_KEYWORDS([ofp-print])
11 AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12 OpenFlow packet too short (only 2 bytes):
13 00000000  aa bb                                           |..              |
14 ])
15 AT_CLEANUP
16
17 AT_SETUP([wrong OpenFlow version])
18 AT_KEYWORDS([ofp-print])
19 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20   [0], [dnl
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)
24 ])
25 AT_CLEANUP
26
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-                        |........        |
32 ])
33 AT_CLEANUP
34
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      |
40 ])
41 # "
42 AT_CLEANUP
43
44 AT_SETUP([OFPT_HELLO - ordinary])
45 AT_KEYWORDS([ofp-print])
46 AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47 OFPT_HELLO (xid=0x0):
48  version bitmap: 0x01
49 ])
50 AT_CLEANUP
51
52 AT_SETUP([OFPT_HELLO with extra data])
53 AT_KEYWORDS([ofp-print])
54 AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
55 [dnl
56 OFPT_HELLO (xid=0x0):
57  version bitmap: 0x01
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.             |
61 ])
62 AT_CLEANUP
63
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],
67 [dnl
68 OFPT_HELLO (xid=0x0):
69  version bitmap: 0x04, 0x05, 0x06, 0x07
70 ])
71 AT_CLEANUP
72
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],
78 [dnl
79 OFPT_HELLO (xid=0x0):
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     |
84 ])
85 AT_CLEANUP
86
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],
90 [dnl
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
93 ])
94 AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0],
95 [dnl
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
98 ])
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],
100 [dnl
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
103 ])
104 AT_CLEANUP
105
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):
111  version bitmap: 0x01
112  unknown data in hello:
113 00000000  01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................|
114 ], [dnl
115 ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
116 ])
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-                        |........        |
124 ], [dnl
125 ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
126 ])
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
131 ], [dnl
132 ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
133 ])
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):
137  version bitmap: 0x01
138  unknown data in hello:
139 00000000  01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................|
140 ], [dnl
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)
143 ])
144 AT_CLEANUP
145
146 dnl OFPT_ERROR tests are in ofp-errors.at.
147
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
152 ])
153 AT_CLEANUP
154
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..           |
160 ])
161 AT_CLEANUP
162
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
167 ])
168 AT_CLEANUP
169
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...           |
175 ])
176 AT_CLEANUP
177
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):
182 ])
183 AT_CLEANUP
184
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 \
202 "], [0], [dnl
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 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
207  1(eth1): addr:50:54:00:00:00:02
208      config:     0
209      state:      0
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
215      config:     0
216      state:      0
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
222      config:     0
223      state:      0
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
229      config:     PORT_DOWN
230      state:      LINK_DOWN
231      speed: 0 Mbps now, 0 Mbps max
232 ])
233 AT_CLEANUP
234
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 \
252 "], [0], [dnl
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             |............    |
268 ], [stderr])
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)
271 ])
272 AT_CLEANUP
273
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 ff ff \
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 \
287 "], [0], [dnl
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
292      config:     0
293      state:      0
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
299      config:     PORT_DOWN
300      state:      LINK_DOWN
301      speed: 100 Mbps now, 100 Mbps max
302 ])
303 AT_CLEANUP
304
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 ff ff \
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 \
317 "], [0], [dnl
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 ff ff |................|
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 |.......... ...@{:@.|
328 ], [stderr])
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)
331 ])
332 AT_CLEANUP
333
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 06 ff \
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 \
347 "], [0], [dnl
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
352      config:     0
353      state:      0
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
359      config:     PORT_DOWN
360      state:      LINK_DOWN
361      speed: 100 Mbps now, 100 Mbps max
362 ])
363 AT_CLEANUP
364
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 06 ff \
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 \
377 "], [0], [dnl
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 06 ff |...........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 |.......... ...@{:@.|
389 ], [stderr])
390 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
391 ])
392 AT_CLEANUP
393
394 AT_SETUP([OFPT_GET_CONFIG_REQUEST])
395 AT_KEYWORDS([ofp-print])
396 AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
397 OFPT_GET_CONFIG_REQUEST (xid=0x1):
398 ])
399 AT_CLEANUP
400
401 AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
402 AT_KEYWORDS([ofp-print])
403 AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
404 OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
405 ])
406 AT_CLEANUP
407
408
409 AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
410 AT_KEYWORDS([ofp-print])
411 AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
412 OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
413 ])
414 AT_CLEANUP
415
416 AT_SETUP([OFPT_PACKET_IN - OF1.0])
417 AT_KEYWORDS([ofp-print])
418 AT_CHECK([ovs-ofctl ofp-print "\
419 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
420 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
421 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
422 c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
423 50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
424 "], [0], [dnl
425 OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
426 priority=0,tcp,metadata=0,in_port=0,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_csum:26e8
427 ])
428 AT_CLEANUP
429
430 AT_SETUP([OFPT_PACKET_IN - OF1.2])
431 AT_KEYWORDS([ofp-print])
432 AT_CHECK([ovs-ofctl ofp-print "\
433 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
434 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
435 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
436 00 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
437 00 00 00 23 20 83 c1 5f 00 00 00 00 \
438 "], [0], [dnl
439 OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
440 priority=0,rarp,metadata=0,in_port=0,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
441 ])
442 AT_CLEANUP
443
444 AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
445 AT_KEYWORDS([ofp-print])
446 AT_CHECK([ovs-ofctl ofp-print "\
447 01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
448 00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
449 00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
450 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
451 30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
452 00 00 00 00 00 00 00 3c \
453 "], [0], [dnl
454 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.82s idle5 pkts1 bytes60
455 ])
456 AT_CLEANUP
457
458 AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
459 AT_KEYWORDS([ofp-print])
460 AT_CHECK([ovs-ofctl ofp-print "\
461 03 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
462 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
463 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
464 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
465 OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.01s idle60 hard120 pkts1234567 bytes1869134438
466 ])
467 AT_CLEANUP
468
469 AT_SETUP([OFPT_PORT_STATUS - OF1.0])
470 AT_KEYWORDS([ofp-print])
471 AT_CHECK([ovs-ofctl ofp-print "\
472 01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
473 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
474 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
475 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
476 "], [0], [dnl
477 OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
478      config:     PORT_DOWN
479      state:      LINK_DOWN
480      current:    100MB-FD AUTO_NEG
481      advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
482      supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
483      speed: 100 Mbps now, 100 Mbps max
484 ])
485 AT_CLEANUP
486
487 AT_SETUP([OFPT_PORT_STATUS - OF1.1])
488 AT_KEYWORDS([ofp-print])
489 AT_CHECK([ovs-ofctl ofp-print "\
490 02 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
491 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
492 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
493 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
494 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
495 "], [0], [dnl
496 OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
497      config:     0
498      state:      0
499      current:    100MB-FD AUTO_NEG
500      advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
501      supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
502      speed: 100 Mbps now, 100 Mbps max
503 ])
504 AT_CLEANUP
505
506 AT_SETUP([OFPT_PACKET_OUT - OF1.0])
507 AT_KEYWORDS([ofp-print])
508 AT_CHECK([ovs-ofctl ofp-print "\
509 01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
510 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
511 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
512 b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
513 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
514 00 00 00 00 \
515 "], [0], [dnl
516 OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
517 ])
518 AT_CLEANUP
519
520 AT_SETUP([OFPT_PACKET_OUT - OF1.1])
521 AT_KEYWORDS([ofp-print])
522 AT_CHECK([ovs-ofctl ofp-print "\
523 03 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
524 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
525 05 dc 00 00 00 00 00 00 \
526 "], [0], [dnl
527 OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
528 ])
529 AT_CLEANUP
530
531 # The flow is formatted with cls_rule_format() for the low-verbosity case.
532 AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
533 AT_KEYWORDS([ofp-print])
534 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
535 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
536 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
537 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
538 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
539 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
540 " 2], [0], [dnl
541 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
542 ], [dnl
543 ofp_util|INFO|normalization changed ofp_match, details:
544 ofp_util|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
545 ofp_util|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
546 ])
547 AT_CLEANUP
548
549 # The flow is formatted with cls_rule_format() for the low-verbosity case.
550 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
551 AT_KEYWORDS([ofp-print])
552 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
553 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
554 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
555 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
556 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
557 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
558 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
559 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
560 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
561 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
562 " 2], [0], [dnl
563 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,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
564 ], [dnl
565 ])
566 AT_CLEANUP
567
568 # The flow is formatted with ofp10_match_to_string() for the
569 # high-verbosity case.
570 AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
571 AT_KEYWORDS([ofp-print])
572 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
573 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
574 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
575 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
576 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
577 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
578 " 3], [0], [dnl
579 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
580 ], [dnl
581 ofp_util|INFO|normalization changed ofp_match, details:
582 ofp_util|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
583 ofp_util|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
584 ])
585 AT_CLEANUP
586
587 # The flow is formatted with cls_rule_format() for the low-verbosity case.
588 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
589 AT_KEYWORDS([ofp-print])
590 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
591 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
592 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
593 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
594 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
595 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
596 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
597 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
598 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
599 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
600 " 2], [0], [dnl
601 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,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
602 ], [dnl
603 ])
604 AT_CLEANUP
605
606 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
607 AT_KEYWORDS([ofp-print])
608 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
609 03 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
611 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
612 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
613 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
614 c0 a8 03 5c 00 00 00 00                         \
615 " 2], [0], [dnl
616 OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
617 ], [dnl
618 ])
619 AT_CLEANUP
620
621 AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
622 AT_KEYWORDS([ofp-print])
623 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
624 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
625 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
626 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
627 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
628 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
629 c0 a8 4a 7a 00 00 00 00                         \
630 " 2], [0], [dnl
631 OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
632 ], [dnl
633 ])
634 AT_CLEANUP
635
636 AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
637 AT_KEYWORDS([ofp-print])
638 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
639 03 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
640 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
641 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
642 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
643 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
644 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
645 c0 a8 03 5c 00 00 00 00                         \
646 " 2], [0], [dnl
647 OFPST_FLOW reply (OF1.2) (xid=0x52334504):
648  cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
649 ], [dnl
650 ])
651 AT_CLEANUP
652
653 AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
654 AT_KEYWORDS([ofp-print])
655 AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
656 03 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
657 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
658 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
659 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
660 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
661 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
662 c0 a8 4a 7a 00 00 00 00                         \
663 " 2], [0], [dnl
664 OFPST_FLOW reply (OF1.2) (xid=0x52334509):
665  cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
666 ], [dnl
667 ])
668 AT_CLEANUP
669
670 AT_SETUP([OFPT_PORT_MOD - OF1.0])
671 AT_KEYWORDS([ofp-print])
672 AT_CHECK([ovs-ofctl ofp-print "\
673 01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
674 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
675 " 3], [0], [dnl
676 OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
677      config: PORT_DOWN
678      mask:   PORT_DOWN
679      advertise: UNCHANGED
680 ])
681 AT_CLEANUP
682
683 AT_SETUP([OFPT_PORT_MOD - OF1.1])
684 AT_KEYWORDS([ofp-print])
685 AT_CHECK([ovs-ofctl ofp-print "\
686 02 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
687 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
688 00 00 00 00 00 00 00 00 \
689 " 3], [0], [dnl
690 OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
691      config: PORT_DOWN
692      mask:   PORT_DOWN
693      advertise: UNCHANGED
694 ])
695 AT_CLEANUP
696
697 AT_SETUP([OFPT_PORT_MOD - OF1.2])
698 AT_KEYWORDS([ofp-print])
699 AT_CHECK([ovs-ofctl ofp-print "\
700 03 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
701 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
702 00 00 00 00 00 00 00 00 \
703 " 3], [0], [dnl
704 OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
705      config: PORT_DOWN
706      mask:   PORT_DOWN
707      advertise: UNCHANGED
708 ])
709 AT_CLEANUP
710
711 AT_SETUP([OFPST_DESC request])
712 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
713 AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
714 OFPST_DESC request (xid=0x1):
715 ])
716 AT_CLEANUP
717
718 AT_SETUP([OFPST_DESC reply])
719 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
720 AT_CHECK([ovs-ofctl ofp-print "\
721 01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
722 72 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
723 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
724 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
725 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
726 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
727 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
728 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
729 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
731 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
732 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
733 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
734 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
735 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
736 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
737 00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
738 20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
739 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
740 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 \
745 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
746 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 \
751 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
752 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
753 00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
754 30 70 72 65 32 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 00 00 00 00 00 00 00 00 00 00 00 \
758 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
759 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 \
764 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
765 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
766 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
767 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
768 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
769 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
771 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
772 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
773 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
774 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
775 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
776 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
777 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
778 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
779 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
781 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
782 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
783 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
784 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
785 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
786 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
787 00 00 00 00 00 00 00 00 00 00 00 00 \
788 "], [0], [dnl
789 OFPST_DESC reply (xid=0x1):
790 Manufacturer: Nicira, Inc.
791 Hardware: Open vSwitch
792 Software: 1.1.0pre2
793 Serial Num: None
794 DP Description: None
795 ])
796 AT_CLEANUP
797
798 AT_SETUP([OFPST_FLOW request - OF1.0])
799 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
800 AT_CHECK([ovs-ofctl ofp-print "\
801 01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
802 ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
803 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
804 00 00 00 00 ff 00 ff ff \
805 "], [0], [dnl
806 OFPST_FLOW request (xid=0x4): @&t@
807 ])
808 AT_CLEANUP
809
810 AT_SETUP([OFPST_FLOW request - OF1.2])
811 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
812 AT_CHECK([ovs-ofctl ofp-print "\
813 03 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
814 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
815 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
816 00 01 00 04 00 00 00 00 \
817 "], [0], [dnl
818 OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
819 ])
820 AT_CLEANUP
821
822 AT_SETUP([OFPST_FLOW reply - OF1.0])
823 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
824 AT_CHECK([ovs-ofctl ofp-print "\
825 01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
826 00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
827 00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
828 c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
829 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
830 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
831 00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
832 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
833 00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
834 c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
835 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
836 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
837 00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
838 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
839 00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
840 c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
841 ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
842 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
843 00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
844 00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
845 00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
846 c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
847 80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
848 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
849 00 00 04 fa 00 00 00 08 00 01 00 00 \
850 00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
851 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
852 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
853 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
854 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
855 00 00 00 00 00 00 00 00 \
856 "], [0], [dnl
857 OFPST_FLOW reply (xid=0x4):
858  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,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
859  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
860  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,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
861  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
862  cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
863 ])
864 AT_CLEANUP
865
866 AT_SETUP([OFPST_FLOW reply - OF1.2])
867 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
868 AT_CHECK([ovs-ofctl ofp-print "\
869 03 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
870 00 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
871 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
872 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
873 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
874 ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
875 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
876 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
877 05 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
878 20 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
879 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
880 00 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
881 00 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
882 0a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
883 00 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
884 00 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
885 00 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
886 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
887 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
888 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
889 52 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
890 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
891 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
892 05 dc 00 00 00 00 00 00 \
893 "], [0], [dnl
894 OFPST_FLOW reply (OF1.2) (xid=0x2):
895  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
896  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
897  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
898 ])
899 AT_CLEANUP
900
901 AT_SETUP([OFPST_AGGREGATE request - OF1.0])
902 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
903 AT_CHECK([ovs-ofctl ofp-print "\
904 01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
905 ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
906 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
907 00 00 00 00 ff 00 ff ff \
908 "], [0], [dnl
909 OFPST_AGGREGATE request (xid=0x4): @&t@
910 ])
911 AT_CLEANUP
912
913 AT_SETUP([OFPST_AGGREGATE request - OF1.2])
914 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
915 AT_CHECK([ovs-ofctl ofp-print "\
916 03 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
917 ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
918 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
919 00 01 00 04 00 00 00 00 \
920 "], [0], [dnl
921 OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
922 ])
923 AT_CLEANUP
924
925 AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
926 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
927 AT_CHECK([ovs-ofctl ofp-print "\
928 01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
929 00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
930 00 00 00 00 \
931 "], [0], [dnl
932 OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
933 ])
934 AT_CLEANUP
935
936 AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
937 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
938 AT_CHECK([ovs-ofctl ofp-print "\
939 03 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
940 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
941 00 00 00 03 00 00 00 00 \
942 "], [0], [dnl
943 OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
944 ])
945 AT_CLEANUP
946
947 AT_SETUP([OFPST_TABLE request - OF1.0])
948 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
949 AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
950 OFPST_TABLE request (xid=0x1):
951 ])
952 AT_CLEANUP
953
954 AT_SETUP([OFPST_TABLE request - OF1.1])
955 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
956 AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
957 OFPST_TABLE request (OF1.1) (xid=0x2):
958 ])
959 AT_CLEANUP
960
961 AT_SETUP([OFPST_TABLE request - OF1.2])
962 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
963 AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
964 OFPST_TABLE request (OF1.2) (xid=0x2):
965 ])
966 AT_CLEANUP
967
968 AT_SETUP([OFPST_TABLE reply - OF1.0])
969 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
970 AT_CHECK([ovs-ofctl ofp-print "\
971 01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
972 63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
973 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
974 00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
975 00 00 00 00 00 00 00 00 00 00 00 00 \
976 "], [0], [dnl
977 OFPST_TABLE reply (xid=0x1): 1 tables
978   0: classifier: wild=0x3fffff, max=1048576, active=11
979                lookup=0, matched=0
980 ])
981 AT_CLEANUP
982
983 AT_SETUP([OFPST_TABLE reply - OF1.2])
984 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
985 (mid="wild=0xfffffffff, max=1000000,"
986  tail="
987                match=0xfffffffff, instructions=0x00000007, config=0x00000000
988                write_actions=0x00000000, apply_actions=0x00000000
989                write_setfields=0x0000000fffffffff
990                apply_setfields=0x0000000fffffffff
991                metadata_match=0x0000000000000000
992                metadata_write=0x0000000000000000"
993  echo "OFPST_TABLE reply (OF1.2) (xid=0x2): 255 tables
994   0: classifier: $mid active=1
995                lookup=74614, matched=106024$tail"
996  x=1
997  while test $x -lt 254; do
998    printf "  %d: %-8s: $mid active=0
999                lookup=0, matched=0$tail
1000 " $x table$x
1001    x=`expr $x + 1`
1002  done
1003  echo "  254: table254: $mid active=2
1004                lookup=0, matched=0$tail") > expout
1005
1006 (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"
1007  pad7="00 00 00 00 00 00 00 "
1008  mid="00 00 00 0f ff ff ff ff \
1009 00 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
1010 00 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
1011 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1012 00 00 00 07 00 00 00 00 00 0f 42 40 "
1013  tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1014
1015  echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1016
1017  x=0
1018  printf "%02x $pad7" $x
1019  printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1020  echo -n "$mid 00 00 00 01  "
1021  echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1022
1023  x=1
1024  while test $x -lt 254; do
1025    printf "%02x $pad7" $x
1026    printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1027    echo -n "$mid 00 00 00 00 $tail "
1028    x=`expr $x + 1`
1029  done
1030
1031  x=254
1032  printf "%02x $pad7" $x
1033  printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1034  echo -n "$mid 00 00 00 02 $tail") > in
1035 AT_CHECK([ovs-ofctl ofp-print "$(cat in)"], [0], [expout])
1036 AT_CLEANUP
1037
1038 AT_SETUP([OFPST_PORT request - 1.0])
1039 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1040 AT_CHECK([ovs-ofctl ofp-print "\
1041 01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
1042 00 00 00 00 \
1043 "], [0], [dnl
1044 OFPST_PORT request (xid=0x1): port_no=65535
1045 ])
1046 AT_CLEANUP
1047
1048 AT_SETUP([OFPST_PORT request - 1.1])
1049 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1050 AT_CHECK([ovs-ofctl ofp-print "\
1051 02 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1052 ff ff ff ff 00 00 00 00 \
1053 "], [0], [dnl
1054 OFPST_PORT request (OF1.1) (xid=0x2): port_no=65535
1055 ])
1056 AT_CLEANUP
1057
1058 AT_SETUP([OFPST_PORT request - 1.2])
1059 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1060 AT_CHECK([ovs-ofctl ofp-print "\
1061 03 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1062 ff ff ff ff 00 00 00 00 \
1063 "], [0], [dnl
1064 OFPST_PORT request (OF1.2) (xid=0x2): port_no=65535
1065 ])
1066 AT_CLEANUP
1067
1068 AT_SETUP([OFPST_PORT reply - OF1.0])
1069 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1070 AT_CHECK([ovs-ofctl ofp-print "\
1071 01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
1072 00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
1073 00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
1074 00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
1075 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1076 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1077 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1078 00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
1079 00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
1080 00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
1081 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1082 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1083 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1084 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
1085 00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
1086 00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
1087 00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
1088 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1089 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1091 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
1092 00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
1093 00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
1094 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1095 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 \
1098 "], [0], [dnl
1099 OFPST_PORT reply (xid=0x1): 4 ports
1100   port  3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1101            tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
1102   port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
1103            tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1104   port  2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1105            tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1106   port  1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1107            tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1108 ])
1109 AT_CLEANUP
1110
1111 AT_SETUP([OFPST_PORT reply - OF1.2])
1112 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1113 AT_CHECK([ovs-ofctl ofp-print "\
1114 03 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
1115 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
1116 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
1117 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
1118 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1119 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1121 00 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
1122 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
1123 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
1124 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1125 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1126 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1127 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1128 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
1129 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
1130 00 00 00 00 01 1e 36 44 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1133 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1134 00 00 00 00 00 00 00 00 \
1135 "], [0], [dnl
1136 OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1137   port  2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1138            tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1139   port 65534: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1140            tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1141   port  1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1142            tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1143 ])
1144 AT_CLEANUP
1145
1146 AT_SETUP([OFPST_QUEUE request - OF1.0])
1147 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1148 AT_CHECK([ovs-ofctl ofp-print "\
1149 01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1150 ff ff ff ff \
1151 "], [0], [dnl
1152 OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
1153 ])
1154 AT_CLEANUP
1155
1156 AT_SETUP([OFPST_QUEUE request - OF1.1])
1157 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1158 AT_CHECK([ovs-ofctl ofp-print "\
1159 02 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1160 ff ff ff ff ff ff ff ff \
1161 "], [0], [dnl
1162 OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
1163 ])
1164 AT_CLEANUP
1165
1166 AT_SETUP([OFPST_QUEUE request - OF1.2])
1167 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1168 AT_CHECK([ovs-ofctl ofp-print "\
1169 03 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1170 ff ff ff ff ff ff ff ff \
1171 "], [0], [dnl
1172 OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
1173 ])
1174 AT_CLEANUP
1175
1176 AT_SETUP([OFPST_QUEUE reply - OF1.0])
1177 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1178 AT_CHECK([ovs-ofctl ofp-print "\
1179 01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
1180 00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
1181 00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
1182 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
1183 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
1184 00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
1185 00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
1186 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
1187 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
1188 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
1189 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
1190 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
1191 00 00 00 00 00 00 00 00 00 00 00 00 \
1192 "], [0], [dnl
1193 OFPST_QUEUE reply (xid=0x1): 6 queues
1194   port 3 queue 1: bytes=302, pkts=1, errors=0
1195   port 3 queue 2: bytes=0, pkts=0, errors=0
1196   port 2 queue 1: bytes=2100, pkts=20, errors=0
1197   port 2 queue 2: bytes=0, pkts=0, errors=0
1198   port 1 queue 1: bytes=0, pkts=0, errors=0
1199   port 1 queue 2: bytes=0, pkts=0, errors=0
1200 ])
1201 AT_CLEANUP
1202
1203 AT_SETUP([OFPST_PORT_DESC request - OF1.0])
1204 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1205 AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
1206 OFPST_PORT_DESC request (xid=0x1):
1207 ])
1208 AT_CLEANUP
1209
1210 AT_SETUP([OFPST_QUEUE reply - OF1.1])
1211 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1212 AT_CHECK([ovs-ofctl ofp-print "\
1213 02 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
1214 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
1215 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
1216 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
1217 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1218 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
1219 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
1220 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
1221 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1222 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1223 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1224 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
1225 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1226 "], [0], [dnl
1227 OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
1228   port 3 queue 1: bytes=302, pkts=1, errors=0
1229   port 3 queue 2: bytes=0, pkts=0, errors=0
1230   port 2 queue 1: bytes=2100, pkts=20, errors=0
1231   port 2 queue 2: bytes=0, pkts=0, errors=0
1232   port 1 queue 1: bytes=0, pkts=0, errors=0
1233   port 1 queue 2: bytes=0, pkts=0, errors=0
1234 ])
1235 AT_CLEANUP
1236
1237 AT_SETUP([OFPST_QUEUE reply - OF1.2])
1238 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1239 AT_CHECK([ovs-ofctl ofp-print "\
1240 03 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
1241 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
1242 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
1243 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
1244 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1245 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
1246 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
1247 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
1248 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1249 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1251 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
1252 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1253 "], [0], [dnl
1254 OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
1255   port 3 queue 1: bytes=302, pkts=1, errors=0
1256   port 3 queue 2: bytes=0, pkts=0, errors=0
1257   port 2 queue 1: bytes=2100, pkts=20, errors=0
1258   port 2 queue 2: bytes=0, pkts=0, errors=0
1259   port 1 queue 1: bytes=0, pkts=0, errors=0
1260   port 1 queue 2: bytes=0, pkts=0, errors=0
1261 ])
1262 AT_CLEANUP
1263
1264 AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
1265 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1266 AT_CHECK([ovs-ofctl ofp-print "\
1267 01 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
1268 00 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
1269 00 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
1270 00 00 02 8f 00 00 02 8f 00 00 00 00 \
1271 "], [0], [dnl
1272 OFPST_PORT_DESC reply (xid=0x0):
1273  3(eth0): addr:50:54:00:00:00:01
1274      config:     PORT_DOWN
1275      state:      LINK_DOWN
1276      current:    100MB-FD AUTO_NEG
1277      advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1278      supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1279      speed: 100 Mbps now, 100 Mbps max
1280 ])
1281 AT_CLEANUP
1282
1283 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
1284 AT_KEYWORDS([ofp-print])
1285 AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
1286 OFPT_BARRIER_REQUEST (xid=0x1):
1287 ])
1288 AT_CLEANUP
1289
1290 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
1291 AT_KEYWORDS([ofp-print])
1292 AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
1293 OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
1294 ])
1295 AT_CLEANUP
1296
1297 AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
1298 AT_KEYWORDS([ofp-print])
1299 AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
1300 OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
1301 ])
1302 AT_CLEANUP
1303
1304 AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
1305 AT_KEYWORDS([ofp-print])
1306 AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
1307 OFPT_BARRIER_REPLY (xid=0x1):
1308 ])
1309 AT_CLEANUP
1310
1311 AT_SETUP([OFPT_BARRIER_REPLY] - OF1.1)
1312 AT_KEYWORDS([ofp-print])
1313 AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
1314 OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
1315 ])
1316 AT_CLEANUP
1317
1318 AT_SETUP([OFPT_BARRIER_REPLY] - OF1.2)
1319 AT_KEYWORDS([ofp-print])
1320 AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
1321 OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
1322 ])
1323 AT_CLEANUP
1324
1325 AT_SETUP([NXT_ROLE_REQUEST])
1326 AT_KEYWORDS([ofp-print])
1327 AT_CHECK([ovs-ofctl ofp-print "\
1328 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
1329 00 00 00 01 \
1330 "], [0], [dnl
1331 NXT_ROLE_REQUEST (xid=0x2): role=master
1332 ])
1333 AT_CLEANUP
1334
1335 AT_SETUP([NXT_ROLE_REPLY])
1336 AT_KEYWORDS([ofp-print])
1337 AT_CHECK([ovs-ofctl ofp-print "\
1338 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
1339 00 00 00 02 \
1340 "], [0], [dnl
1341 NXT_ROLE_REPLY (xid=0x2): role=slave
1342 ])
1343 AT_CLEANUP
1344
1345 AT_SETUP([NXT_SET_PACKET_IN])
1346 AT_KEYWORDS([ofp-print])
1347 AT_CHECK([ovs-ofctl ofp-print "\
1348 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
1349 00 00 00 01 \
1350 "], [0], [dnl
1351 NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
1352 ])
1353 AT_CLEANUP
1354
1355 AT_SETUP([NXT_PACKET_IN])
1356 AT_KEYWORDS([ofp-print])
1357 AT_CHECK([ovs-ofctl ofp-print "\
1358 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
1359 ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
1360 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
1361 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
1362 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
1363 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
1364 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
1365 ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
1366 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
1367 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
1368 00 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \
1369 31 6d 00 00 00 00 00 00 00 00 \
1370 "], [0], [dnl
1371 NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
1372 priority=0,tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,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_csum:316d
1373 ])
1374 AT_CLEANUP
1375
1376 AT_SETUP([NXT_SET_ASYNC_CONFIG])
1377 AT_KEYWORDS([ofp-print])
1378 AT_CHECK([ovs-ofctl ofp-print "\
1379 01 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
1380 00 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
1381 00 00 00 00 00 00 00 03 \
1382 "], [0], [dnl
1383 NXT_SET_ASYNC_CONFIG (xid=0x0):
1384  master:
1385        PACKET_IN: no_match invalid_ttl 12
1386      PORT_STATUS: add delete
1387     FLOW_REMOVED: (off)
1388
1389  slave:
1390        PACKET_IN: no_match action invalid_ttl 12
1391      PORT_STATUS: add delete modify
1392     FLOW_REMOVED: idle hard
1393 ])
1394 AT_CLEANUP
1395
1396 AT_SETUP([NXT_SET_CONTROLLER_ID])
1397 AT_KEYWORDS([ofp-print])
1398 AT_CHECK([ovs-ofctl ofp-print "\
1399 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
1400 00 00 00 00 00 00 00 7b \
1401 "], [0], [dnl
1402 NXT_SET_CONTROLLER_ID (xid=0x3): id=123
1403 ])
1404 AT_CLEANUP
1405
1406 AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
1407 AT_KEYWORDS([ofp-print])
1408 AT_CHECK([ovs-ofctl ofp-print "\
1409 01 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
1410 01 02 30 40 \
1411 "], [0], [dnl
1412 NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
1413 ])
1414 AT_CLEANUP
1415
1416 AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
1417 AT_KEYWORDS([ofp-print])
1418 AT_CHECK([ovs-ofctl ofp-print "\
1419 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
1420 "], [0], [dnl
1421 NXT_FLOW_MONITOR_PAUSED (xid=0x3):
1422 ])
1423 AT_CLEANUP
1424
1425 AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
1426 AT_KEYWORDS([ofp-print])
1427 AT_CHECK([ovs-ofctl ofp-print "\
1428 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
1429 "], [0], [dnl
1430 NXT_FLOW_MONITOR_RESUMED (xid=0x3):
1431 ])
1432 AT_CLEANUP
1433
1434 AT_SETUP([NXT_SET_FLOW_FORMAT])
1435 AT_KEYWORDS([ofp-print])
1436 AT_CHECK([ovs-ofctl ofp-print "\
1437 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
1438 00 00 00 02 \
1439 "], [0], [dnl
1440 NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
1441 ])
1442 AT_CLEANUP
1443
1444 # The flow is formatted with cls_rule_format() for the low-verbosity case.
1445 AT_SETUP([NXT_FLOW_MOD, low verbosity])
1446 AT_KEYWORDS([ofp-print])
1447 AT_CHECK([ovs-ofctl ofp-print "\
1448 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
1449 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
1450 ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
1451 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
1452 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
1453 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1454 " 2], [0], [dnl
1455 NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
1456 ])
1457 AT_CLEANUP
1458
1459 # The flow is formatted with ofp10_match_to_string() for the
1460 # low-verbosity case.
1461 AT_SETUP([NXT_FLOW_MOD, high verbosity])
1462 AT_KEYWORDS([ofp-print])
1463 AT_CHECK([ovs-ofctl ofp-print "\
1464 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
1465 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
1466 ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
1467 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
1468 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
1469 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1470 " 3], [0], [dnl
1471 NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) out_port:256 actions=load:0x5->NXM_NX_REG0[[]]
1472 ])
1473 AT_CLEANUP
1474
1475 AT_SETUP([NXT_FLOW_REMOVED])
1476 AT_KEYWORDS([ofp-print])
1477 AT_CHECK([ovs-ofctl ofp-print "\
1478 01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
1479 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \
1480 01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
1481 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1482 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1483 00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
1484 1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
1485 c0 a8 00 02 00 00 00 00 \
1486 "], [0], [dnl
1487 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 duration6.024s idle5 pkts1 bytes60
1488 ])
1489 AT_CLEANUP
1490
1491 AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
1492 AT_KEYWORDS([ofp-print])
1493 AT_CHECK([ovs-ofctl ofp-print "\
1494 01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
1495 01 00 00 00 00 00 00 00 \
1496 "], [0], [dnl
1497 NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
1498 ])
1499 AT_CLEANUP
1500
1501 AT_SETUP([NXST_FLOW request])
1502 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1503 AT_CHECK([ovs-ofctl ofp-print "\
1504 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
1505 00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1506 "], [0], [dnl
1507 NXST_FLOW request (xid=0x4): @&t@
1508 ])
1509 AT_CLEANUP
1510
1511 AT_SETUP([NXST_FLOW reply])
1512 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1513 AT_CHECK([ovs-ofctl ofp-print "\
1514 01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
1515 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
1516 02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1517 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1518 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1519 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1520 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1521 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1522 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
1523 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
1524 00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
1525 00 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
1526 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1527 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1528 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1529 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1530 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1531 00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
1532 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
1533 33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
1534 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1535 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1536 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1537 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1538 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1539 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1540 14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
1541 00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
1542 00 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
1543 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1544 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1545 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1546 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1547 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1548 00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
1549 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
1550 34 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
1551 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1552 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1553 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1554 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1555 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1556 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
1557 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
1558 00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
1559 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1560 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1561 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1562 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1563 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1564 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1565 00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
1566 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
1567 02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1568 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1569 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1570 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1571 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1572 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1573 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1574 14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
1575 00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
1576 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1577 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1578 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
1579 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
1580 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1581 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
1582 00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
1583 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
1584 27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1585 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1586 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1587 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1588 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1589 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1590 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1591 14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
1592 00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
1593 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1594 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1595 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
1596 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
1597 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1598 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
1599 00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
1600 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
1601 0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1602 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1603 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
1604 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
1605 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1606 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1607 a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
1608 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
1609 00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
1610 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1611 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1612 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
1613 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
1614 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1615 a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
1616 00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
1617 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
1618 04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
1619 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
1620 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
1621 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
1622 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
1623 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1624 a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
1625 14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
1626 00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
1627 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
1628 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
1629 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
1630 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
1631 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1632 a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
1633 00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
1634 00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
1635 2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
1636 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1637 00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
1638 00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
1639 ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
1640 00 00 00 00 00 00 00 05 \
1641 00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
1642 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1643 00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
1644 "], [0],
1645 [[NXST_FLOW reply (xid=0x4):
1646  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
1647  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
1648  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
1649  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
1650  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
1651  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
1652  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
1653  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
1654  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
1655  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
1656  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
1657  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
1658  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
1659  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
1660  cookie=0x0, duration=228.78s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
1661  cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
1662 ]])
1663 AT_CLEANUP
1664
1665 AT_SETUP([NXST_AGGREGATE request])
1666 AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1667 AT_CHECK([ovs-ofctl ofp-print "\
1668 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
1669 00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1670 "], [0], [dnl
1671 NXST_AGGREGATE request (xid=0x4): @&t@
1672 ])
1673 AT_CLEANUP
1674
1675 AT_SETUP([NXST_AGGREGATE reply])
1676 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1677 AT_CHECK([ovs-ofctl ofp-print "\
1678 01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
1679 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
1680 00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
1681 "], [0], [dnl
1682 NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
1683 ])
1684 AT_CLEANUP
1685
1686 AT_SETUP([NXST_FLOW_MONITOR request])
1687 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1688 AT_CHECK([ovs-ofctl ofp-print "\
1689 01 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
1690 00 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
1691 00 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
1692 "], [0], [dnl
1693 NXST_FLOW_MONITOR request (xid=0x4):
1694  id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
1695  id=8192 flags=delete table=2 in_port=1
1696 ])
1697 AT_CLEANUP
1698
1699 AT_SETUP([NXST_FLOW_MONITOR reply])
1700 AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1701 AT_CHECK([ovs-ofctl ofp-print "\
1702 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
1703 00 20 00 01 00 04 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
1704 00 00 00 02 00 01 00 00 \
1705 00 08 00 03 00 01 86 a0 \
1706 "], [0], [dnl
1707 NXST_FLOW_MONITOR reply (xid=0x4):
1708  event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
1709  event=ABBREV xid=0x186a0
1710 ])
1711 AT_CLEANUP