]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ofproto-dpif: Consolidate facet stat logic.
[mirror_ovs.git] / tests / ofp-print.at
CommitLineData
fec00620
BP
1AT_BANNER([ofp-print])
2
3AT_SETUP([empty])
4AT_KEYWORDS([ofp-print])
5AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6])
7AT_CLEANUP
8
9AT_SETUP([too short])
10AT_KEYWORDS([ofp-print])
11AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12OpenFlow packet too short (only 2 bytes):
1300000000 aa bb |.. |
14])
15AT_CLEANUP
16
17AT_SETUP([wrong OpenFlow version])
18AT_KEYWORDS([ofp-print])
90bf1e07
BP
19AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20 [0], [dnl
21***decode error: OFPBRC_BAD_TYPE***
2200000000 00 bb 00 08 ee ff 00 11- |........ |
982697a4 23], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187)
fec00620
BP
24])
25AT_CLEANUP
26
27AT_SETUP([truncated message])
28AT_KEYWORDS([ofp-print])
f25b4a81 29AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl
fec00620 30(***truncated to 8 bytes from 52445***)
f25b4a81 3100000000 01 10 cc dd ee ff 00 11- |........ |
fec00620
BP
32])
33AT_CLEANUP
34
35AT_SETUP([message only uses part of buffer])
36AT_KEYWORDS([ofp-print])
f25b4a81 37AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl
fec00620 38(***only uses 9 bytes out of 10***)
f25b4a81 3900000000 01 10 00 09 ee ff 00 11-22 33 |........"3 |
fec00620
BP
40])
41# "
42AT_CLEANUP
43
44AT_SETUP([OFPT_HELLO - ordinary])
45AT_KEYWORDS([ofp-print])
46AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47OFPT_HELLO (xid=0x0):
de6c85b0 48 version bitmap: 0x01
fec00620
BP
49])
50AT_CLEANUP
51
52AT_SETUP([OFPT_HELLO with extra data])
53AT_KEYWORDS([ofp-print])
54AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
55[dnl
56OFPT_HELLO (xid=0x0):
de6c85b0
SH
57 version bitmap: 0x01
58 unknown data in hello:
5900000000 01 00 00 13 00 00 00 00-65 78 74 72 61 20 64 61 |........extra da|
6000000010 74 61 0a |ta. |
61])
62AT_CLEANUP
63
64AT_SETUP([OFPT_HELLO with version bitmap])
65AT_KEYWORDS([ofp-print])
66AT_CHECK([ovs-ofctl ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f0"], [0],
67[dnl
68OFPT_HELLO (xid=0x0):
69 version bitmap: 0x04, 0x05, 0x06, 0x07
70])
71AT_CLEANUP
72
73AT_SETUP([OFPT_HELLO with version bitmap and extra data])
74AT_KEYWORDS([ofp-print])
75AT_CHECK([ovs-ofctl ofp-print "\
7601 00 00 1b 00 00 00 00 ff ff 00 06 01 02 00 00 \
7700 01 00 08 00 00 00 f0 61 62 63"], [0],
78[dnl
79OFPT_HELLO (xid=0x0):
80 version bitmap: 0x04, 0x05, 0x06, 0x07
81 unknown data in hello:
8200000000 01 00 00 1b 00 00 00 00-ff ff 00 06 01 02 00 00 |................|
8300000010 00 01 00 08 00 00 00 f0-61 62 63 |........abc |
fec00620
BP
84])
85AT_CLEANUP
86
681ea7a0
BP
87AT_SETUP([OFPT_HELLO with higher than supported version])
88AT_KEYWORDS([ofp-print])
89AT_CHECK([ovs-ofctl ofp-print "0f 00 00 08 00 00 00 00"], [0],
90[dnl
91OFPT_HELLO (OF 0x0f) (xid=0x0):
92 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
93])
94AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0],
95[dnl
96OFPT_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])
99AT_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
101OFPT_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])
104AT_CLEANUP
105
106AT_SETUP([OFPT_HELLO with contradictory version bitmaps])
107AT_KEYWORDS([ofp-print])
108dnl Bitmap claims support for no versions at all.
109AT_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:
11300000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................|
114], [dnl
115ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
116])
117dnl Bitmap claims support for only versions above 0x1f.
118AT_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:
12200000000 3f 00 00 18 00 00 00 00-00 01 00 0c 00 00 00 00 |?...............|
12300000010 aa aa aa aa 00 00 00 00- |........ |
124], [dnl
125ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
126])
127dnl Bitmap claims support for nonexistent version 0x00.
128AT_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
129OFPT_HELLO (xid=0x0):
130 version bitmap: 0x04, 0x05, 0x06, 0x07
131], [dnl
132ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
133])
134dnl Bitmap claims support for only nonexistent version 0x00.
135AT_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
136OFPT_HELLO (xid=0x0):
137 version bitmap: 0x01
138 unknown data in hello:
13900000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................|
140], [dnl
141ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
142ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
143])
144AT_CLEANUP
145
2e0525bc 146dnl OFPT_ERROR tests are in ofp-errors.at.
90bf1e07 147
fec00620
BP
148AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
149AT_KEYWORDS([ofp-print])
150AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
151OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
152])
153AT_CLEANUP
154
155AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
156AT_KEYWORDS([ofp-print])
157AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
158OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
15900000000 25 53 54 1a 9d |%ST.. |
160])
161AT_CLEANUP
162
163AT_SETUP([OFPT_ECHO_REPLY, empty payload])
164AT_KEYWORDS([ofp-print])
165AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
166OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
167])
168AT_CLEANUP
169
170AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
171AT_KEYWORDS([ofp-print])
172AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
173OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
17400000000 a3 30 ef af 9e |.0... |
175])
176AT_CLEANUP
177
178AT_SETUP([OFPT_FEATURES_REQUEST])
179AT_KEYWORDS([ofp-print])
180AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
181OFPT_FEATURES_REQUEST (xid=0x1):
182])
183AT_CLEANUP
184
9e1fd49b 185AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
fec00620
BP
186AT_KEYWORDS([ofp-print])
187AT_CHECK([ovs-ofctl ofp-print "\
18801 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
18900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
190ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
19100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
19200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
19400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
19700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
20000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
20100 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
202"], [0], [dnl
9e1fd49b 203OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
fec00620 204n_tables:2, n_buffers:256
9e1fd49b
BP
205capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
206actions: 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
0ab14c8e
BP
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
9e1fd49b 213 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
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
9e1fd49b 220 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
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
9e1fd49b 227 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
228 LOCAL(br0): addr:50:54:00:00:00:01
229 config: PORT_DOWN
230 state: LINK_DOWN
d02a5f8e 231 speed: 0 Mbps now, 0 Mbps max
fec00620
BP
232])
233AT_CLEANUP
234
9e1fd49b 235AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
fec00620
BP
236AT_KEYWORDS([ofp-print])
237AT_CHECK([ovs-ofctl ofp-print "\
23801 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
23900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
240ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
24100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
24200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
24400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
24700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
25000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
25100 00 02 08 00 00 02 8f 00 00 02 8f \
252"], [0], [dnl
90bf1e07 253***decode error: OFPBRC_BAD_LEN***
fec00620
BP
25400000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
25500000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
25600000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
25700000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
25800000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
25900000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
26000000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
26100000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
26200000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
26300000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
264000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
265000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
266000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
267000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
268], [stderr])
269AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
5a020ef3 270received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
fec00620
BP
271])
272AT_CLEANUP
273
9e1fd49b
BP
274AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
275AT_KEYWORDS([ofp-print])
276AT_CHECK([ovs-ofctl ofp-print "\
27702 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 27800 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
279ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
28062 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
28100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
28200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
28300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
28465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
28500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
28600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
287"], [0], [dnl
288OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
289n_tables:2, n_buffers:256
290capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
9e1fd49b
BP
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])
303AT_CLEANUP
304
305AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
306AT_KEYWORDS([ofp-print])
307AT_CHECK([ovs-ofctl ofp-print "\
30802 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 30900 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
310ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
31162 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
31200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
31300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
31400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
31565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
31600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
317"], [0], [dnl
318***decode error: OFPBRC_BAD_LEN***
31900000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 32000000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 00 00 |................|
9e1fd49b
BP
32100000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32200000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
32300000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
32400000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
32500000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32600000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
32700000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
328], [stderr])
329AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
330received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
331])
332AT_CLEANUP
333
60202987
SH
334AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
335AT_KEYWORDS([ofp-print])
336AT_CHECK([ovs-ofctl ofp-print "\
33703 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 33800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
339ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
34062 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
34100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
34200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
34300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
34465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
34500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
34600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
347"], [0], [dnl
348OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
349n_tables:255, n_buffers:256
350capabilities: 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])
363AT_CLEANUP
364
365AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
366AT_KEYWORDS([ofp-print])
367AT_CHECK([ovs-ofctl ofp-print "\
36803 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 36900 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
370ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
37162 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
37200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
37300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
37400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
37565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
37600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
377"], [0], [dnl
378OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
379(***truncated to 144 bytes from 160***)
38000000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 38100000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 00 00 |...........w....|
60202987
SH
38200000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38300000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
38400000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
38500000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
38600000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38700000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
38800000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
389], [stderr])
390AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
391])
392AT_CLEANUP
393
2e1ae200
JR
394AT_SETUP([OFPT_FEATURES_REPLY - OF1.3])
395AT_KEYWORDS([ofp-print])
396AT_CHECK([ovs-ofctl ofp-print "\
39704 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
39800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
399"], [0], [dnl
400OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
401n_tables:255, n_buffers:256
402capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
403])
404AT_CLEANUP
405
406AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
407AT_KEYWORDS([ofp-print])
408AT_CHECK([ovs-ofctl ofp-print "\
40904 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
41000 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
411"], [0], [dnl
412OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
413n_tables:255, n_buffers:256, auxiliary_id:1
414capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
415])
416AT_CLEANUP
417
fec00620
BP
418AT_SETUP([OFPT_GET_CONFIG_REQUEST])
419AT_KEYWORDS([ofp-print])
420AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
421OFPT_GET_CONFIG_REQUEST (xid=0x1):
422])
423AT_CLEANUP
424
425AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
426AT_KEYWORDS([ofp-print])
427AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
428OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
429])
430AT_CLEANUP
431
432
433AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
434AT_KEYWORDS([ofp-print])
435AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
436OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
437])
438AT_CLEANUP
439
7cfb9651 440AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 441AT_KEYWORDS([ofp-print])
fec00620
BP
442AT_CHECK([ovs-ofctl ofp-print "\
44301 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
44400 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
44545 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
446c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
44750 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 448"], [0], [dnl
f0fd1a17 449OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
3f78c3cc 450tcp,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
fec00620
BP
451])
452AT_CLEANUP
453
b4ccee75
SH
454AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data)])
455AT_KEYWORDS([ofp-print])
456AT_CHECK([ovs-ofctl ofp-print "\
45701 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
45800 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
45945 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
460c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
46150 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
462" 3], [0], [dnl
463OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
464tcp,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
46500000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00
46600000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8
46700000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 00
46800000030 02 00 26 e8 00 00 00 00-00 00 00 00
469])
470AT_CLEANUP
471
7cfb9651
SH
472AT_SETUP([OFPT_PACKET_IN - OF1.2])
473AT_KEYWORDS([ofp-print])
474AT_CHECK([ovs-ofctl ofp-print "\
47503 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
47600 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
47700 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
47800 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
47900 00 00 23 20 83 c1 5f 00 00 00 00 \
480"], [0], [dnl
481OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
3f78c3cc 482rarp,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
7cfb9651
SH
483])
484AT_CLEANUP
485
b4ccee75
SH
486AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
487AT_KEYWORDS([ofp-print])
488AT_CHECK([ovs-ofctl ofp-print "\
48903 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
49000 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
49100 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
49200 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
49300 00 00 23 20 83 c1 5f 00 00 00 00 \
494" 3], [0], [dnl
495OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
496rarp,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
49700000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
49800000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
49900000020 00 23 20 83 c1 5f 00 00-00 00
500])
501AT_CLEANUP
502
2e1ae200
JR
503AT_SETUP([OFPT_PACKET_IN - OF1.3])
504AT_KEYWORDS([ofp-print])
505AT_CHECK([ovs-ofctl ofp-print "\
50604 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
50701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
508ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
50900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
51000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
51100 00 00 00 \
512"], [0], [dnl
513OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
3f78c3cc 514rarp,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
2e1ae200
JR
515])
516AT_CLEANUP
517
b4ccee75
SH
518AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
519AT_KEYWORDS([ofp-print])
520AT_CHECK([ovs-ofctl ofp-print "\
52104 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
52201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
523ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
52400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
52500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
52600 00 00 00 \
527" 3], [0], [dnl
528OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
529rarp,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
53000000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
53100000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
53200000020 00 23 20 83 c1 5f 00 00-00 00
533])
534AT_CLEANUP
535
eefbf181 536AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
537AT_KEYWORDS([ofp-print])
538AT_CHECK([ovs-ofctl ofp-print "\
53901 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
54000 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
54100 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
54200 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
54330 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
54400 00 00 00 00 00 00 3c \
545"], [0], [dnl
666d0863 546OFPT_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
fec00620
BP
547])
548AT_CLEANUP
549
eefbf181
SH
550AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
551AT_KEYWORDS([ofp-print])
552AT_CHECK([ovs-ofctl ofp-print "\
55303 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
55480 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
55500 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
55600 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
95216219 557OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.01s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
558])
559AT_CLEANUP
560
2e1ae200
JR
561AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
562AT_KEYWORDS([ofp-print])
563AT_CHECK([ovs-ofctl ofp-print "\
56404 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
56580 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
56600 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
56700 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
568OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.01s idle60 hard120 pkts1234567 bytes1869134438
569])
570AT_CLEANUP
571
9e1fd49b 572AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
573AT_KEYWORDS([ofp-print])
574AT_CHECK([ovs-ofctl ofp-print "\
57501 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
57600 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
57700 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
57800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
579"], [0], [dnl
0ab14c8e
BP
580OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
581 config: PORT_DOWN
582 state: LINK_DOWN
583 current: 100MB-FD AUTO_NEG
584 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
585 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
586 speed: 100 Mbps now, 100 Mbps max
587])
588AT_CLEANUP
589
590AT_SETUP([OFPT_PORT_STATUS - OF1.1])
591AT_KEYWORDS([ofp-print])
592AT_CHECK([ovs-ofctl ofp-print "\
59302 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
59400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
59565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
59600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
59700 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
598"], [0], [dnl
599OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
600 config: 0
601 state: 0
602 current: 100MB-FD AUTO_NEG
603 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
604 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
605 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
606])
607AT_CLEANUP
608
eb5ee596 609AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
610AT_KEYWORDS([ofp-print])
611AT_CHECK([ovs-ofctl ofp-print "\
61201 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
61300 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
61400 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
615b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
61600 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
61700 00 00 00 \
618"], [0], [dnl
c6a93eb7 619OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
620])
621AT_CLEANUP
622
4b2d9d11
SH
623AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
624AT_KEYWORDS([ofp-print])
625AT_CHECK([ovs-ofctl ofp-print "\
62601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
62700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
62800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
629b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
63000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
63100 00 00 00 \
632"], [0], [dnl
633OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
634tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104 tcp_csum:6d75
635])
636AT_CLEANUP
637
b4ccee75
SH
638AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
639AT_KEYWORDS([ofp-print])
640AT_CHECK([ovs-ofctl ofp-print "\
64101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
64200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
64300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
644b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
64500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
64600 00 00 00 \
647" 3], [0], [dnl
648OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
649tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104 tcp_csum:6d75
65000000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
65100000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
65200000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
65300000030 00 00 6d 75 00 00 00 00-00 00 00 00
654])
655AT_CLEANUP
656
eb5ee596
SH
657AT_SETUP([OFPT_PACKET_OUT - OF1.1])
658AT_KEYWORDS([ofp-print])
659AT_CHECK([ovs-ofctl ofp-print "\
66003 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
66100 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
66205 dc 00 00 00 00 00 00 \
663"], [0], [dnl
664OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
665])
666AT_CLEANUP
667
4b2d9d11
SH
668AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
669AT_KEYWORDS([ofp-print])
670AT_CHECK([ovs-ofctl ofp-print "\
67103 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
67200 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
67305 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
67400 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
675b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
67600 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
67700 00 00 00 \
678"], [0], [dnl
679OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
680tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104 tcp_csum:6d75
681])
682AT_CLEANUP
683
fec00620 684# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 685AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 686AT_KEYWORDS([ofp-print])
1c0b7503 687AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
68801 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
68900 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
69000 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
69100 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
69200 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
693" 2], [0], [dnl
666d0863 694OFPT_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
1c0b7503
BP
695], [dnl
696ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
697ofp_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
698ofp_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
fec00620
BP
699])
700AT_CLEANUP
701
1bf6eeb0
SH
702# The flow is formatted with cls_rule_format() for the low-verbosity case.
703AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
704AT_KEYWORDS([ofp-print])
705AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
70603 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
70700 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
708ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
70900 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
71050 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
71180 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
71200 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
71300 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
71400 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
715" 2], [0], [dnl
666d0863 716OFPT_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
1bf6eeb0
SH
717], [dnl
718])
719AT_CLEANUP
720
eec25dc1
BP
721# The flow is formatted with ofp10_match_to_string() for the
722# high-verbosity case.
1bf6eeb0 723AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 724AT_KEYWORDS([ofp-print])
1c0b7503 725AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
72601 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
72700 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
72800 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
72900 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
73000 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
731" 3], [0], [dnl
de0f16bc 732OFPT_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
1c0b7503
BP
733], [dnl
734ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
735ofp_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
736ofp_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
fec00620
BP
737])
738AT_CLEANUP
739
1bf6eeb0
SH
740# The flow is formatted with cls_rule_format() for the low-verbosity case.
741AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
742AT_KEYWORDS([ofp-print])
743AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
74403 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
74500 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
746ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
74700 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
74850 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
74980 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
75000 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
75100 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
75200 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
753" 2], [0], [dnl
666d0863 754OFPT_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
1bf6eeb0
SH
755], [dnl
756])
757AT_CLEANUP
758
2e1ae200
JR
759# The flow is formatted with cls_rule_format() for the low-verbosity case.
760AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
761AT_KEYWORDS([ofp-print])
762AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
76304 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
76400 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
765ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
76600 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
76750 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
76880 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
76900 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
77000 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
77100 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
772" 2], [0], [dnl
773OFPT_FLOW_MOD (OF1.3) (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 send_flow_rem check_overlap reset_counts no_packet_counts no_byte_counts actions=output:3
774], [dnl
775])
776AT_CLEANUP
777
d55b18c8
IY
778AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
779AT_KEYWORDS([ofp-print])
780AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
78103 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
78200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
783ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
78400 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
78500 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
786c0 a8 03 5c 00 00 00 00 \
787" 2], [0], [dnl
788OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
789], [dnl
790])
791AT_CLEANUP
792
793AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
794AT_KEYWORDS([ofp-print])
795AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
79603 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
79700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
798ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
79900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
80000 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
801c0 a8 4a 7a 00 00 00 00 \
802" 2], [0], [dnl
803OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
804], [dnl
805])
806AT_CLEANUP
807
808AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
809AT_KEYWORDS([ofp-print])
810AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
81103 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
81200 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
81300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
81400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
81500 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
81600 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
817c0 a8 03 5c 00 00 00 00 \
818" 2], [0], [dnl
819OFPST_FLOW reply (OF1.2) (xid=0x52334504):
820 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
821], [dnl
822])
823AT_CLEANUP
824
825AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
826AT_KEYWORDS([ofp-print])
827AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
82803 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
82900 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
83000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
83100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
83200 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
83300 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
834c0 a8 4a 7a 00 00 00 00 \
835" 2], [0], [dnl
836OFPST_FLOW reply (OF1.2) (xid=0x52334509):
837 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
838], [dnl
839])
840AT_CLEANUP
841
9e1fd49b 842AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
843AT_KEYWORDS([ofp-print])
844AT_CHECK([ovs-ofctl ofp-print "\
84501 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
84600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
847" 3], [0], [dnl
9e1fd49b
BP
848OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
849 config: PORT_DOWN
850 mask: PORT_DOWN
851 advertise: UNCHANGED
852])
853AT_CLEANUP
854
855AT_SETUP([OFPT_PORT_MOD - OF1.1])
856AT_KEYWORDS([ofp-print])
857AT_CHECK([ovs-ofctl ofp-print "\
85802 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
85950 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
86000 00 00 00 00 00 00 00 \
861" 3], [0], [dnl
862OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
863 config: PORT_DOWN
864 mask: PORT_DOWN
fec00620
BP
865 advertise: UNCHANGED
866])
867AT_CLEANUP
868
bb2bc3c1
SH
869AT_SETUP([OFPT_PORT_MOD - OF1.2])
870AT_KEYWORDS([ofp-print])
871AT_CHECK([ovs-ofctl ofp-print "\
87203 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
87350 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
87400 00 00 00 00 00 00 00 \
875" 3], [0], [dnl
876OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
877 config: PORT_DOWN
878 mask: PORT_DOWN
879 advertise: UNCHANGED
880])
881AT_CLEANUP
882
2e1ae200
JR
883AT_SETUP([OFPT_PORT_MOD - OF1.3])
884AT_KEYWORDS([ofp-print])
885AT_CHECK([ovs-ofctl ofp-print "\
88604 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
88750 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
88800 00 00 00 00 00 00 00 \
889" 3], [0], [dnl
890OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
891 config: PORT_DOWN
892 mask: PORT_DOWN
893 advertise: UNCHANGED
894])
895AT_CLEANUP
896
fec00620
BP
897AT_SETUP([OFPST_DESC request])
898AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
899AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
900OFPST_DESC request (xid=0x1):
901])
902AT_CLEANUP
903
904AT_SETUP([OFPST_DESC reply])
905AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
906AT_CHECK([ovs-ofctl ofp-print "\
90701 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
90872 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
90900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
91000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92300 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
92420 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
92500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
93900 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
94030 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
94100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95500 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
95600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95700 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
95800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97300 00 00 00 00 00 00 00 00 00 00 00 \
974"], [0], [dnl
975OFPST_DESC reply (xid=0x1):
e0edde6f 976Manufacturer: Nicira, Inc.
fec00620
BP
977Hardware: Open vSwitch
978Software: 1.1.0pre2
979Serial Num: None
980DP Description: None
981])
982AT_CLEANUP
983
0157ad3a 984AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
985AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
986AT_CHECK([ovs-ofctl ofp-print "\
98701 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
988ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
98900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
99000 00 00 00 ff 00 ff ff \
991"], [0], [dnl
54ae6fa8 992OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
993])
994AT_CLEANUP
995
0157ad3a
SH
996AT_SETUP([OFPST_FLOW request - OF1.2])
997AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
998AT_CHECK([ovs-ofctl ofp-print "\
99903 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1000ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
100100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
100200 01 00 04 00 00 00 00 \
1003"], [0], [dnl
1004OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1005])
1006AT_CLEANUP
1007
2e1ae200
JR
1008AT_SETUP([OFPST_FLOW request - OF1.3])
1009AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1010AT_CHECK([ovs-ofctl ofp-print "\
101104 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1012ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
101300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
101400 01 00 04 00 00 00 00 \
1015"], [0], [dnl
1016OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1017])
1018AT_CLEANUP
1019
6ec5f0c5 1020AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1021AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1022AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 102301 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
102400 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
102500 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1026c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1027ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
102800 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
102900 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
103000 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
103100 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1032c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1033ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
103400 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
103500 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
103600 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
103700 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1038c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1039ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
104000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
104100 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 104200 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
104300 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1044c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 104580 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
104600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
104700 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
104800 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
104900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
105000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
105100 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
105200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
105300 00 00 00 00 00 00 00 \
fec00620
BP
1054"], [0], [dnl
1055OFPST_FLOW reply (xid=0x4):
666d0863 1056 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
b9718b7b 1057 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
666d0863 1058 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
b9718b7b 1059 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
05b8f1c2 1060 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1061])
1062AT_CLEANUP
1063
6ec5f0c5
SH
1064AT_SETUP([OFPST_FLOW reply - OF1.2])
1065AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1066AT_CHECK([ovs-ofctl ofp-print "\
106703 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
106800 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
106900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
107100 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1072ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
107300 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
107400 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
107505 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
107620 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
107700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
107800 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
107900 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
10800a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
108100 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
108200 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
108300 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
108400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
108600 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
108752 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
108800 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
108900 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
109005 dc 00 00 00 00 00 00 \
1091"], [0], [dnl
1092OFPST_FLOW reply (OF1.2) (xid=0x2):
1093 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
1094 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
1095 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
1096])
1097AT_CLEANUP
1098
617da9cd 1099AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1100AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1101AT_CHECK([ovs-ofctl ofp-print "\
110201 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1103ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110500 00 00 00 ff 00 ff ff \
1106"], [0], [dnl
54ae6fa8 1107OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1108])
1109AT_CLEANUP
1110
617da9cd
SH
1111AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1112AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1113AT_CHECK([ovs-ofctl ofp-print "\
111403 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1115ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
111600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111700 01 00 04 00 00 00 00 \
1118"], [0], [dnl
1119OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1120])
1121AT_CLEANUP
1122
2e1ae200
JR
1123AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1124AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1125AT_CHECK([ovs-ofctl ofp-print "\
112604 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1127ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
112800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112900 01 00 04 00 00 00 00 \
1130"], [0], [dnl
1131OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1132])
1133AT_CLEANUP
1134
617da9cd 1135AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1136AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1137AT_CHECK([ovs-ofctl ofp-print "\
113801 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
113900 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
114000 00 00 00 \
1141"], [0], [dnl
1142OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1143])
1144AT_CLEANUP
1145
617da9cd
SH
1146AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1147AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1148AT_CHECK([ovs-ofctl ofp-print "\
114903 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
115000 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
115100 00 00 03 00 00 00 00 \
1152"], [0], [dnl
1153OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1154])
1155AT_CLEANUP
1156
2e1ae200
JR
1157AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1158AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1159AT_CHECK([ovs-ofctl ofp-print "\
116004 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
116100 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
116200 00 00 03 00 00 00 00 \
1163"], [0], [dnl
1164OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1165])
1166AT_CLEANUP
1167
307975da 1168AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1169AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1170AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1171OFPST_TABLE request (xid=0x1):
1172])
1173AT_CLEANUP
1174
307975da
SH
1175AT_SETUP([OFPST_TABLE request - OF1.1])
1176AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1177AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1178OFPST_TABLE request (OF1.1) (xid=0x2):
1179])
1180AT_CLEANUP
1181
1182AT_SETUP([OFPST_TABLE request - OF1.2])
1183AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1184AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1185OFPST_TABLE request (OF1.2) (xid=0x2):
1186])
1187AT_CLEANUP
1188
2e1ae200
JR
1189AT_SETUP([OFPST_TABLE request - OF1.3])
1190AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1191AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1192OFPST_TABLE request (OF1.3) (xid=0x2):
1193])
1194AT_CLEANUP
1195
26df8b3e 1196AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1197AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1198AT_CHECK([ovs-ofctl ofp-print "\
119901 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
120063 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
120100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120200 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
120300 00 00 00 00 00 00 00 00 00 00 00 \
1204"], [0], [dnl
1205OFPST_TABLE reply (xid=0x1): 1 tables
1206 0: classifier: wild=0x3fffff, max=1048576, active=11
1207 lookup=0, matched=0
1208])
1209AT_CLEANUP
1210
26df8b3e
SH
1211AT_SETUP([OFPST_TABLE reply - OF1.2])
1212AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1213(mid="wild=0xfffffffff, max=1000000,"
1214 tail="
1215 match=0xfffffffff, instructions=0x00000007, config=0x00000000
1216 write_actions=0x00000000, apply_actions=0x00000000
1217 write_setfields=0x0000000fffffffff
1218 apply_setfields=0x0000000fffffffff
1219 metadata_match=0x0000000000000000
1220 metadata_write=0x0000000000000000"
1221 echo "OFPST_TABLE reply (OF1.2) (xid=0x2): 255 tables
1222 0: classifier: $mid active=1
1223 lookup=74614, matched=106024$tail"
1224 x=1
1225 while test $x -lt 254; do
1226 printf " %d: %-8s: $mid active=0
1227 lookup=0, matched=0$tail
1228" $x table$x
1229 x=`expr $x + 1`
1230 done
1231 echo " 254: table254: $mid active=2
1232 lookup=0, matched=0$tail") > expout
1233
1234(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"
1235 pad7="00 00 00 00 00 00 00 "
1236 mid="00 00 00 0f ff ff ff ff \
123700 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
123800 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
123900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
124000 00 00 07 00 00 00 00 00 0f 42 40 "
1241 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1242
1243 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1244
1245 x=0
1246 printf "%02x $pad7" $x
1247 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1248 echo -n "$mid 00 00 00 01 "
1249 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1250
1251 x=1
1252 while test $x -lt 254; do
1253 printf "%02x $pad7" $x
1254 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1255 echo -n "$mid 00 00 00 00 $tail "
1256 x=`expr $x + 1`
1257 done
1258
1259 x=254
1260 printf "%02x $pad7" $x
1261 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1262 echo -n "$mid 00 00 00 02 $tail") > in
1263AT_CHECK([ovs-ofctl ofp-print "$(cat in)"], [0], [expout])
1264AT_CLEANUP
1265
2e1ae200
JR
1266AT_SETUP([OFPST_TABLE reply - OF1.3])
1267AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1268AT_CHECK([ovs-ofctl ofp-print "\
126904 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
127000 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
127100 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
127200 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1273"], [0], [dnl
1274OFPST_TABLE reply (OF1.3) (xid=0x1): 2 tables
1275 0: active=11, lookup=512, matched=256
1276 1: active=12, lookup=513, matched=257
1277])
1278AT_CLEANUP
1279
f8e4867e 1280AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1281AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1282AT_CHECK([ovs-ofctl ofp-print "\
128301 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
128400 00 00 00 \
1285"], [0], [dnl
e1db42d6 1286OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1287])
1288AT_CLEANUP
1289
f8e4867e
SH
1290AT_SETUP([OFPST_PORT request - 1.1])
1291AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1292AT_CHECK([ovs-ofctl ofp-print "\
129302 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1294ff ff ff ff 00 00 00 00 \
1295"], [0], [dnl
e1db42d6 1296OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1297])
1298AT_CLEANUP
1299
1300AT_SETUP([OFPST_PORT request - 1.2])
1301AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1302AT_CHECK([ovs-ofctl ofp-print "\
130303 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1304ff ff ff ff 00 00 00 00 \
1305"], [0], [dnl
e1db42d6 1306OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1307])
1308AT_CLEANUP
1309
2e1ae200
JR
1310AT_SETUP([OFPST_PORT request - 1.3])
1311AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1312AT_CHECK([ovs-ofctl ofp-print "\
131304 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1314ff ff ff ff 00 00 00 00 \
1315"], [0], [dnl
e1db42d6 1316OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1317])
1318AT_CLEANUP
1319
f8e4867e 1320AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1321AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1322AT_CHECK([ovs-ofctl ofp-print "\
132301 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
132400 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
132500 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
132600 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
132700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
133000 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
133100 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
133200 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
133300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
133400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
133500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
133600 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
133700 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
133800 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
133900 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
134000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134300 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
134400 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
134500 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
134600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134900 00 00 00 00 00 00 00 00 00 00 00 \
1350"], [0], [dnl
1351OFPST_PORT reply (xid=0x1): 4 ports
1352 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1353 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1354 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1355 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1356 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1357 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1358 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1359 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1360])
1361AT_CLEANUP
1362
f8e4867e
SH
1363AT_SETUP([OFPST_PORT reply - OF1.2])
1364AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1365AT_CHECK([ovs-ofctl ofp-print "\
136603 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
136700 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
136800 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
136900 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
137000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137300 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
137400 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
137500 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
137600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138000 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
138100 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
138200 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
138300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138600 00 00 00 00 00 00 00 \
1387"], [0], [dnl
1388OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1389 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1390 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1391 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1392 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1393 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1394 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1395])
1396AT_CLEANUP
1397
64626975 1398AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1399AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1400AT_CHECK([ovs-ofctl ofp-print "\
140101 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1402ff ff ff ff \
1403"], [0], [dnl
7f05e7ab 1404OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1405])
1406AT_CLEANUP
1407
64626975
SH
1408AT_SETUP([OFPST_QUEUE request - OF1.1])
1409AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1410AT_CHECK([ovs-ofctl ofp-print "\
141102 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1412ff ff ff ff ff ff ff ff \
64626975 1413"], [0], [dnl
7f05e7ab 1414OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1415])
1416AT_CLEANUP
1417
1418AT_SETUP([OFPST_QUEUE request - OF1.2])
1419AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1420AT_CHECK([ovs-ofctl ofp-print "\
142103 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1422ff ff ff ff ff ff ff ff \
64626975 1423"], [0], [dnl
7f05e7ab 1424OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1425])
1426AT_CLEANUP
1427
2e1ae200
JR
1428AT_SETUP([OFPST_QUEUE request - OF1.3])
1429AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1430AT_CHECK([ovs-ofctl ofp-print "\
143104 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1432ff ff ff ff ff ff ff ff \
1433"], [0], [dnl
1434OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1435])
1436AT_CLEANUP
1437
64626975 1438AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1439AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1440AT_CHECK([ovs-ofctl ofp-print "\
144101 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
144200 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
144300 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
144400 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
144500 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
144600 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
144700 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
144800 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
144900 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
145000 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
145100 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
145200 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
145300 00 00 00 00 00 00 00 00 00 00 00 \
1454"], [0], [dnl
1455OFPST_QUEUE reply (xid=0x1): 6 queues
1456 port 3 queue 1: bytes=302, pkts=1, errors=0
1457 port 3 queue 2: bytes=0, pkts=0, errors=0
1458 port 2 queue 1: bytes=2100, pkts=20, errors=0
1459 port 2 queue 2: bytes=0, pkts=0, errors=0
1460 port 1 queue 1: bytes=0, pkts=0, errors=0
1461 port 1 queue 2: bytes=0, pkts=0, errors=0
1462])
1463AT_CLEANUP
1464
2be393ed
JP
1465AT_SETUP([OFPST_PORT_DESC request - OF1.0])
1466AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1467AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
1468OFPST_PORT_DESC request (xid=0x1):
1469])
1470AT_CLEANUP
1471
64626975
SH
1472AT_SETUP([OFPST_QUEUE reply - OF1.1])
1473AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1474AT_CHECK([ovs-ofctl ofp-print "\
147502 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
147600 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
147700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
147800 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
147900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
148000 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
148100 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
148200 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
148300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
148400 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
148500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
148600 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
148700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1488"], [0], [dnl
1489OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
1490 port 3 queue 1: bytes=302, pkts=1, errors=0
1491 port 3 queue 2: bytes=0, pkts=0, errors=0
1492 port 2 queue 1: bytes=2100, pkts=20, errors=0
1493 port 2 queue 2: bytes=0, pkts=0, errors=0
1494 port 1 queue 1: bytes=0, pkts=0, errors=0
1495 port 1 queue 2: bytes=0, pkts=0, errors=0
1496])
1497AT_CLEANUP
1498
1499AT_SETUP([OFPST_QUEUE reply - OF1.2])
1500AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1501AT_CHECK([ovs-ofctl ofp-print "\
150203 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
150300 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
150400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
150500 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
150600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
150800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
150900 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
151000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
151200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
151400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1515"], [0], [dnl
1516OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
1517 port 3 queue 1: bytes=302, pkts=1, errors=0
1518 port 3 queue 2: bytes=0, pkts=0, errors=0
1519 port 2 queue 1: bytes=2100, pkts=20, errors=0
1520 port 2 queue 2: bytes=0, pkts=0, errors=0
1521 port 1 queue 1: bytes=0, pkts=0, errors=0
1522 port 1 queue 2: bytes=0, pkts=0, errors=0
1523])
1524AT_CLEANUP
1525
2be393ed
JP
1526AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
1527AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1528AT_CHECK([ovs-ofctl ofp-print "\
152901 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
153000 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
153100 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
153200 00 02 8f 00 00 02 8f 00 00 00 00 \
1533"], [0], [dnl
1534OFPST_PORT_DESC reply (xid=0x0):
1535 3(eth0): addr:50:54:00:00:00:01
1536 config: PORT_DOWN
1537 state: LINK_DOWN
1538 current: 100MB-FD AUTO_NEG
1539 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1540 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1541 speed: 100 Mbps now, 100 Mbps max
1542])
1543AT_CLEANUP
1544
58cf43df 1545AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
1546AT_KEYWORDS([ofp-print])
1547AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
1548OFPT_BARRIER_REQUEST (xid=0x1):
1549])
1550AT_CLEANUP
1551
58cf43df
SH
1552AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
1553AT_KEYWORDS([ofp-print])
1554AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
1555OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
1556])
1557AT_CLEANUP
1558
1559AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
1560AT_KEYWORDS([ofp-print])
1561AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
1562OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
1563])
1564AT_CLEANUP
1565
2e1ae200
JR
1566AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
1567AT_KEYWORDS([ofp-print])
1568AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
1569OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
1570])
1571AT_CLEANUP
1572
58cf43df 1573AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
1574AT_KEYWORDS([ofp-print])
1575AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
1576OFPT_BARRIER_REPLY (xid=0x1):
1577])
1578AT_CLEANUP
1579
2e1ae200 1580AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
1581AT_KEYWORDS([ofp-print])
1582AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
1583OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
1584])
1585AT_CLEANUP
1586
2e1ae200 1587AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
1588AT_KEYWORDS([ofp-print])
1589AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
1590OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
1591])
1592AT_CLEANUP
1593
2e1ae200
JR
1594AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
1595AT_KEYWORDS([ofp-print])
1596AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
1597OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
1598])
1599AT_CLEANUP
1600
1601
1602AT_SETUP([OFPT_SET_ASYNC - OF1.3])
1603AT_KEYWORDS([ofp-print])
1604AT_CHECK([ovs-ofctl ofp-print "\
160504 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
160600 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
1607"], [0], [dnl
1608OFPT_SET_ASYNC (OF1.3) (xid=0x0):
1609 master:
1610 PACKET_IN: no_match invalid_ttl 12
1611 PORT_STATUS: add delete
1612 FLOW_REMOVED: (off)
1613
1614 slave:
1615 PACKET_IN: no_match action invalid_ttl 12
1616 PORT_STATUS: add delete modify
1617 FLOW_REMOVED: idle hard
1618])
1619AT_CLEANUP
1620
6ea4776b
JR
1621AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
1622AT_KEYWORDS([ofp-print])
1623AT_CHECK([ovs-ofctl ofp-print "\
162403 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
162500 00 00 00 00 00 00 03 \
1626"], [0], [dnl
1627OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
1628])
1629AT_CLEANUP
1630
1631AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
1632AT_KEYWORDS([ofp-print])
1633AT_CHECK([ovs-ofctl ofp-print "\
163403 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
163500 00 00 00 00 00 00 00 \
1636"], [0], [dnl
1637OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
1638])
1639AT_CLEANUP
1640
fec00620
BP
1641AT_SETUP([NXT_ROLE_REQUEST])
1642AT_KEYWORDS([ofp-print])
1643AT_CHECK([ovs-ofctl ofp-print "\
164401 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
164500 00 00 01 \
1646"], [0], [dnl
1647NXT_ROLE_REQUEST (xid=0x2): role=master
1648])
1649AT_CLEANUP
1650
6ea4776b
JR
1651AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
1652AT_KEYWORDS([ofp-print])
1653AT_CHECK([ovs-ofctl ofp-print "\
165403 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 165512 34 56 78 ab cd ef 90 \
6ea4776b 1656"], [0], [dnl
147cc9d3 1657OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
1658])
1659AT_CLEANUP
1660
fec00620
BP
1661AT_SETUP([NXT_ROLE_REPLY])
1662AT_KEYWORDS([ofp-print])
1663AT_CHECK([ovs-ofctl ofp-print "\
166401 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
166500 00 00 02 \
1666"], [0], [dnl
1667NXT_ROLE_REPLY (xid=0x2): role=slave
1668])
1669AT_CLEANUP
1670
54834960
EJ
1671AT_SETUP([NXT_SET_PACKET_IN])
1672AT_KEYWORDS([ofp-print])
1673AT_CHECK([ovs-ofctl ofp-print "\
167401 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
167500 00 00 01 \
1676"], [0], [dnl
1677NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
1678])
1679AT_CLEANUP
1680
1681AT_SETUP([NXT_PACKET_IN])
1682AT_KEYWORDS([ofp-print])
1683AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 168401 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 1685ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 168600 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
168720 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
168800 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
168900 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 169000 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 1691ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
169280 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
169300 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
169400 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \
169531 6d 00 00 00 00 00 00 00 00 \
1696"], [0], [dnl
42edbe39 1697NXT_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)
3f78c3cc 1698tcp,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
54834960
EJ
1699])
1700AT_CLEANUP
1701
b4ccee75
SH
1702AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
1703AT_KEYWORDS([ofp-print])
1704AT_CHECK([ovs-ofctl ofp-print "\
170501 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
1706ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
170700 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
170820 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
170900 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
171000 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
171100 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
1712ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
171380 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
171400 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
171500 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \
171631 6d 00 00 00 00 00 00 00 00 \
1717" 3], [0], [dnl
1718NXT_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)
1719tcp,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
172000000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
172100000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
172200000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
172300000030 00 00 50 00 00 00 31 6d-00 00 00 00 00 00 00 00
1724])
1725AT_CLEANUP
1726
80d5aefd
BP
1727AT_SETUP([NXT_SET_ASYNC_CONFIG])
1728AT_KEYWORDS([ofp-print])
1729AT_CHECK([ovs-ofctl ofp-print "\
173001 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
173100 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
173200 00 00 00 00 00 00 03 \
1733"], [0], [dnl
1734NXT_SET_ASYNC_CONFIG (xid=0x0):
1735 master:
1736 PACKET_IN: no_match invalid_ttl 12
1737 PORT_STATUS: add delete
1738 FLOW_REMOVED: (off)
1739
1740 slave:
1741 PACKET_IN: no_match action invalid_ttl 12
1742 PORT_STATUS: add delete modify
1743 FLOW_REMOVED: idle hard
1744])
1745AT_CLEANUP
1746
a7349929
BP
1747AT_SETUP([NXT_SET_CONTROLLER_ID])
1748AT_KEYWORDS([ofp-print])
1749AT_CHECK([ovs-ofctl ofp-print "\
175001 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
175100 00 00 00 00 00 00 7b \
1752"], [0], [dnl
1753NXT_SET_CONTROLLER_ID (xid=0x3): id=123
1754])
1755AT_CLEANUP
1756
2b07c8b1
BP
1757AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
1758AT_KEYWORDS([ofp-print])
1759AT_CHECK([ovs-ofctl ofp-print "\
176001 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
176101 02 30 40 \
1762"], [0], [dnl
1763NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
1764])
1765AT_CLEANUP
1766
1767AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
1768AT_KEYWORDS([ofp-print])
1769AT_CHECK([ovs-ofctl ofp-print "\
177001 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
1771"], [0], [dnl
1772NXT_FLOW_MONITOR_PAUSED (xid=0x3):
1773])
1774AT_CLEANUP
1775
1776AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
1777AT_KEYWORDS([ofp-print])
1778AT_CHECK([ovs-ofctl ofp-print "\
177901 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
1780"], [0], [dnl
1781NXT_FLOW_MONITOR_RESUMED (xid=0x3):
1782])
1783AT_CLEANUP
1784
fec00620
BP
1785AT_SETUP([NXT_SET_FLOW_FORMAT])
1786AT_KEYWORDS([ofp-print])
1787AT_CHECK([ovs-ofctl ofp-print "\
178801 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
178900 00 00 02 \
1790"], [0], [dnl
1791NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
1792])
1793AT_CLEANUP
1794
1795# The flow is formatted with cls_rule_format() for the low-verbosity case.
1796AT_SETUP([NXT_FLOW_MOD, low verbosity])
1797AT_KEYWORDS([ofp-print])
1798AT_CHECK([ovs-ofctl ofp-print "\
179901 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
180000 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 1801ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
180200 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
180300 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
180400 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1805" 2], [0], [dnl
de0f16bc 1806NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
1807])
1808AT_CLEANUP
1809
eec25dc1
BP
1810# The flow is formatted with ofp10_match_to_string() for the
1811# low-verbosity case.
fec00620
BP
1812AT_SETUP([NXT_FLOW_MOD, high verbosity])
1813AT_KEYWORDS([ofp-print])
1814AT_CHECK([ovs-ofctl ofp-print "\
181501 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
181600 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 1817ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
181800 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
181900 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
182000 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1821" 3], [0], [dnl
de0f16bc 1822NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) out_port:256 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
1823])
1824AT_CLEANUP
1825
1826AT_SETUP([NXT_FLOW_REMOVED])
1827AT_KEYWORDS([ofp-print])
1828AT_CHECK([ovs-ofctl ofp-print "\
182901 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 183000 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
183101 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
183200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
183302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
183400 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
18351e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
1836c0 a8 00 02 00 00 00 00 \
1837"], [0], [dnl
745bfd5e 1838NXT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2 reason=idle table_id=1 duration6.024s idle5 pkts1 bytes60
fec00620
BP
1839])
1840AT_CLEANUP
1841
a1a7d333
BP
1842AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
1843AT_KEYWORDS([ofp-print])
1844AT_CHECK([ovs-ofctl ofp-print "\
184501 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
184601 00 00 00 00 00 00 00 \
1847"], [0], [dnl
1848NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
1849])
1850AT_CLEANUP
1851
fec00620
BP
1852AT_SETUP([NXST_FLOW request])
1853AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1854AT_CHECK([ovs-ofctl ofp-print "\
185501 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
185600 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1857"], [0], [dnl
54ae6fa8 1858NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
1859])
1860AT_CLEANUP
1861
1862AT_SETUP([NXST_FLOW reply])
1863AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1864AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 186501 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
186600 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
186702 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
186800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
186900 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
187002 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
187100 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
18720a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1873a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
187414 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
187500 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 187600 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
187700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
187800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
187900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
188000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1881a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
188200 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
188300 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 188433 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
188500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
188600 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
188702 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
188800 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
18890a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1890a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
189114 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
189200 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 189300 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
189400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
189500 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
189600 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
189700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1898a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
189900 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
190000 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 190134 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
190200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
190300 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
190402 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
190500 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
19060a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1907a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
190814 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
190900 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
191000 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
191100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
191200 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
191300 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
191400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1915a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
191600 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
191700 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
191802 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
191900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
192000 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
192102 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
192200 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
19230a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1924a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
192514 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
192600 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
192700 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
192800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
192900 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
193000 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
193100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1932a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
193300 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
193400 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
193527 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
193600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
193700 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
193802 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
193900 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
19400a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1941a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
194214 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
194300 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
194400 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
194500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
194600 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
194700 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
194800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1949a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
195000 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
195100 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
19520a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
195300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
195400 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
195502 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
195600 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
19570a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1958a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
195914 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
196000 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
196100 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
196200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
196300 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
196400 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
196500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1966a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
196700 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
196800 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
196904 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
197000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
197100 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
197202 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
197300 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
19740a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1975a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
197614 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
197700 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
197800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
197900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
198000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
198100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
198200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1983a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
198400 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
198500 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
19862e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
198700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
198800 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
198900 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
1990ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
199100 00 00 00 00 00 00 05 \
05b8f1c2
BP
199200 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
199300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
199400 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
1995"], [0],
1996[[NXST_FLOW reply (xid=0x4):
b9718b7b
BP
1997 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
1998 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
1999 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
2000 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
2001 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
2002 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
2003 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
2004 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
2005 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
2006 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
2007 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
2008 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
2009 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
2010 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
e896c2d4 2011 cookie=0x0, duration=228.78s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
05b8f1c2 2012 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
2013]])
2014AT_CLEANUP
2015
2016AT_SETUP([NXST_AGGREGATE request])
2017AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2018AT_CHECK([ovs-ofctl ofp-print "\
201901 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
202000 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2021"], [0], [dnl
54ae6fa8 2022NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
2023])
2024AT_CLEANUP
2025
2026AT_SETUP([NXST_AGGREGATE reply])
2027AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2028AT_CHECK([ovs-ofctl ofp-print "\
202901 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
203000 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
203100 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
2032"], [0], [dnl
2033NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
2034])
2035AT_CLEANUP
2b07c8b1
BP
2036
2037AT_SETUP([NXST_FLOW_MONITOR request])
2038AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2039AT_CHECK([ovs-ofctl ofp-print "\
204001 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
204100 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
204200 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
2043"], [0], [dnl
2044NXST_FLOW_MONITOR request (xid=0x4):
2045 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
2046 id=8192 flags=delete table=2 in_port=1
2047])
2048AT_CLEANUP
2049
2050AT_SETUP([NXST_FLOW_MONITOR reply])
2051AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2052AT_CHECK([ovs-ofctl ofp-print "\
205301 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
205400 20 00 01 00 04 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
205500 00 00 02 00 01 00 00 \
205600 08 00 03 00 01 86 a0 \
2057"], [0], [dnl
2058NXST_FLOW_MONITOR reply (xid=0x4):
2059 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
2060 event=ABBREV xid=0x186a0
2061])
2062AT_CLEANUP