]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
netdev-afxdp: Add interrupt mode netdev class.
[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 205capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
08d1e234 206actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
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
50b73fe1
JR
406AT_SETUP([OFPT_FEATURES_REPLY - OF1.4])
407AT_KEYWORDS([ofp-print])
408AT_CHECK([ovs-ofctl ofp-print "\
40905 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
41000 00 01 00 ff 00 00 00 00 00 07 6f 00 00 00 00 \
411"], [0], [dnl
412OFPT_FEATURES_REPLY (OF1.4) (xid=0x1): dpid:0000505400000001
413n_tables:255, n_buffers:256
414capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS IP_REASM QUEUE_STATS PORT_BLOCKED BUNDLES FLOW_MONITORING
415])
416AT_CLEANUP
417
418AT_SETUP([OFPT_FEATURES_REPLY - OF1.5])
419AT_KEYWORDS([ofp-print])
420AT_CHECK([ovs-ofctl ofp-print "\
42106 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
42200 00 01 00 ff 00 00 00 00 00 07 6f 00 00 00 00 \
423"], [0], [dnl
424OFPT_FEATURES_REPLY (OF1.5) (xid=0x1): dpid:0000505400000001
425n_tables:255, n_buffers:256
426capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS IP_REASM QUEUE_STATS PORT_BLOCKED BUNDLES FLOW_MONITORING
427])
428AT_CLEANUP
429
2e1ae200
JR
430AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
431AT_KEYWORDS([ofp-print])
432AT_CHECK([ovs-ofctl ofp-print "\
43304 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
43400 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
435"], [0], [dnl
436OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
437n_tables:255, n_buffers:256, auxiliary_id:1
438capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
439])
440AT_CLEANUP
441
fec00620
BP
442AT_SETUP([OFPT_GET_CONFIG_REQUEST])
443AT_KEYWORDS([ofp-print])
444AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
445OFPT_GET_CONFIG_REQUEST (xid=0x1):
446])
447AT_CLEANUP
448
449AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
450AT_KEYWORDS([ofp-print])
451AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
452OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
453])
454AT_CLEANUP
455
456
457AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
458AT_KEYWORDS([ofp-print])
459AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
460OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
461])
462AT_CLEANUP
463
7cfb9651 464AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 465AT_KEYWORDS([ofp-print])
fec00620
BP
466AT_CHECK([ovs-ofctl ofp-print "\
46701 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
46800 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
46945 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
470c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 47150 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 472"], [0], [dnl
f0fd1a17 473OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
e6d9ab56 474tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
fec00620
BP
475])
476AT_CLEANUP
477
210ba964 478AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data])
b4ccee75
SH
479AT_KEYWORDS([ofp-print])
480AT_CHECK([ovs-ofctl ofp-print "\
48101 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
48200 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
48345 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
484c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 48550 10 02 00 26 e8 00 00 00 00 00 00 00 00 \
b4ccee75
SH
486" 3], [0], [dnl
487OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
e6d9ab56 488tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=ack tcp_csum:26e8
b4ccee75
SH
48900000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00
49000000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8
dc235f7f 49100000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 10
b4ccee75
SH
49200000030 02 00 26 e8 00 00 00 00-00 00 00 00
493])
494AT_CLEANUP
495
4d197ebb
BP
496AT_SETUP([OFPT_PACKET_IN - OF1.1])
497AT_KEYWORDS([ofp-print])
498AT_CHECK([ovs-ofctl ofp-print "\
49902 0a 00 54 00 00 00 00 00 00 01 11 00 00 00 03 \
50000 00 00 03 00 3c 00 00 \
50150 54 00 00 00 06 50 54 00 00 00 05 08 00 \
50245 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
503c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
50450 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
505"], [0], [dnl
506OFPT_PACKET_IN (OF1.1) (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
e6d9ab56 507tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
4d197ebb
BP
508])
509AT_CLEANUP
510
7cfb9651
SH
511AT_SETUP([OFPT_PACKET_IN - OF1.2])
512AT_KEYWORDS([ofp-print])
513AT_CHECK([ovs-ofctl ofp-print "\
51403 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
51500 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
51600 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
eb19e5f0 51700 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \
7cfb9651
SH
51800 00 00 23 20 83 c1 5f 00 00 00 00 \
519"], [0], [dnl
520OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
e6d9ab56 521rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=1,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
7cfb9651
SH
522])
523AT_CLEANUP
524
b4ccee75
SH
525AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
526AT_KEYWORDS([ofp-print])
527AT_CHECK([ovs-ofctl ofp-print "\
52803 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
52900 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
53000 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
53100 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
53200 00 00 23 20 83 c1 5f 00 00 00 00 \
533" 3], [0], [dnl
534OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
e6d9ab56 535rarp,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
b4ccee75
SH
53600000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
53700000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
53800000020 00 23 20 83 c1 5f 00 00-00 00
539])
540AT_CLEANUP
541
2e1ae200
JR
542AT_SETUP([OFPT_PACKET_IN - OF1.3])
543AT_KEYWORDS([ofp-print])
544AT_CHECK([ovs-ofctl ofp-print "\
54504 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
54601 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
547ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
54800 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
54900 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
55000 00 00 00 \
551"], [0], [dnl
552OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
e6d9ab56 553rarp,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
b6a3dd9c
JT
554])
555AT_CLEANUP
556
557AT_SETUP([OFPT_PACKET_IN - OF1.4])
558AT_KEYWORDS([ofp-print])
559AT_CHECK([ovs-ofctl ofp-print "\
56005 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
56101 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
562ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
56300 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
56400 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
56500 00 00 00 \
566"], [0], [dnl
567OFPT_PACKET_IN (OF1.4) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
e6d9ab56 568rarp,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
b6a3dd9c
JT
569])
570AT_CLEANUP
571
572AT_SETUP([OFPT_PACKET_IN - OF1.5])
573AT_KEYWORDS([ofp-print])
574AT_CHECK([ovs-ofctl ofp-print "\
57506 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
57601 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
577ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
57800 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
57900 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
58000 00 00 00 \
581"], [0], [dnl
582OFPT_PACKET_IN (OF1.5) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
e6d9ab56 583rarp,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
584])
585AT_CLEANUP
586
b4ccee75
SH
587AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
588AT_KEYWORDS([ofp-print])
589AT_CHECK([ovs-ofctl ofp-print "\
59004 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
59101 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
592ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
59300 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
59400 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
59500 00 00 00 \
596" 3], [0], [dnl
597OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
e6d9ab56 598rarp,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
b4ccee75
SH
59900000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
60000000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
60100000020 00 23 20 83 c1 5f 00 00-00 00
602])
603AT_CLEANUP
604
eefbf181 605AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
606AT_KEYWORDS([ofp-print])
607AT_CHECK([ovs-ofctl ofp-print "\
60801 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
60900 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
61000 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
61100 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
61230 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
61300 00 00 00 00 00 00 3c \
614"], [0], [dnl
b1634591 615OFPT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.820s idle5 pkts1 bytes60
fec00620
BP
616])
617AT_CLEANUP
618
eefbf181
SH
619AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
620AT_KEYWORDS([ofp-print])
621AT_CHECK([ovs-ofctl ofp-print "\
62203 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
62380 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
62400 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
62500 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 626OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
627])
628AT_CLEANUP
629
2e1ae200
JR
630AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
631AT_KEYWORDS([ofp-print])
632AT_CHECK([ovs-ofctl ofp-print "\
63304 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
63480 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
63500 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
63600 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 637OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
2e1ae200
JR
638])
639AT_CLEANUP
640
c7b02b80
S
641AT_SETUP([OFPT_FLOW_REMOVED - OF1.5])
642AT_KEYWORDS([ofp-print])
643AT_CHECK([ovs-ofctl ofp-print "\
64406 0b 00 80 00 00 00 02 01 00 00 00 11 00 22 00 \
64500 00 00 00 00 00 00 01 00 01 00 2d 80 00 00 04 \
64600 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
6470a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
64800 00 00 00 00 00 00 00 00 00 00 34 80 02 00 08 \
64900 00 00 98 29 e6 ed c0 80 02 02 08 00 00 00 98 \
65000 00 00 00 80 02 08 08 00 00 00 00 00 00 00 02 \
65180 02 0a 08 00 00 00 00 00 00 00 80 00 00 00 00 \
652"], [0], [dnl
653OFPT_FLOW_REMOVED (OF1.5) (xid=0x2): priority=0,ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 reason=idle table_id=1 cookie:0x1 duration152.703s idle4352 hard8704 pkts2 bytes128
654])
655AT_CLEANUP
656
9e1fd49b 657AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
658AT_KEYWORDS([ofp-print])
659AT_CHECK([ovs-ofctl ofp-print "\
66001 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
66100 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
66200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
66300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
664"], [0], [dnl
0ab14c8e
BP
665OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
666 config: PORT_DOWN
667 state: LINK_DOWN
668 current: 100MB-FD AUTO_NEG
669 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
670 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
671 speed: 100 Mbps now, 100 Mbps max
672])
673AT_CLEANUP
674
675AT_SETUP([OFPT_PORT_STATUS - OF1.1])
676AT_KEYWORDS([ofp-print])
677AT_CHECK([ovs-ofctl ofp-print "\
67802 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
67900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
68065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
68100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
68200 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
683"], [0], [dnl
684OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
685 config: 0
686 state: 0
687 current: 100MB-FD AUTO_NEG
688 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
689 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
690 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
691])
692AT_CLEANUP
693
8c3cc785
BP
694AT_SETUP([OFPT_PORT_STATUS - OF1.4])
695AT_KEYWORDS([ofp-print])
696AT_CHECK([ovs-ofctl ofp-print "\
69705 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
69800 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
69965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
70000 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
70100 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
70200 01 86 a0 00 01 86 a0 \
703"], [0], [dnl
704OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
705 config: 0
706 state: 0
707 current: 100MB-FD AUTO_NEG
708 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
709 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
710 speed: 100 Mbps now, 100 Mbps max
711])
712AT_CLEANUP
713
eb5ee596 714AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
715AT_KEYWORDS([ofp-print])
716AT_CHECK([ovs-ofctl ofp-print "\
71701 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
71800 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
71900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
720b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
72100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
72200 00 00 00 \
723"], [0], [dnl
c6a93eb7 724OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
725])
726AT_CLEANUP
727
4b2d9d11
SH
728AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
729AT_KEYWORDS([ofp-print])
730AT_CHECK([ovs-ofctl ofp-print "\
73101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
73200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
73300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
734b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
73500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
73600 00 00 00 \
737"], [0], [dnl
738OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
e6d9ab56 739tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
4b2d9d11
SH
740])
741AT_CLEANUP
742
b4ccee75
SH
743AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
744AT_KEYWORDS([ofp-print])
745AT_CHECK([ovs-ofctl ofp-print "\
74601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
74700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
74800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
749b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
75000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
75100 00 00 00 \
752" 3], [0], [dnl
753OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
e6d9ab56 754tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
b4ccee75
SH
75500000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
75600000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
75700000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
75800000030 00 00 6d 75 00 00 00 00-00 00 00 00
759])
760AT_CLEANUP
761
eb5ee596
SH
762AT_SETUP([OFPT_PACKET_OUT - OF1.1])
763AT_KEYWORDS([ofp-print])
764AT_CHECK([ovs-ofctl ofp-print "\
76503 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
76600 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
76705 dc 00 00 00 00 00 00 \
768"], [0], [dnl
769OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
770])
771AT_CLEANUP
772
4b2d9d11
SH
773AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
774AT_KEYWORDS([ofp-print])
775AT_CHECK([ovs-ofctl ofp-print "\
77603 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
77700 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
77805 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
77900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
780b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
78100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
78200 00 00 00 \
783"], [0], [dnl
784OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
e6d9ab56 785tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
4b2d9d11
SH
786])
787AT_CLEANUP
788
577bfa9f
YHW
789AT_SETUP([OFPT_PACKET_OUT - OF1.5])
790AT_KEYWORDS([ofp-print packet-out])
791AT_CHECK([ovs-ofctl ofp-print "\
79206 0d 00 30 11 22 33 44 ff ff ff 00 00 10 00 00 \
79300 01 00 10 80 00 00 04 00 00 00 01 00 00 00 00 \
79400 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \
795"], [0], [dnl
796OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): in_port=1 actions=FLOOD buffer=0xffffff00
797])
798
799dnl missing in_port
800AT_CHECK([ovs-ofctl ofp-print "\
80106 0d 00 40 11 22 33 44 ff ff ff 00 00 10 00 00 \
80200 01 00 20 80 00 04 08 00 00 00 00 00 00 00 03 \
80380 00 4C 08 00 00 00 00 00 00 00 05 00 00 00 00 \
80400 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \
805"], [0], [dnl
806OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_BAD_PORT***
2d071a32
BP
80700000000 06 0d 00 40 11 22 33 44-ff ff ff 00 00 10 00 00 |...@."3D........|
80800000010 00 01 00 20 80 00 04 08-00 00 00 00 00 00 00 03 |... ............|
80900000020 80 00 4c 08 00 00 00 00-00 00 00 05 00 00 00 00 |..L.............|
81000000030 00 00 00 10 ff ff ff fb-05 dc 00 00 00 00 00 00 |................|
577bfa9f 811])
d7892c81
YHW
812
813AT_CHECK([ovs-ofctl ofp-print "\
81406 0d 00 48 11 22 33 44 ff ff ff 00 00 10 00 00 \
81500 01 00 28 80 00 00 04 00 00 00 01 80 00 04 08 \
81600 00 00 00 00 00 00 03 80 00 4C 08 00 00 00 00 \
81700 00 00 05 00 00 00 00 00 00 00 10 ff ff ff fb \
81805 dc 00 00 00 00 00 00 \
819"], [0], [dnl
820OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): tun_id=0x5,metadata=0x3,in_port=1 actions=FLOOD buffer=0xffffff00
821])
822
823dnl include non pipeline field
824AT_CHECK([ovs-ofctl ofp-print "\
82506 0d 00 38 11 22 33 44 ff ff ff 00 00 10 00 00 \
82600 01 00 18 80 00 00 04 00 00 00 01 80 00 16 04 \
82711 22 33 44 00 00 00 00 00 00 00 10 ff ff ff fb \
82805 dc 00 00 00 00 00 00 \
829"], [0], [dnl
830OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_PIPELINE_FIELDS_ONLY***
2d071a32
BP
83100000000 06 0d 00 38 11 22 33 44-ff ff ff 00 00 10 00 00 |...8."3D........|
832dnl "
83300000010 00 01 00 18 80 00 00 04-00 00 00 01 80 00 16 04 |................|
83400000020 11 22 33 44 00 00 00 00-00 00 00 10 ff ff ff fb |."3D............|
83500000030 05 dc 00 00 00 00 00 00- |........ |
d7892c81
YHW
836])
837
838AT_CLEANUP
839
840AT_SETUP([OFPT_PACKET_OUT - OF1.5, with packet])
841AT_KEYWORDS([ofp-print packet-out])
842AT_CHECK([ovs-ofctl ofp-print "\
84306 0d 00 74 11 22 33 44 ff ff ff ff 00 10 00 00 \
84400 01 00 18 80 00 00 04 00 00 00 01 80 00 04 08 \
84500 00 00 00 00 00 00 03 00 00 00 10 ff ff ff fb \
84605 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
84700 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
848b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
84900 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
85000 00 00 00
851"], [0], [dnl
852OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): metadata=0x3,in_port=1 actions=FLOOD data_len=60
853tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
854])
577bfa9f
YHW
855AT_CLEANUP
856
fec00620 857# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 858AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 859AT_KEYWORDS([ofp-print])
1c0b7503 860AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
86101 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
86200 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
86300 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
86400 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
86500 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
866" 2], [0], [dnl
666d0863 867OFPT_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 868], [dnl
0d71302e
BP
869ofp_match|INFO|normalization changed ofp_match, details:
870ofp_match|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
871ofp_match|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
872])
873AT_CLEANUP
874
75fa58f8
BP
875# The flow is formatted with cls_rule_format() for the low-verbosity case.
876AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
877AT_KEYWORDS([ofp-print])
878AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
879020e 0090 01020304 \
880da1aa3e035d87158 ffffffffffffffff \
88102 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
8820000 \
883\
8840000 0058 00000000 000003f7 \
885000000000000ffffffffffff 000000000000ffffffffffff \
8860000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
88700000000 00 000000 0000000000000000ffffffffffffffff \
888\
8890001 0008 03 000000 \
890" 2], [0], [dnl
891OFPT_FLOW_MOD (OF1.1) (xid=0x1020304): MOD table:2 priority=40000,arp,arp_spa=192.168.128.0/24 cookie:0xda1aa3e035d87158/0xffffffffffffffff idle:60 hard:120 send_flow_rem check_overlap actions=goto_table:3
892])
893AT_CLEANUP
894
1bf6eeb0
SH
895# The flow is formatted with cls_rule_format() for the low-verbosity case.
896AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
897AT_KEYWORDS([ofp-print])
898AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
89903 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 90000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
901ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
90200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
90350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
90480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
90500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
90600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
90700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
908" 2], [0], [dnl
0e197060 909OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
910], [dnl
911])
912AT_CLEANUP
913
eec25dc1
BP
914# The flow is formatted with ofp10_match_to_string() for the
915# high-verbosity case.
1bf6eeb0 916AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 917AT_KEYWORDS([ofp-print])
1c0b7503 918AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
91901 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
92000 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
92100 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
92200 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
92300 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
924" 3], [0], [dnl
de0f16bc 925OFPT_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 926], [dnl
0d71302e
BP
927ofp_match|INFO|normalization changed ofp_match, details:
928ofp_match|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
929ofp_match|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
930])
931AT_CLEANUP
932
1bf6eeb0
SH
933# The flow is formatted with cls_rule_format() for the low-verbosity case.
934AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
935AT_KEYWORDS([ofp-print])
936AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
93703 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 93800 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
939ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
94000 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
94150 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
94280 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
94300 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
94400 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
94500 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
946" 2], [0], [dnl
0e197060 947OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
948], [dnl
949])
950AT_CLEANUP
951
2e1ae200
JR
952# The flow is formatted with cls_rule_format() for the low-verbosity case.
953AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
954AT_KEYWORDS([ofp-print])
955AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
95604 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 95700 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
2e1ae200
JR
958ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
95900 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
96050 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
96180 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
96200 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
96300 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
96400 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
965" 2], [0], [dnl
0e197060 966OFPT_FLOW_MOD (OF1.3) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 send_flow_rem check_overlap reset_counts no_packet_counts no_byte_counts actions=output:3
2e1ae200
JR
967], [dnl
968])
969AT_CLEANUP
970
d55b18c8
IY
971AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
972AT_KEYWORDS([ofp-print])
973AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
97403 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
97500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
976ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
97700 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
97800 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
979c0 a8 03 5c 00 00 00 00 \
980" 2], [0], [dnl
981OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
982], [dnl
983])
984AT_CLEANUP
985
986AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
987AT_KEYWORDS([ofp-print])
988AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
98903 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
99000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
991ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
99200 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
99300 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
994c0 a8 4a 7a 00 00 00 00 \
995" 2], [0], [dnl
996OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
997], [dnl
998])
999AT_CLEANUP
1000
0d56eaf2
JS
1001AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
1002AT_KEYWORDS([ofp-print])
1003AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
100403 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
100500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1006ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
100700 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
100800 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
10090d 06 00 00 00 00 00 00 \
1010" 2], [0], [dnl
1011OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
1012], [dnl
1013])
1014AT_CLEANUP
1015
1016AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
1017AT_KEYWORDS([ofp-print])
1018AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
101903 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
102000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1021ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
102200 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
102300 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
102411 5d 00 00 00 00 00 00 \
1025" 2], [0], [dnl
1026OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
1027], [dnl
1028])
1029AT_CLEANUP
1030
508a9338
BP
1031AT_SETUP([OFPT_FLOW_MOD - OF1.2 - experimenter OXM])
1032AT_KEYWORDS([ofp-print])
1033AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
103403 0e 00 48 52 33 45 07 00 00 00 00 00 00 00 00 \
103500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1036ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
103700 01 00 14 ff ff 01 0c 00 00 23 20 01 23 45 67 \
10380f ff ff ff 00 00 00 00
1039" 2], [0], [dnl
1040OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,dp_hash=0x1234567/0xfffffff actions=drop
1041], [dnl
1042])
1043AT_CLEANUP
1044
e60e935b
SRCSA
1045AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field nd_target, nd_sll])
1046AT_KEYWORDS([ofp-print])
1047AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
104803 0e 00 78 00 00 00 02 00 00 00 00 00 00 00 00 \
104900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
1050ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
105100 01 00 14 80 00 0a 02 86 dd 80 00 14 01 3a 80 \
105200 3a 01 87 00 00 00 00 00 04 00 30 00 00 00 00 \
105300 19 00 18 80 00 3e 10 00 00 00 00 00 00 00 00 \
105400 00 00 00 00 00 00 01 00 19 00 10 80 00 40 06 \
1055aa aa aa aa aa aa 00 00
1056" 2], [0], [dnl
1057OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD priority=255,icmp6,icmp_type=135 actions=set_field:::1->nd_target,set_field:aa:aa:aa:aa:aa:aa->nd_sll
1058], [dnl
1059])
1060AT_CLEANUP
1061
b2a27ddc
BP
1062dnl This triggered a buggy "instructions out of order" message earlier.
1063AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
1064AT_KEYWORDS([ofp-print])
1065AT_CHECK([ovs-ofctl ofp-print "\
106604 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
106700 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
1068ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
106900 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
1070OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
1071])
1072AT_CLEANUP
1073
d55b18c8
IY
1074AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
1075AT_KEYWORDS([ofp-print])
1076AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
107703 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
107800 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
107900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108100 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
108200 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
1083c0 a8 03 5c 00 00 00 00 \
1084" 2], [0], [dnl
1085OFPST_FLOW reply (OF1.2) (xid=0x52334504):
1086 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
1087], [dnl
1088])
1089AT_CLEANUP
1090
1091AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
1092AT_KEYWORDS([ofp-print])
1093AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
109403 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
109500 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
109600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109800 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
109900 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
1100c0 a8 4a 7a 00 00 00 00 \
1101" 2], [0], [dnl
1102OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1103 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
1104], [dnl
1105])
1106AT_CLEANUP
1107
0d56eaf2
JS
1108AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
1109AT_KEYWORDS([ofp-print])
1110AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
111103 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
111200 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
111300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111500 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
111600 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
11170d 06 00 00 00 00 00 00 \
1118" 2], [0], [dnl
1119OFPST_FLOW reply (OF1.2) (xid=0x52334504):
1120 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
1121], [dnl
1122])
1123AT_CLEANUP
1124
1125AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
1126AT_KEYWORDS([ofp-print])
1127AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
112803 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
112900 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
113000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113200 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
113300 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
113411 5d 00 00 00 00 00 00 \
1135" 2], [0], [dnl
1136OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1137 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
1138], [dnl
1139])
1140AT_CLEANUP
1141
9e1fd49b 1142AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
1143AT_KEYWORDS([ofp-print])
1144AT_CHECK([ovs-ofctl ofp-print "\
114501 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
114600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1147" 3], [0], [dnl
3e461c2c 1148OFPT_PORT_MOD (xid=0x3): port: 3: addr:50:54:00:00:00:01
9e1fd49b
BP
1149 config: PORT_DOWN
1150 mask: PORT_DOWN
1151 advertise: UNCHANGED
1152])
1153AT_CLEANUP
1154
1155AT_SETUP([OFPT_PORT_MOD - OF1.1])
1156AT_KEYWORDS([ofp-print])
1157AT_CHECK([ovs-ofctl ofp-print "\
115802 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
115950 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
116000 00 00 00 00 00 00 00 \
1161" 3], [0], [dnl
3e461c2c 1162OFPT_PORT_MOD (OF1.1) (xid=0x3): port: 3: addr:50:54:00:00:00:01
9e1fd49b
BP
1163 config: PORT_DOWN
1164 mask: PORT_DOWN
fec00620
BP
1165 advertise: UNCHANGED
1166])
1167AT_CLEANUP
1168
bb2bc3c1
SH
1169AT_SETUP([OFPT_PORT_MOD - OF1.2])
1170AT_KEYWORDS([ofp-print])
1171AT_CHECK([ovs-ofctl ofp-print "\
117203 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
117350 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
117400 00 00 00 00 00 00 00 \
1175" 3], [0], [dnl
3e461c2c 1176OFPT_PORT_MOD (OF1.2) (xid=0x3): port: 3: addr:50:54:00:00:00:01
bb2bc3c1
SH
1177 config: PORT_DOWN
1178 mask: PORT_DOWN
1179 advertise: UNCHANGED
1180])
1181AT_CLEANUP
1182
2e1ae200
JR
1183AT_SETUP([OFPT_PORT_MOD - OF1.3])
1184AT_KEYWORDS([ofp-print])
1185AT_CHECK([ovs-ofctl ofp-print "\
118604 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
118750 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
118800 00 00 00 00 00 00 00 \
1189" 3], [0], [dnl
3e461c2c 1190OFPT_PORT_MOD (OF1.3) (xid=0x3): port: 3: addr:50:54:00:00:00:01
2e1ae200
JR
1191 config: PORT_DOWN
1192 mask: PORT_DOWN
1193 advertise: UNCHANGED
1194])
1195AT_CLEANUP
1196
18cc69d9
BP
1197AT_SETUP([OFPT_PORT_MOD - OF1.4])
1198AT_KEYWORDS([ofp-print])
1199AT_CHECK([ovs-ofctl ofp-print "\
120005 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
120150 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
120200 00 00 08 00 00 00 01
1203" 3], [0], [dnl
3e461c2c 1204OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01
18cc69d9
BP
1205 config: PORT_DOWN
1206 mask: PORT_DOWN
1207 advertise: 10MB-HD
1208])
1209AT_CLEANUP
1210
918f2b82
AZ
1211AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1212AT_KEYWORDS([ofp-print])
1213AT_CHECK([ovs-ofctl ofp-print "\
121402 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1215" 3], [0], [dnl
1216OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1217])
1218AT_CLEANUP
1219
1220AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1221AT_KEYWORDS([ofp-print])
1222AT_CHECK([ovs-ofctl ofp-print "\
122303 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1224" 3], [0], [dnl
1225OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1226])
1227AT_CLEANUP
1228
1229AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1230AT_KEYWORDS([ofp-print])
1231AT_CHECK([ovs-ofctl ofp-print "\
123204 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1233" 3], [0], [dnl
3c1bb396 1234OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2
918f2b82
AZ
1235])
1236AT_CLEANUP
1237
37ab26e8
BP
1238AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1239AT_KEYWORDS([ofp-print])
1240AT_CHECK([ovs-ofctl ofp-print "\
124105 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1242" 3], [0], [dnl
de7d3c07 1243OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, eviction=off, vacancy=off
37ab26e8
BP
1244])
1245AT_CLEANUP
1246
fec00620
BP
1247AT_SETUP([OFPST_DESC request])
1248AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1249AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1250OFPST_DESC request (xid=0x1):
1251])
1252AT_CLEANUP
1253
1254AT_SETUP([OFPST_DESC reply])
1255AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1256AT_CHECK([ovs-ofctl ofp-print "\
125701 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
125872 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
125900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
126000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127300 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
127420 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
127500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128900 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
129030 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
129100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130500 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
130600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130700 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
130800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
130900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132300 00 00 00 00 00 00 00 00 00 00 00 \
1324"], [0], [dnl
1325OFPST_DESC reply (xid=0x1):
e0edde6f 1326Manufacturer: Nicira, Inc.
fec00620
BP
1327Hardware: Open vSwitch
1328Software: 1.1.0pre2
1329Serial Num: None
1330DP Description: None
1331])
1332AT_CLEANUP
1333
0157ad3a 1334AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1335AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1336AT_CHECK([ovs-ofctl ofp-print "\
133701 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1338ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
133900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134000 00 00 00 ff 00 ff ff \
1341"], [0], [dnl
f92ef1a8 1342OFPST_FLOW request (xid=0x4):
fec00620
BP
1343])
1344AT_CLEANUP
1345
0157ad3a
SH
1346AT_SETUP([OFPST_FLOW request - OF1.2])
1347AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1348AT_CHECK([ovs-ofctl ofp-print "\
134903 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1350ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
135100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
135200 01 00 04 00 00 00 00 \
1353"], [0], [dnl
f92ef1a8 1354OFPST_FLOW request (OF1.2) (xid=0x2):
0157ad3a
SH
1355])
1356AT_CLEANUP
1357
2e1ae200
JR
1358AT_SETUP([OFPST_FLOW request - OF1.3])
1359AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1360AT_CHECK([ovs-ofctl ofp-print "\
136104 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1362ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
136300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
136400 01 00 04 00 00 00 00 \
1365"], [0], [dnl
f92ef1a8 1366OFPST_FLOW request (OF1.3) (xid=0x2):
2e1ae200
JR
1367])
1368AT_CLEANUP
1369
c7b02b80
S
1370AT_SETUP([OFPST_FLOW request - OF1.5])
1371AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1372AT_CHECK([ovs-ofctl ofp-print "\
137306 12 00 38 00 00 00 04 00 01 00 00 00 00 00 00 \
1374ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
137500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137600 01 00 04 00 00 00 00 \
1377"], [0], [dnl
1378OFPST_FLOW request (OF1.5) (xid=0x4):
1379])
1380AT_CLEANUP
1381
6ec5f0c5 1382AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1383AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1384AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 138501 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
138600 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
138700 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1388c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1389ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
139000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
139100 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
139200 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
139300 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1394c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1395ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
139600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
139700 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
139800 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
139900 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1400c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1401ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
140200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
140300 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 140400 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
140500 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1406c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 140780 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
140800 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
140900 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
141000 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
141100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
141200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
141300 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
141400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
141500 00 00 00 00 00 00 00 \
fec00620
BP
1416"], [0], [dnl
1417OFPST_FLOW reply (xid=0x4):
b1634591
BP
1418 cookie=0x0, duration=4.200s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1
1419 cookie=0x0, duration=8.900s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, priority=65535,icmp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
1420 cookie=0x0, duration=4.280s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=1,nw_tos=0,tp_src=0,tp_dst=0 actions=output:3
b9718b7b 1421 cookie=0x0, duration=9.096s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, icmp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,icmp_type=8,icmp_code=0 actions=output:1
05b8f1c2 1422 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1423])
1424AT_CLEANUP
1425
6ec5f0c5
SH
1426AT_SETUP([OFPST_FLOW reply - OF1.2])
1427AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1428AT_CHECK([ovs-ofctl ofp-print "\
142903 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
143000 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
143100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
143200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
143300 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1434ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
143500 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
143600 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
143705 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
143820 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
143900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
144000 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
144100 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
14420a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
144300 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
144400 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
144500 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
144600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
144700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
144800 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
144952 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
145000 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
145100 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
145205 dc 00 00 00 00 00 00 \
1453"], [0], [dnl
1454OFPST_FLOW reply (OF1.2) (xid=0x2):
1455 cookie=0x0, duration=3.023s, table=0, n_packets=1, n_bytes=98, ip,metadata=0,in_port=2,dl_dst=ca:da:ad:d6:0d:37,nw_tos=0 actions=output:2
1456 cookie=0x0, duration=4.545s, table=0, n_packets=2, n_bytes=140, ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 actions=output:2
1457 cookie=0x0, duration=4.548s, table=0, n_packets=1, n_bytes=42, ip,metadata=0,in_port=2,dl_dst=52:54:00:97:00:69,nw_tos=0 actions=output:2
1458])
1459AT_CLEANUP
1460
c7b02b80
S
1461AT_SETUP([OFPST_FLOW reply - OF1.5])
1462AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1463AT_CHECK([ovs-ofctl ofp-print "\
146406 13 01 00 00 00 00 04 00 01 00 00 00 00 00 00 \
146500 78 00 00 00 00 80 00 00 00 00 00 00 05 00 00 \
146600 00 00 00 00 00 00 00 00 01 00 0c 80 00 00 04 \
146700 00 00 02 00 00 00 00 00 00 00 34 80 02 00 08 \
146800 00 00 c4 0b 06 e0 40 80 02 02 08 00 00 00 c4 \
146900 00 00 00 80 02 08 08 00 00 00 00 00 00 00 02 \
147080 02 0a 08 00 00 00 00 00 00 00 80 00 00 00 00 \
147100 04 00 18 00 00 00 00 00 00 00 10 ff ff ff fa \
147200 00 00 00 00 00 00 00 00 78 00 00 00 00 0f a0 \
147300 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 \
147400 01 00 0c 80 00 00 04 00 00 00 03 00 00 00 00 \
147500 00 00 34 80 02 00 08 00 00 00 b3 25 40 be 40 \
147680 02 02 08 00 00 00 b3 00 00 00 00 80 02 08 08 \
147700 00 00 00 00 00 00 02 80 02 0a 08 00 00 00 00 \
147800 00 00 80 00 00 00 00 00 04 00 18 00 00 00 00 \
147900 00 00 10 ff ff ff fa 00 00 00 00 00 00 00 00 \
1480"], [0], [dnl
1481OFPST_FLOW reply (OF1.5) (xid=0x4):
1482 cookie=0x0, duration=196.185s, table=0, n_packets=2, n_bytes=128, send_flow_rem reset_counts idle_age=196, in_port=2 actions=NORMAL
1483 cookie=0x0, duration=179.625s, table=0, n_packets=2, n_bytes=128, send_flow_rem reset_counts idle_age=179, priority=4000,in_port=3 actions=NORMAL
1484])
1485AT_CLEANUP
1486
617da9cd 1487AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1488AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1489AT_CHECK([ovs-ofctl ofp-print "\
149001 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1491ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
149200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
149300 00 00 00 ff 00 ff ff \
1494"], [0], [dnl
f92ef1a8 1495OFPST_AGGREGATE request (xid=0x4):
fec00620
BP
1496])
1497AT_CLEANUP
1498
617da9cd
SH
1499AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1500AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1501AT_CHECK([ovs-ofctl ofp-print "\
150203 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1503ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
150400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150500 01 00 04 00 00 00 00 \
1506"], [0], [dnl
f92ef1a8 1507OFPST_AGGREGATE request (OF1.2) (xid=0x2):
617da9cd
SH
1508])
1509AT_CLEANUP
1510
2e1ae200
JR
1511AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1512AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1513AT_CHECK([ovs-ofctl ofp-print "\
151404 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1515ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
151600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151700 01 00 04 00 00 00 00 \
1518"], [0], [dnl
f92ef1a8 1519OFPST_AGGREGATE request (OF1.3) (xid=0x2):
2e1ae200
JR
1520])
1521AT_CLEANUP
1522
c7b02b80
S
1523AT_SETUP([OFPST_AGGREGATE request - OF1.5])
1524AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1525AT_CHECK([ovs-ofctl ofp-print "\
152606 12 00 60 00 00 00 04 00 02 00 00 00 00 00 00 \
1527ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
152800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152900 01 00 04 00 00 00 00 00 00 00 24 80 02 06 04 \
153000 00 00 00 80 02 08 08 00 00 00 00 00 00 00 00 \
153180 02 0a 08 00 00 00 00 00 00 00 00 00 00 00 00 \
1532"], [0], [dnl
1533OFPST_AGGREGATE request (OF1.5) (xid=0x4):
1534])
1535AT_CLEANUP
1536
617da9cd 1537AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1538AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1539AT_CHECK([ovs-ofctl ofp-print "\
154001 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
154100 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
154200 00 00 00 \
1543"], [0], [dnl
1544OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1545])
1546AT_CLEANUP
1547
617da9cd
SH
1548AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1549AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1550AT_CHECK([ovs-ofctl ofp-print "\
155103 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
155200 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
155300 00 00 03 00 00 00 00 \
1554"], [0], [dnl
1555OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1556])
1557AT_CLEANUP
1558
2e1ae200
JR
1559AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1560AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1561AT_CHECK([ovs-ofctl ofp-print "\
156204 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
156300 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
156400 00 00 03 00 00 00 00 \
1565"], [0], [dnl
1566OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1567])
1568AT_CLEANUP
1569
c7b02b80
S
1570AT_SETUP([OFPST_AGGREGATE reply - OF1.5])
1571AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1572AT_CHECK([ovs-ofctl ofp-print "\
157306 13 00 38 00 00 00 04 00 02 00 00 00 00 00 00 \
157400 00 00 24 80 02 06 04 00 00 00 03 80 02 08 08 \
157500 00 00 00 00 00 00 79 80 02 0a 08 00 00 00 00 \
157600 00 4b 4f 00 00 00 00 \
1577"], [0], [dnl
1578OFPST_AGGREGATE reply (OF1.5) (xid=0x4): packet_count=121 byte_count=19279 flow_count=3
1579])
1580AT_CLEANUP
1581
307975da 1582AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1583AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1584AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1585OFPST_TABLE request (xid=0x1):
1586])
1587AT_CLEANUP
1588
307975da
SH
1589AT_SETUP([OFPST_TABLE request - OF1.1])
1590AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1591AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1592OFPST_TABLE request (OF1.1) (xid=0x2):
1593])
1594AT_CLEANUP
1595
1596AT_SETUP([OFPST_TABLE request - OF1.2])
1597AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1598AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1599OFPST_TABLE request (OF1.2) (xid=0x2):
1600])
1601AT_CLEANUP
1602
2e1ae200
JR
1603AT_SETUP([OFPST_TABLE request - OF1.3])
1604AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1605AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1606OFPST_TABLE request (OF1.3) (xid=0x2):
1607])
1608AT_CLEANUP
1609
26df8b3e 1610AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1611AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1612AT_CHECK([ovs-ofctl ofp-print "\
161301 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
161463 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
161500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
161600 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
161700 00 00 00 00 00 00 00 00 00 00 00 \
1618"], [0], [dnl
3c1bb396
BP
1619OFPST_TABLE reply (xid=0x1):
1620 table 0 ("classifier"):
1621 active=11, lookup=0, matched=0
1622 max_entries=1048576
1623 matching:
95a5454c 1624 exact match or wildcard: in_port eth_{src,dst,type} vlan_{vid,pcp} ip_{src,dst} nw_{proto,tos} tcp_{src,dst}
fec00620
BP
1625])
1626AT_CLEANUP
1627
26df8b3e
SH
1628AT_SETUP([OFPST_TABLE reply - OF1.2])
1629AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
8811fc0a
BP
1630(echo 'OFPST_TABLE reply (OF1.2) (xid=0x2):
1631 table 0 ("classifier"):
1632 active=1, lookup=74614, matched=106024
3c1bb396
BP
1633 config=controller
1634 max_entries=1000000
1635 instructions (table miss and others):
95a5454c 1636 instructions: write_metadata goto_table
3c1bb396 1637 Write-Actions and Apply-Actions features:
95a5454c 1638 supported on Set-Field: metadata in_port_oxm eth_{src,dst,type} vlan_{vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst,label} nw_proto ip_dscp nw_ecn arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll}
3c1bb396 1639 matching:
95a5454c 1640 exact match or wildcard: metadata in_port_oxm eth_{src,dst,type} vlan_{vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst,label} nw_proto ip_dscp nw_ecn arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll}
8811fc0a
BP
1641
1642 table 1 ("table1"):
1643 active=0, lookup=0, matched=0
1644 (same features)
1645'
1646 for i in `seq 2 253`; do
1647 printf ' table %d ("table%d"): ditto\n' $i $i
26df8b3e 1648 done
8811fc0a
BP
1649 echo ' table 254 ("table254"):
1650 active=2, lookup=0, matched=0
1651 (same features)') > expout
26df8b3e
SH
1652
1653(pad32="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
1654 pad7="00 00 00 00 00 00 00 "
1655 mid="00 00 00 0f ff ff ff ff \
165600 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
165700 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
165800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165900 00 00 07 00 00 00 00 00 0f 42 40 "
1660 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1661
45a9c31d 1662 printf "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
26df8b3e
SH
1663
1664 x=0
1665 printf "%02x $pad7" $x
1666 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
45a9c31d
BP
1667 printf "$mid 00 00 00 01 "
1668 printf "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
26df8b3e
SH
1669
1670 x=1
1671 while test $x -lt 254; do
1672 printf "%02x $pad7" $x
1673 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
45a9c31d 1674 printf "$mid 00 00 00 00 $tail "
26df8b3e
SH
1675 x=`expr $x + 1`
1676 done
1677
1678 x=254
1679 printf "%02x $pad7" $x
1680 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
45a9c31d 1681 printf "$mid 00 00 00 02 $tail") > in
8b227701 1682AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1683AT_CLEANUP
1684
2e1ae200
JR
1685AT_SETUP([OFPST_TABLE reply - OF1.3])
1686AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1687AT_CHECK([ovs-ofctl ofp-print "\
168804 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
168900 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
169000 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
169100 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1692"], [0], [dnl
3c1bb396
BP
1693OFPST_TABLE reply (OF1.3) (xid=0x1):
1694 table 0:
1695 active=11, lookup=512, matched=256
1696
1697 table 1:
1698 active=12, lookup=513, matched=257
2e1ae200
JR
1699])
1700AT_CLEANUP
1701
f8e4867e 1702AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1703AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1704AT_CHECK([ovs-ofctl ofp-print "\
170501 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
170600 00 00 00 \
1707"], [0], [dnl
e1db42d6 1708OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1709])
1710AT_CLEANUP
1711
f8e4867e
SH
1712AT_SETUP([OFPST_PORT request - 1.1])
1713AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1714AT_CHECK([ovs-ofctl ofp-print "\
171502 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1716ff ff ff ff 00 00 00 00 \
1717"], [0], [dnl
e1db42d6 1718OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1719])
1720AT_CLEANUP
1721
1722AT_SETUP([OFPST_PORT request - 1.2])
1723AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1724AT_CHECK([ovs-ofctl ofp-print "\
172503 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1726ff ff ff ff 00 00 00 00 \
1727"], [0], [dnl
e1db42d6 1728OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1729])
1730AT_CLEANUP
1731
2e1ae200
JR
1732AT_SETUP([OFPST_PORT request - 1.3])
1733AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1734AT_CHECK([ovs-ofctl ofp-print "\
173504 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1736ff ff ff ff 00 00 00 00 \
1737"], [0], [dnl
e1db42d6 1738OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1739])
1740AT_CLEANUP
1741
f8e4867e 1742AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1743AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1744AT_CHECK([ovs-ofctl ofp-print "\
174501 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
174600 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
174700 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
174800 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
174900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175200 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
175300 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
175400 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
175500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175800 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
175900 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
176000 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
176100 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
176200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
176300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
176400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
176500 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
176600 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
176700 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
176800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
176900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
177000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
177100 00 00 00 00 00 00 00 00 00 00 00 \
1772"], [0], [dnl
1773OFPST_PORT reply (xid=0x1): 4 ports
1774 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1775 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1776 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1777 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1778 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1779 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1780 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1781 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1782])
1783AT_CLEANUP
1784
f8e4867e
SH
1785AT_SETUP([OFPST_PORT reply - OF1.2])
1786AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1787AT_CHECK([ovs-ofctl ofp-print "\
178803 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
178900 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
179000 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
179100 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
179200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179500 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
179600 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
179700 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
179800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180200 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
180300 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
180400 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
180500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180800 00 00 00 00 00 00 00 \
1809"], [0], [dnl
1810OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1811 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1812 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1813 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1814 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1815 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1816 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1817])
1818AT_CLEANUP
1819
65e0be10
BP
1820AT_SETUP([OFPST_PORT reply - OF1.3])
1821AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1822AT_CHECK([ovs-ofctl ofp-print "\
182304 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
182400 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
182500 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
182600 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
182700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183000 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1831ff ff ff fe 00 00 00 00 \
183200 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
183300 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
183400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1838ff ff ff ff ff ff ff ff \
183900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
184000 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
184100 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
184200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184500 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1846"], [0], [dnl
1847OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1848 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1849 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1850 duration=1.001s
1851 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1852 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1853 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1854 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1855 duration=0.123s
1856])
1857AT_CLEANUP
1858
5469537b
BP
1859AT_SETUP([OFPST_PORT reply - OF1.4])
1860AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1861AT_CHECK([ovs-ofctl ofp-print "\
186205 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
186300 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
186400 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
186500 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
186600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186800 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
186900 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
187000 00 00 00 00 00 00 ff \
1871"], [0], [dnl
1872OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1873 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1874 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1875 duration=1.001s
1876])
1877AT_CLEANUP
1878
64626975 1879AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1880AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1881AT_CHECK([ovs-ofctl ofp-print "\
188201 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1883ff ff ff ff \
1884"], [0], [dnl
3e461c2c 1885OFPST_QUEUE request (xid=0x1): port=ANY queue=ALL
fec00620
BP
1886])
1887AT_CLEANUP
1888
64626975
SH
1889AT_SETUP([OFPST_QUEUE request - OF1.1])
1890AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1891AT_CHECK([ovs-ofctl ofp-print "\
189202 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1893ff ff ff ff ff ff ff ff \
64626975 1894"], [0], [dnl
3e461c2c 1895OFPST_QUEUE request (OF1.1) (xid=0x2): port=ANY queue=ALL
64626975
SH
1896])
1897AT_CLEANUP
1898
1899AT_SETUP([OFPST_QUEUE request - OF1.2])
1900AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1901AT_CHECK([ovs-ofctl ofp-print "\
190203 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1903ff ff ff ff ff ff ff ff \
64626975 1904"], [0], [dnl
3e461c2c 1905OFPST_QUEUE request (OF1.2) (xid=0x2): port=ANY queue=ALL
64626975
SH
1906])
1907AT_CLEANUP
1908
2e1ae200
JR
1909AT_SETUP([OFPST_QUEUE request - OF1.3])
1910AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1911AT_CHECK([ovs-ofctl ofp-print "\
191204 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1913ff ff ff ff ff ff ff ff \
1914"], [0], [dnl
3e461c2c 1915OFPST_QUEUE request (OF1.3) (xid=0x2): port=ANY queue=ALL
2e1ae200
JR
1916])
1917AT_CLEANUP
1918
64626975 1919AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1920AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1921AT_CHECK([ovs-ofctl ofp-print "\
192201 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
192300 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
192400 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
192500 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
192600 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
192700 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
192800 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
192900 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
193000 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
193100 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
193200 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
193300 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
193400 00 00 00 00 00 00 00 00 00 00 00 \
1935"], [0], [dnl
1936OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1937 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1938 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1939 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1940 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1941 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1942 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1943])
1944AT_CLEANUP
1945
64626975
SH
1946AT_SETUP([OFPST_QUEUE reply - OF1.1])
1947AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1948AT_CHECK([ovs-ofctl ofp-print "\
194902 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
195000 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
195100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
195200 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
195300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
195400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
195500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
195600 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
195700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
195800 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
195900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
196000 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
196100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1962"], [0], [dnl
1963OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1964 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1965 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1966 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1967 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1968 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1969 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1970])
1971AT_CLEANUP
1972
1973AT_SETUP([OFPST_QUEUE reply - OF1.2])
1974AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1975AT_CHECK([ovs-ofctl ofp-print "\
197603 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
197700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
197800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
197900 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
198000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
198100 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
198200 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
198300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
198400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
198500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
198600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
198700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
198800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1989"], [0], [dnl
1990OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1991 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1992 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1993 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1994 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1995 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1996 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1997])
1998AT_CLEANUP
be0c30df
BP
1999
2000AT_SETUP([OFPST_QUEUE reply - OF1.3])
2001AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2002AT_CHECK([ovs-ofctl ofp-print "\
200304 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
200400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
200500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
200600 00 00 64 1d cd 65 00 \
200700 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
200800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
200900 00 00 64 1d cd 65 00 \
201000 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
201100 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
201200 00 00 64 1d cd 65 00 \
201300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
201400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
201500 00 00 64 1d cd 65 00 \
201600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
201700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
201800 00 00 64 1d cd 65 00 \
201900 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
202000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2021ff ff ff ff ff ff ff ff \
2022"], [0], [dnl
2023OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
2024 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
2025 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2026 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
2027 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2028 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 2029 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
2030])
2031AT_CLEANUP
2032
1bb2cdbe
BP
2033AT_SETUP([OFPST_QUEUE reply - OF1.4])
2034AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2035AT_CHECK([ovs-ofctl ofp-print "\
203605 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
203700 30 00 00 00 00 00 00 \
203800 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
203900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
204000 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
204100 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
204200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
204300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
204400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
204500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
204600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
204700 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
204800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
204900 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
205000 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
205100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
205200 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
205300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
205400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2055ff ff ff ff ff ff ff ff \
2056"], [0], [dnl
2057OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
2058 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
2059 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2060 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
2061 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2062 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
2063 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
2064])
2065AT_CLEANUP
2066
7b809df9
BP
2067AT_SETUP([NXST_GROUP request - OF1.0])
2068AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2069AT_CHECK([ovs-ofctl ofp-print "\
207001 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \
2071ff ff ff ff 00 00 00 00 \
2072"], [0], [NXST_GROUP request (xid=0x4): group_id=ANY
2073])
2074AT_CLEANUP
2075
2076AT_SETUP([OFPST_GROUP request - OF1.1])
7395c052
NZ
2077AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2078AT_CHECK([ovs-ofctl ofp-print "\
207902 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
2080ff ff ff ff 00 00 00 00 \
2081"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
2082])
2083AT_CLEANUP
2084
7b809df9
BP
2085AT_SETUP([NXST_GROUP reply - OF1.0])
2086AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2087AT_CHECK([ovs-ofctl ofp-print "\
208801 11 00 b8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \
208900 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
209000 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
209100 00 00 12 1d cd 65 00 \
209200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
209300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
209400 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
209500 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
209600 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
209700 00 00 10 1d cd 65 00 \
209800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
209900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2100"], [0], [dnl
2101NXST_GROUP reply (xid=0x4):
2102 group_id=2271560481,duration=18.500s,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
2103 group_id=5,duration=16.500s,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
2104])
2105AT_CLEANUP
2106
7395c052
NZ
2107AT_SETUP([OFPST_GROUP reply - OF1.1])
2108AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2109AT_CHECK([ovs-ofctl ofp-print "\
211002 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
211100 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
211200 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
211300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
211400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
211500 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
211600 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
211700 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
211800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
211900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2120"], [0], [dnl
2121OFPST_GROUP reply (OF1.1) (xid=0x2):
2122 group_id=2271560481,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
2123 group_id=5,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
2124])
2125AT_CLEANUP
2126
2127AT_SETUP([OFPST_GROUP reply - OF1.3])
2128AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2129AT_CHECK([ovs-ofctl ofp-print "\
213004 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
213100 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
213200 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
213300 00 00 12 1d cd 65 00 \
213400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
213500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
213600 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
213700 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
213800 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
213900 00 00 10 1d cd 65 00 \
214000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
214100 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2142"], [0], [dnl
2143OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
2144 group_id=2271560481,duration=18.500s,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
2145 group_id=5,duration=16.500s,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
7395c052
NZ
2146])
2147AT_CLEANUP
2148
7b809df9
BP
2149AT_SETUP([NXST_GROUP_DESC request - OF1.0])
2150AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2151AT_CHECK([ovs-ofctl ofp-print "\
215201 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \
215300 00 00 01 00 00 00 00
2154"], [0], [NXST_GROUP_DESC request (xid=0x4): group_id=1
2155])
2156AT_CLEANUP
2157
19187a71 2158AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
2159AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2160AT_CHECK([ovs-ofctl ofp-print "\
216102 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
2162"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
2163])
2164AT_CLEANUP
2165
2166AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
2167AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2168AT_CHECK([ovs-ofctl ofp-print "\
d4d3f33e
MT
216906 12 00 18 00 00 00 02 00 07 00 00 00 00 00 00 \
217000 00 00 01 00 00 00 00
19187a71 2171"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
2172])
2173AT_CLEANUP
2174
7b809df9
BP
2175AT_SETUP([NXST_GROUP_DESC reply - OF1.0])
2176AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2177AT_CHECK([ovs-ofctl ofp-print "\
217801 11 00 c8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \
217900 b0 01 00 00 00 20 00 00 60 00 00 00 00 00 00 \
218000 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
218100 00 00 08 00 64 00 00 \
218200 01 00 08 00 00 00 01 \
218300 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
218400 00 00 08 00 c8 00 00 \
218500 01 00 08 00 00 00 02 \
218600 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
218700 00 00 08 00 c8 00 00 \
218800 01 00 08 00 00 00 03 \
2189ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
219068 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
219100 00 00 00 00 00 00 00 \
219280 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
219314 01 ff 00 00 00 00 00 \
2194"], [0], [dnl
2195NXST_GROUP_DESC reply (xid=0x4):
2196 group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2197])
2198AT_CLEANUP
2199
76c41209 2200AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
7395c052
NZ
2201AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2202AT_CHECK([ovs-ofctl ofp-print "\
220302 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
220400 68 01 00 00 00 20 00 \
220500 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
220600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
220700 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
220800 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
220900 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
221000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2211"], [0], [dnl
2212OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2213 group_id=8192,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
2214])
2215AT_CLEANUP
2216
76c41209
SH
2217AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2218AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2219AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 222006 13 00 d8 00 00 00 02 00 07 00 00 00 00 00 00 \
3986cae6 222100 c8 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
76c41209
SH
222200 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
222300 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
222400 01 00 08 00 00 00 01 \
222500 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
222600 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
222700 01 00 08 00 00 00 02 \
222800 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
222900 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
223000 01 00 08 00 00 00 03 \
0c4b9393
SH
2231ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
223268 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
223300 00 00 00 00 00 00 00 \
223480 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
223514 01 ff 00 00 00 00 00 \
76c41209
SH
2236"], [0], [dnl
2237OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
68dfc25b 2238 group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
76c41209
SH
2239])
2240AT_CLEANUP
2241
7b809df9
BP
2242AT_SETUP([NXST_GROUP_FEATURES request])
2243AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2244AT_CHECK([ovs-ofctl ofp-print "\
224501 10 00 18 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \
2246"], [0], [NXST_GROUP_FEATURES request (xid=0x4):
2247])
2248AT_CLEANUP
2249
7395c052
NZ
2250AT_SETUP([OFPST_GROUP_FEATURES request])
2251AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2252AT_CHECK([ovs-ofctl ofp-print "\
225303 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2254"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2255])
2256AT_CLEANUP
2257
7b809df9
BP
2258AT_SETUP([NXST_GROUP_FEATURES reply])
2259AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2260AT_CHECK([ovs-ofctl ofp-print "\
226101 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \
226200 00 00 0f 00 00 00 0f \
226300 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
226400 00 00 01 00 00 00 07 00 00 00 0f 00 00 00 1f \
2265"], [0], [dnl
2266NXST_GROUP_FEATURES reply (xid=0x4):
2267 Group table:
2268 Types: 0xf
2269 Capabilities: 0xf
2270 all group:
2271 max_groups=0x1
2272 actions: output
2273 select group:
2274 max_groups=0x2
2275 actions: output set_vlan_vid set_vlan_pcp
2276 indirect group:
2277 max_groups=0x3
2278 actions: output set_vlan_vid set_vlan_pcp strip_vlan
2279 fast failover group:
2280 max_groups=0x4
2281 actions: output set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
2282])
2283AT_CLEANUP
2284
7395c052
NZ
2285AT_SETUP([OFPST_GROUP_FEATURES reply])
2286AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2287AT_CHECK([ovs-ofctl ofp-print "\
228803 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
228900 00 00 0f 00 00 00 0f \
229000 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 229100 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
2292"], [0], [dnl
2293OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2294 Group table:
2295 Types: 0xf
2296 Capabilities: 0xf
08d1e234
BP
2297 all group:
2298 max_groups=0x1
2299 actions: output
2300 select group:
2301 max_groups=0x2
2302 actions: output push_vlan
2303 indirect group:
2304 max_groups=0x3
2305 actions: output strip_vlan push_vlan
2306 fast failover group:
2307 max_groups=0x4
2308 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
2309])
2310AT_CLEANUP
2311
2312AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2313AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2314AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2315OFPST_PORT_DESC request (xid=0x1): port=ANY
2316])
2317AT_CLEANUP
2318
2319AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2320AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2321AT_CHECK([ovs-ofctl ofp-print "\
7448d548
MT
232206 12 00 18 00 00 00 02 00 0d 00 00 00 00 00 00 \
232300 00 00 05 00 00 00 00"], [0], [dnl
70ae4f93 2324OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2325])
2326AT_CLEANUP
2327
2be393ed
JP
2328AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2329AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2330AT_CHECK([ovs-ofctl ofp-print "\
233101 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
233200 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
233300 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
233400 00 02 8f 00 00 02 8f 00 00 00 00 \
2335"], [0], [dnl
2336OFPST_PORT_DESC reply (xid=0x0):
2337 3(eth0): addr:50:54:00:00:00:01
2338 config: PORT_DOWN
2339 state: LINK_DOWN
2340 current: 100MB-FD AUTO_NEG
2341 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2342 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2343 speed: 100 Mbps now, 100 Mbps max
2344])
2345AT_CLEANUP
2346
8c3cc785
BP
2347AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2348AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2349AT_CHECK([ovs-ofctl ofp-print "\
235005 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
235100 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
235265 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
235300 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
235400 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
235500 01 86 a0 00 01 86 a0 \
2356"], [0], [dnl
2357OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2358 3(eth0): addr:50:54:00:00:00:01
2359 config: 0
2360 state: 0
2361 current: 100MB-FD AUTO_NEG
2362 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2363 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2364 speed: 100 Mbps now, 100 Mbps max
2365])
2366AT_CLEANUP
2367
638a19b0
JR
2368AT_SETUP([OFPT_METER_MOD request - OF1.3])
2369AT_KEYWORDS([ofp-print])
2370AT_CHECK([ovs-ofctl ofp-print "\
237104 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
237200 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2373"], [0], [dnl
2374OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2375type=drop rate=1024 burst_size=128
2376])
2377AT_CLEANUP
2378
f99d6aa0
BP
2379AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2380AT_KEYWORDS([ofp-print])
2381AT_CHECK([ovs-ofctl ofp-print "\
238204 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
238300 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2384"], [0], [dnl
2385OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2d071a32
BP
238600000000 04 1d 00 20 85 01 d7 38-00 00 00 00 00 00 00 01 |... ...8........|
238700000010 00 05 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................|
f99d6aa0
BP
2388])
2389AT_CLEANUP
2390
142cdb01
BP
2391AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2392AT_KEYWORDS([ofp-print])
2393AT_CHECK([ovs-ofctl ofp-print "\
239404 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2395"], [0], [dnl
2396OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2d071a32 239700000000 04 1d 00 10 28 a6 26 52-00 08 00 00 00 00 00 01 |....@{:@.&R........|
142cdb01
BP
2398])
2399AT_CLEANUP
2400
13b1febe
BP
2401AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2402AT_KEYWORDS([ofp-print])
2403AT_CHECK([ovs-ofctl ofp-print "\
240404 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
240500 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2406"], [0], [dnl
2407OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2d071a32
BP
240800000000 04 1d 00 20 82 b3 a1 a4-00 00 00 03 00 00 00 01 |... ............|
240900000010 00 01 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................|
13b1febe
BP
2410])
2411AT_CLEANUP
2412
638a19b0
JR
2413AT_SETUP([OFPST_METER request - OF1.3])
2414AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2415AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2416OFPST_METER request (OF1.3) (xid=0x2): meter=1
2417])
2418AT_CLEANUP
2419
2420AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2421AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2422AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2423OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2424])
2425AT_CLEANUP
2426
2427AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2428AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2429AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2430OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2431])
2432AT_CLEANUP
2433
2434AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2435AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2436AT_CHECK([ovs-ofctl ofp-print "\
243704 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 243800 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2439"], [0], [dnl
2440OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2441max_meter:65536 max_bands:16 max_color:2
2442band_types: drop dscp_remark
2443capabilities: kbps pktps burst stats
2444])
2445AT_CLEANUP
2446
2447AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2448AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2449AT_CHECK([ovs-ofctl ofp-print "\
245004 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
245100 28 00 05 00 00 00 01 \
245200 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
245300 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
245400 18 00 09 00 00 00 02 \
245500 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2456"], [0], [dnl
2457OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2458meter=1 kbps burst bands=
2459type=drop rate=65536 burst_size=1280
2460type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2461
2462meter=2 kbps stats bands=
2463type=drop rate=131072
2464])
2465AT_CLEANUP
2466
2467AT_SETUP([OFPST_METER reply - OF1.3])
2468AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2469AT_CHECK([ovs-ofctl ofp-print "\
247004 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
247100 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
247200 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 247300 00 01 8a 0a 6e 23 44 \
638a19b0
JR
247400 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
247500 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
247600 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
247700 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 247800 00 01 87 0a 23 6e 44 \
638a19b0
JR
247900 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2480"], [0], [dnl
2481OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2482meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
24830: packet_count:126 byte_count:13363
24841: packet_count:231 byte_count:37934
2485
0445637d 2486meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
24870: packet_count:42 byte_count:1075
2488])
2489AT_CLEANUP
2490
5deff5aa
AW
2491AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2492AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2493AT_CHECK([ovs-ofctl ofp-print "\
249404 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
249509 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
249600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
249700 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2498ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
249900 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
250000 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
250100 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
250200 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
250300 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
250400 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
250500 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
25060d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
25071d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
25082d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
25093d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
25104d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
25115d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
25126d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
25137d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
25148d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
25159d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2516ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2517bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2518cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2519dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2520ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2521fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
252205 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
252315 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
252425 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
252535 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
252645 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
252755 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
252865 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
252975 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
253085 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
253195 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2532a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2533b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2534c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2535d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2536e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2537f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
253800 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
253900 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
254000 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
254100 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
254200 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
254300 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
254400 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
254500 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
254600 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
254700 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
254800 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
254900 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
255000 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
255100 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
255200 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
255300 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
255400 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
255500 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
255600 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
255700 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
255800 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
255900 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
256000 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
256100 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
256200 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
256300 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
256400 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
256500 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
256600 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
256700 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
256800 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
256900 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
257000 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
257100 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
257200 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
257380 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
257400 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
257500 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
257680 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
257780 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
257880 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
257980 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
258080 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
258180 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
258280 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
258380 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
258480 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
258580 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
258600 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
258780 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
258800 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
258900 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
259080 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
259180 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
259280 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
259380 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
259480 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
259580 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
259680 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
259780 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
259880 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
259980 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
260000 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
260180 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
260200 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
260300 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
260480 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
260580 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
260680 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
260780 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
260880 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
260980 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
261080 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
261100 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
261280 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
261300 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
261400 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
261500 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
261680 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
261780 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
261800 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
261980 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
262080 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
262100 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
262280 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
262300 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
262400 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
262580 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
262680 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
262780 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
262880 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
262980 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
263080 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
263180 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
263200 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
263380 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
263400 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
263500 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
263600 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
263780 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
263880 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
263900 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
264080 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
264180 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
e428148a 2642"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5): flags=[[more]]
3c1bb396 2643 table 0 ("table0"):
5deff5aa 2644 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2645 max_entries=1000000
2646 instructions (table miss and others):
2647 next tables: 1-253
95a5454c 2648 instructions: apply_actions clear_actions write_actions write_metadata goto_table
5deff5aa 2649 Write-Actions and Apply-Actions features:
08d1e234 2650 actions: output group set_field strip_vlan push_vlan mod_nw_ttl dec_ttl set_mpls_ttl dec_mpls_ttl push_mpls pop_mpls set_queue
95a5454c 2651 supported on Set-Field: tun_{id,src,dst} metadata in_{port,port_oxm} pkt_mark reg0...reg7 eth_{src,dst} vlan_{tci,vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst} nw_tos ip_dscp nw_{ecn,ttl} arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst}
5deff5aa 2652 matching:
95a5454c 2653 exact match or wildcard: tun_{id,src,dst} metadata in_{port,port_oxm} pkt_mark reg0...reg7 eth_{src,dst,type} vlan_{tci,vid,pcp} mpls_{label,tc,bos} ip_{src,dst} ipv6_{src,dst,label} nw_{proto,tos} ip_dscp nw_{ecn,ttl} ip_frag arp_{op,spa,tpa,sha,tha} tcp_{src,dst,flags} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll}
5deff5aa
AW
2654])
2655AT_CLEANUP
2656
58cf43df 2657AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2658AT_KEYWORDS([ofp-print])
2659AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2660OFPT_BARRIER_REQUEST (xid=0x1):
2661])
2662AT_CLEANUP
2663
58cf43df
SH
2664AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2665AT_KEYWORDS([ofp-print])
2666AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2667OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2668])
2669AT_CLEANUP
2670
2671AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2672AT_KEYWORDS([ofp-print])
2673AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2674OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2675])
2676AT_CLEANUP
2677
2e1ae200
JR
2678AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2679AT_KEYWORDS([ofp-print])
2680AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2681OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2682])
2683AT_CLEANUP
2684
58cf43df 2685AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2686AT_KEYWORDS([ofp-print])
2687AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2688OFPT_BARRIER_REPLY (xid=0x1):
2689])
2690AT_CLEANUP
2691
2e1ae200 2692AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2693AT_KEYWORDS([ofp-print])
2694AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2695OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2696])
2697AT_CLEANUP
2698
2e1ae200 2699AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2700AT_KEYWORDS([ofp-print])
2701AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2702OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2703])
2704AT_CLEANUP
2705
2e1ae200
JR
2706AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2707AT_KEYWORDS([ofp-print])
2708AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2709OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2710])
2711AT_CLEANUP
2712
e8f9a7bb
VG
2713AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2714AT_KEYWORDS([ofp-print])
2ffc8767 2715AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2716OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2717])
2718AT_CLEANUP
2719
2720AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2721AT_KEYWORDS([ofp-print])
2722AT_CHECK([ovs-ofctl ofp-print "\
272303 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2724OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2725])
2726AT_CLEANUP
2727
e016fb63
BP
2728AT_SETUP([OFPST_QUEUE_DESC request - OF1.4])
2729AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REQUEST])
2730AT_CHECK([ovs-ofctl ofp-print "\
273105 12 00 18 00 00 00 01 00 0f 00 00 00 00 00 00 \
273200 00 00 01 00 00 00 02"], [0],
2733 [OFPST_QUEUE_DESC request (OF1.4) (xid=0x1): port=1 queue=2
2734])
2735AT_CLEANUP
2736
e8f9a7bb
VG
2737AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2738AT_KEYWORDS([ofp-print])
2ffc8767 2739AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
274000 01 00 00 00 00 00 00 \
274100 00 55 55 00 28 00 00 \
274200 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
274300 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
274400 00 44 44 00 08 00 00 \
2745"], [0], [dnl
2746OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
e8f9a7bb 2747queue 17476:
a28239c0 2748queue 21845: min_rate:50.0% max_rate:75.0%
e8f9a7bb
VG
2749])
2750AT_CLEANUP
2751
d2e5fa1f
BP
2752AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.1])
2753AT_KEYWORDS([ofp-print])
2754AT_CHECK([ovs-ofctl ofp-print "02 17 00 40 00 00 00 01 \
275500 00 00 01 00 00 00 00 \
275600 00 55 55 00 28 00 00 \
275700 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
275800 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
275900 00 44 44 00 08 00 00 \
2760"], [0], [dnl
2761OFPT_QUEUE_GET_CONFIG_REPLY (OF1.1) (xid=0x1): port=1
d2e5fa1f 2762queue 17476:
a28239c0 2763queue 21845: min_rate:50.0% max_rate:75.0%
d2e5fa1f
BP
2764])
2765AT_CLEANUP
2766
e8f9a7bb
VG
2767AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2768AT_KEYWORDS([ofp-print])
2769AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
277000 00 00 01 00 00 00 00 \
277100 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
277200 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
277300 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
277400 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2775"], [0], [dnl
2776OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
e8f9a7bb 2777queue 17476:
a28239c0 2778queue 21845: min_rate:50.0% max_rate:75.0%
e8f9a7bb
VG
2779])
2780AT_CLEANUP
2e1ae200 2781
e016fb63
BP
2782AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.3])
2783AT_KEYWORDS([ofp-print])
2784AT_CHECK([ovs-ofctl ofp-print "04 17 00 50 00 00 00 01 \
278500 00 00 01 00 00 00 00 \
278600 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
278700 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
278800 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
278900 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2790"], [0], [dnl
2791OFPT_QUEUE_GET_CONFIG_REPLY (OF1.3) (xid=0x1): port=1
e016fb63 2792queue 17476:
a28239c0 2793queue 21845: min_rate:50.0% max_rate:75.0%
e016fb63
BP
2794])
2795AT_CLEANUP
2796
2797# OF1.4 renamed OFPT_QUEUE_GET_CONFIG_REPLY to OFPST_QUEUE_DESC.
2798AT_SETUP([OFPST_QUEUE_DESC reply - OF1.4])
2799AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REPLY])
2800AT_CHECK([ovs-ofctl ofp-print "\
280105 13 00 48 00 00 00 01 00 0f 00 00 00 00 00 00 \
2802
280300 00 00 01 00 00 55 55 00 20 00 00 00 00 00 00 \
280400 01 00 08 01 f4 00 00 \
280500 02 00 08 02 ee 00 00 \
2806
280700 00 00 02 00 00 44 44 00 18 00 00 00 00 00 00 \
280800 02 00 08 00 64 00 00 \
2809"], [0], [dnl
2810OFPST_QUEUE_DESC reply (OF1.4) (xid=0x1): port=1
2811queue 21845: min_rate:50.0% max_rate:75.0%
2812port=2
2813queue 17476: max_rate:10.0%
2814])
2815AT_CLEANUP
2816
2e1ae200
JR
2817AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2818AT_KEYWORDS([ofp-print])
904e5202
BP
2819dnl This message has bit 12 set for the PACKET_IN messages (master and slave).
2820dnl Those aren't supported bits so they get silently ignored on decoding.
2821dnl That seems reasonable because OF1.3 doesn't define any error codes for
2822dnl OFPT_SET_ASYNC.
2e1ae200
JR
2823AT_CHECK([ovs-ofctl ofp-print "\
282404 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
282500 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2826"], [0], [dnl
2827OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2828 master:
904e5202 2829 PACKET_IN: no_match invalid_ttl
2e1ae200
JR
2830 PORT_STATUS: add delete
2831 FLOW_REMOVED: (off)
904e5202
BP
2832 ROLE_STATUS: (off)
2833 TABLE_STATUS: (off)
2834 REQUESTFORWARD: (off)
2e1ae200
JR
2835
2836 slave:
904e5202 2837 PACKET_IN: no_match action invalid_ttl
2e1ae200
JR
2838 PORT_STATUS: add delete modify
2839 FLOW_REMOVED: idle hard
904e5202
BP
2840 ROLE_STATUS: (off)
2841 TABLE_STATUS: (off)
2842 REQUESTFORWARD: (off)
2e1ae200
JR
2843])
2844AT_CLEANUP
2845
6ea4776b
JR
2846AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2847AT_KEYWORDS([ofp-print])
2848AT_CHECK([ovs-ofctl ofp-print "\
284903 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
285000 00 00 00 00 00 00 03 \
2851"], [0], [dnl
2852OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2853])
2854AT_CLEANUP
2855
2856AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2857AT_KEYWORDS([ofp-print])
2858AT_CHECK([ovs-ofctl ofp-print "\
285903 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
286000 00 00 00 00 00 00 00 \
2861"], [0], [dnl
2862OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2863])
2864AT_CLEANUP
2865
fec00620
BP
2866AT_SETUP([NXT_ROLE_REQUEST])
2867AT_KEYWORDS([ofp-print])
2868AT_CHECK([ovs-ofctl ofp-print "\
286901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
287000 00 00 01 \
2871"], [0], [dnl
2872NXT_ROLE_REQUEST (xid=0x2): role=master
2873])
2874AT_CLEANUP
2875
6ea4776b
JR
2876AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2877AT_KEYWORDS([ofp-print])
2878AT_CHECK([ovs-ofctl ofp-print "\
287903 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 288012 34 56 78 ab cd ef 90 \
6ea4776b 2881"], [0], [dnl
147cc9d3 2882OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2883])
2884AT_CLEANUP
2885
fec00620
BP
2886AT_SETUP([NXT_ROLE_REPLY])
2887AT_KEYWORDS([ofp-print])
2888AT_CHECK([ovs-ofctl ofp-print "\
288901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
289000 00 00 02 \
2891"], [0], [dnl
2892NXT_ROLE_REPLY (xid=0x2): role=slave
2893])
2894AT_CLEANUP
2895
b0e07d50
BP
2896AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.3])
2897AT_KEYWORDS([ofp-print])
2898AT_CHECK([ovs-ofctl ofp-print "\
289904 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
290000 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2901"], [0], [dnl
2902ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=experimenter_data_changed
2903])
2904AT_CLEANUP
2905
2906AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.3])
2907AT_KEYWORDS([ofp-print])
2908AT_CHECK([ovs-ofctl ofp-print "\
290904 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
291000 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2911"], [0], [dnl
2912ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=configuration_changed
2913])
2914AT_CLEANUP
2915
2916AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.3])
2917AT_KEYWORDS([ofp-print])
2918AT_CHECK([ovs-ofctl ofp-print "\
291904 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
292000 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2921"], [0], [dnl
2922ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master generation_id=16 reason=configuration_changed
2923])
2924AT_CLEANUP
2925
00467f73
AC
2926AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2927AT_KEYWORDS([ofp-print])
2928AT_CHECK([ovs-ofctl ofp-print "\
292905 1e 00 18 00 00 00 0a \
293000 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2931"], [0], [dnl
9620f50c 2932OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2933])
2934AT_CLEANUP
2935
2936AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2937AT_KEYWORDS([ofp-print])
2938AT_CHECK([ovs-ofctl ofp-print "\
293905 1e 00 18 00 00 00 0a \
294000 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2941"], [0], [dnl
9620f50c 2942OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2943])
2944AT_CLEANUP
2945
2946AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2947AT_KEYWORDS([ofp-print])
2948AT_CHECK([ovs-ofctl ofp-print "\
294905 1e 00 18 00 00 00 0a \
295000 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2951"], [0], [dnl
9620f50c 2952OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2953])
2954AT_CLEANUP
2955
3c35db62
NR
2956AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2957AT_KEYWORDS([ofp-print])
2958AT_CHECK([ovs-ofctl ofp-print "\
295905 20 00 18 00 00 00 02 \
296005 0f 00 10 02 00 00 00 \
296100 00 00 00 00 00 00 01 \
2962"], [0], [dnl
2963OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2964 ADD group_id=1,type=all
2965])
2966AT_CLEANUP
2967
2968AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2969AT_KEYWORDS([ofp-print])
2970AT_CHECK([ovs-ofctl ofp-print "\
297105 20 00 18 00 00 00 02 \
297205 0f 00 10 02 00 00 00 \
297300 01 01 00 00 00 00 01 \
2974"], [0], [dnl
2975OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2976 MOD group_id=1,type=select
2977])
2978AT_CLEANUP
2979
2980AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2981AT_KEYWORDS([ofp-print])
2982AT_CHECK([ovs-ofctl ofp-print "\
298305 20 00 18 00 00 00 02 \
298405 1d 00 10 02 00 00 00 \
298500 00 00 00 00 00 00 01 \
2986"], [0], [dnl
2987OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod ADD meter=1 bands=
2988])
2989AT_CLEANUP
2990
2991AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2992AT_KEYWORDS([ofp-print])
2993AT_CHECK([ovs-ofctl ofp-print "\
299405 20 00 18 00 00 00 02 \
299505 1d 00 10 02 00 00 00 \
299600 01 01 00 00 00 00 01 \
2997"], [0], [dnl
2998OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod MOD meter=1 flags:0x100 bands=
2999])
3000AT_CLEANUP
3001
98a9272b
ZW
3002AT_SETUP([NXT_REQUESTFORWARD - inner NXT_GROUP_MOD])
3003AT_KEYWORDS([ofp-print])
3004AT_CHECK([ovs-ofctl ofp-print "\
3005dnl OF version 1.0; type=extension:
300601 04 \
3007dnl size in bytes:
300800 b8 \
3009dnl xid:
301000 00 00 02 \
3011dnl Nicira vendor number:
301200 00 23 20 \
3013dnl subtype (message id number = 132 in this case)
301400 00 00 84 \
3015dnl inner msg copied and pasted from NXT_GROUP_MOD test above:
301601 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f 00 00 01 00 87 65 43 21 \
301700 60 00 00 ff ff ff ff 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
301800 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 00 20 00 08 00 00 00 01 \
301900 00 00 08 00 02 00 00 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02 \
302000 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 00 00 00 08 00 c8 00 00 \
302100 01 00 08 00 00 00 03 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
302268 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 \
3023"], [0], [dnl
3024NXT_REQUESTFORWARD (xid=0x2): reason=group_mod
3025 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3026])
3027AT_CLEANUP
3028
3029AT_SETUP([NXT_REQUESTFORWARD - inner OFPT_GROUP_MOD - OF1.1])
3030AT_KEYWORDS([ofp-print])
3031AT_CHECK([ovs-ofctl ofp-print "\
3032dnl OF Version 1.1; type=extension:
303302 04 \
3034dnl size in bytes:
303500 80 \
3036dnl xid:
303700 00 00 02 \
3038dnl Nicira vendor number:
303900 00 23 20 \
3040dnl subtype (message id number = 132 in this case)
304100 00 00 84 \
3042dnl inner msg copied and pasted from OFPT_GROUP_MOD OF1.1 test above:
304302 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
304400 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
304500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
304600 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
304700 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
304800 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
304900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3050"], [0], [dnl
3051NXT_REQUESTFORWARD (OF1.1) (xid=0x2): reason=group_mod
3052 ADD group_id=2271560481,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
3053])
3054AT_CLEANUP
3055
3056AT_SETUP([ONFT_REQUESTFORWARD - inner OFPT_METER_MOD - OF1.3])
3057AT_KEYWORDS([ofp-print])
3058AT_CHECK([ovs-ofctl ofp-print "\
3059dnl OF Version 1.3; type=extension:
306004 04 \
3061dnl size in bytes:
306200 30 \
3063dnl xid:
306400 00 00 02 \
3065dnl ONF vendor number:
30664F 4E 46 00 \
3067dnl subtype (message id number = 2350 in this case)
306800 00 09 2e \
3069dnl inner msg copied and pasted from the valid OFPT_METER_MOD OF1.3 test:
307004 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
307100 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
3072"], [0], [dnl
3073ONFT_REQUESTFORWARD (OF1.3) (xid=0x2): reason=meter_mod ADD meter=5 kbps burst stats bands=
3074type=drop rate=1024 burst_size=128
3075])
3076AT_CLEANUP
3077
54834960
EJ
3078AT_SETUP([NXT_SET_PACKET_IN])
3079AT_KEYWORDS([ofp-print])
3080AT_CHECK([ovs-ofctl ofp-print "\
308101 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
308200 00 00 01 \
3083"], [0], [dnl
6409e008 3084NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxt_packet_in
54834960
EJ
3085])
3086AT_CLEANUP
3087
3088AT_SETUP([NXT_PACKET_IN])
3089AT_KEYWORDS([ofp-print])
3090AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 309101 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 3092ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 309300 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
309420 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
309500 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
309600 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 309700 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 3098ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
309980 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
310000 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 310100 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
310231 6d 00 00 00 00 00 00 00 00 \
3103"], [0], [dnl
50dcbd8e 3104NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered)
f0fb825a 3105tcp,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=syn tcp_csum:316d
54834960
EJ
3106])
3107AT_CLEANUP
3108
b4ccee75
SH
3109AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
3110AT_KEYWORDS([ofp-print])
3111AT_CHECK([ovs-ofctl ofp-print "\
311201 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
3113ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
311400 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
311520 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
311600 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
311700 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
311800 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
3119ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
312080 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
312100 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 312200 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
312331 6d 00 00 00 00 00 00 00 00 \
3124" 3], [0], [dnl
50dcbd8e 3125NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered)
f0fb825a 3126tcp,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=fin tcp_csum:316d
b4ccee75
SH
312700000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
312800000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
312900000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 313000000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
3131])
3132AT_CLEANUP
3133
6409e008
BP
3134AT_SETUP([NX_PACKET_IN2])
3135AT_KEYWORDS([ofp-print])
3136AT_CHECK([ovs-ofctl ofp-print "
bdcad671 313701 04 0098 00000000 00002320 0000001e
6409e008
BP
31380000 0034
3139 82 82 82 82 82 82 80 81 81 81 81 81 81 00 00 50
3140 08 00 45 00 00 28 00 00 00 00 00 06 32 05 53 53
3141 53 53 54 54 54 54 00 55 00 56 00 00 00 00 00 00 00000000
31420001 0008 00000040
31430002 0008 00000114
31440003 0005 07 000000
31450004 0010 00000000 fedcba9876543210
31460005 0005 01 000000
bdcad671
BP
31470006 0010 80000408 5a5a5a5a5a5a5a5a
31480007 0009 0102030405 00000000000000
3149"
6409e008
BP
3150], [0], [dnl
3151NXT_PACKET_IN2 (xid=0x0): table_id=7 cookie=0xfedcba9876543210 total_len=64 metadata=0x5a5a5a5a5a5a5a5a (via action) data_len=48 buffer=0x00000114
bdcad671 3152 userdata=01.02.03.04.05
f0fb825a 3153ip,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=0
6409e008
BP
3154])
3155AT_CLEANUP
3156
80d5aefd
BP
3157AT_SETUP([NXT_SET_ASYNC_CONFIG])
3158AT_KEYWORDS([ofp-print])
904e5202
BP
3159dnl This message has bit 12 set for the PACKET_IN messages (master and slave).
3160dnl Those aren't supported bits so they get silently ignored on decoding.
80d5aefd
BP
3161AT_CHECK([ovs-ofctl ofp-print "\
316201 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
316300 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
316400 00 00 00 00 00 00 03 \
3165"], [0], [dnl
3166NXT_SET_ASYNC_CONFIG (xid=0x0):
3167 master:
904e5202 3168 PACKET_IN: no_match invalid_ttl
80d5aefd
BP
3169 PORT_STATUS: add delete
3170 FLOW_REMOVED: (off)
904e5202
BP
3171 ROLE_STATUS: (off)
3172 TABLE_STATUS: (off)
3173 REQUESTFORWARD: (off)
80d5aefd
BP
3174
3175 slave:
904e5202 3176 PACKET_IN: no_match action invalid_ttl
80d5aefd
BP
3177 PORT_STATUS: add delete modify
3178 FLOW_REMOVED: idle hard
904e5202
BP
3179 ROLE_STATUS: (off)
3180 TABLE_STATUS: (off)
3181 REQUESTFORWARD: (off)
80d5aefd
BP
3182])
3183AT_CLEANUP
3184
98090482
NR
3185AT_SETUP([OFPT_SET_ASYNC_CONFIG])
3186AT_KEYWORDS([ofp-print])
3187AT_CHECK([ovs-ofctl ofp-print "\
318805 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
318900 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
319000 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
319100 05 00 08 00 00 00 05 \
3192"], [0], [dnl
3193OFPT_SET_ASYNC (OF1.4) (xid=0x2):
3194 master:
3195 PACKET_IN: action
3196 PORT_STATUS: add modify
3197 FLOW_REMOVED: idle delete
3198 ROLE_STATUS: (off)
3199 TABLE_STATUS: (off)
3200 REQUESTFORWARD: (off)
3201
3202 slave:
3203 PACKET_IN: no_match invalid_ttl
3204 PORT_STATUS: delete
3205 FLOW_REMOVED: delete group_delete meter_delete
3206 ROLE_STATUS: (off)
3207 TABLE_STATUS: (off)
3208 REQUESTFORWARD: (off)
3209])
3210AT_CLEANUP
3211
d18cc1ee
AA
3212AT_SETUP([OFPT_SET_ASYNC_CONFIG - invalid mask - OF1.4])
3213AT_KEYWORDS([ofp-print])
3214AT_CHECK([ovs-ofctl ofp-print "\
321505 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 40 \
321600 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
321700 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
321800 05 00 08 00 00 00 05 \
3219"], [0], [dnl
3220OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_INVALID***
2d071a32
BP
322100000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 40 |...8...........@|
322200000010 00 01 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
322300000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
322400000030 00 05 00 08 00 00 00 05- |........ |
8fd0bb60
BP
3225], [stderr])
3226AT_CHECK([sed 's/.*|//' stderr], [0],
3227 [bad value 0x40 for PACKET_IN (allowed mask 0x3f)
d18cc1ee
AA
3228])
3229AT_CLEANUP
3230
3231AT_SETUP([OFPT_SET_ASYNC_CONFIG - unsupported configuration - OF1.4])
3232AT_KEYWORDS([ofp-print])
3233AT_CHECK([ovs-ofctl ofp-print "\
323405 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
323500 11 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
323600 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
323700 05 00 08 00 00 00 05\
3238"], [0], [dnl
3239OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_UNSUPPORTED***
2d071a32
BP
324000000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 05 |...8............|
324100000010 00 11 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
324200000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
324300000030 00 05 00 08 00 00 00 05- |........ |
8fd0bb60
BP
3244], [stderr])
3245AT_CHECK([sed 's/.*|//' stderr], [0],
3246 [unknown async config property type 17
d18cc1ee
AA
3247])
3248AT_CLEANUP
3249
a7349929
BP
3250AT_SETUP([NXT_SET_CONTROLLER_ID])
3251AT_KEYWORDS([ofp-print])
3252AT_CHECK([ovs-ofctl ofp-print "\
325301 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
325400 00 00 00 00 00 00 7b \
3255"], [0], [dnl
3256NXT_SET_CONTROLLER_ID (xid=0x3): id=123
3257])
3258AT_CLEANUP
3259
2b07c8b1
BP
3260AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
3261AT_KEYWORDS([ofp-print])
3262AT_CHECK([ovs-ofctl ofp-print "\
326301 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
326401 02 30 40 \
3265"], [0], [dnl
3266NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
3267])
3268AT_CLEANUP
3269
3270AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
3271AT_KEYWORDS([ofp-print])
3272AT_CHECK([ovs-ofctl ofp-print "\
327301 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
3274"], [0], [dnl
3275NXT_FLOW_MONITOR_PAUSED (xid=0x3):
3276])
3277AT_CLEANUP
3278
3279AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
3280AT_KEYWORDS([ofp-print])
3281AT_CHECK([ovs-ofctl ofp-print "\
328201 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
3283"], [0], [dnl
3284NXT_FLOW_MONITOR_RESUMED (xid=0x3):
3285])
3286AT_CLEANUP
3287
fec00620
BP
3288AT_SETUP([NXT_SET_FLOW_FORMAT])
3289AT_KEYWORDS([ofp-print])
3290AT_CHECK([ovs-ofctl ofp-print "\
329101 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
329200 00 00 02 \
3293"], [0], [dnl
3294NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
3295])
3296AT_CLEANUP
3297
3298# The flow is formatted with cls_rule_format() for the low-verbosity case.
3299AT_SETUP([NXT_FLOW_MOD, low verbosity])
3300AT_KEYWORDS([ofp-print])
3301AT_CHECK([ovs-ofctl ofp-print "\
330201 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
330300 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 3304ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
330500 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
330600 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
330700 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3308" 2], [0], [dnl
de0f16bc 3309NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
3310])
3311AT_CLEANUP
3312
eec25dc1
BP
3313# The flow is formatted with ofp10_match_to_string() for the
3314# low-verbosity case.
fec00620
BP
3315AT_SETUP([NXT_FLOW_MOD, high verbosity])
3316AT_KEYWORDS([ofp-print])
3317AT_CHECK([ovs-ofctl ofp-print "\
331801 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
331900 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 3320ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
332100 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
332200 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
332300 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3324" 3], [0], [dnl
de0f16bc 3325NXT_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
3326])
3327AT_CLEANUP
3328
7b809df9
BP
3329AT_SETUP([NXT_GROUP_MOD add - OF1.0])
3330AT_KEYWORDS([ofp-print])
3331AT_CHECK([ovs-ofctl ofp-print "\
333201 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f \
333300 00 01 00 87 65 43 21 \
333400 60 00 00 ff ff ff ff \
3335\
333600 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
333700 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3338\
333900 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
334000 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02
3341\
334200 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
334300 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3344ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
334568 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
334600 00 00 00 00 00 00 07 \
3347"], [0], [dnl
3348NXT_GROUP_MOD (xid=0x2):
3349 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3350])
3351AT_CLEANUP
3352
76c41209 3353AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
3354AT_KEYWORDS([ofp-print])
3355AT_CHECK([ovs-ofctl ofp-print "\
335602 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
335700 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
335800 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
335900 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
336000 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
336100 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
336200 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3363"], [0], [dnl
3364OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
3365 ADD group_id=2271560481,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
3366])
3367AT_CLEANUP
3368
76c41209
SH
3369AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
3370AT_KEYWORDS([ofp-print])
3371AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 337206 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \
76c41209
SH
337300 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
337400 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
337500 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
337600 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
337700 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
337800 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
337900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
338000 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
0c4b9393
SH
3381ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
338268 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
338300 00 00 00 00 00 00 07 \
76c41209
SH
3384"], [0], [dnl
3385OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
0c4b9393 3386 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
76c41209
SH
3387])
3388AT_CLEANUP
3389
3390AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
3391AT_KEYWORDS([ofp-print])
3392AT_CHECK([ovs-ofctl ofp-print "\
339306 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
339400 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
339500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
339600 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
339700 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
339800 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
339900 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
340000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
340100 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3402"], [0], [dnl
3403OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
3404 INSERT_BUCKET command_bucket_id:first,group_id=2271560481,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3405])
3406AT_CLEANUP
3407
fec00620
BP
3408AT_SETUP([NXT_FLOW_REMOVED])
3409AT_KEYWORDS([ofp-print])
3410AT_CHECK([ovs-ofctl ofp-print "\
341101 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 341200 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
341301 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
341400 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
341502 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
341600 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
34171e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
3418c0 a8 00 02 00 00 00 00 \
3419"], [0], [dnl
745bfd5e 3420NXT_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
3421])
3422AT_CLEANUP
3423
a1a7d333
BP
3424AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
3425AT_KEYWORDS([ofp-print])
3426AT_CHECK([ovs-ofctl ofp-print "\
342701 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
342801 00 00 00 00 00 00 00 \
3429"], [0], [dnl
3430NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
3431])
3432AT_CLEANUP
3433
77ab5fd2
BP
3434AT_SETUP([NXT_RESUME])
3435AT_KEYWORDS([ofp-print])
3436AT_CHECK([ovs-ofctl ofp-print "\
343701 04 0038 01020304 00002320 0000001c \
34380000 0012 ffffffffffff 102030405060 1234 000000000000 \
34390006 000a 00000002 fffd 000000000000
3440"], [0], [dnl
3441NXT_RESUME (xid=0x1020304): total_len=14 in_port=CONTROLLER (via no_match) data_len=14 (unbuffered)
3442vlan_tci=0x0000,dl_src=10:20:30:40:50:60,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x1234
3443])
3444AT_CLEANUP
3445
fec00620
BP
3446AT_SETUP([NXST_FLOW request])
3447AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3448AT_CHECK([ovs-ofctl ofp-print "\
344901 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
345000 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3451"], [0], [dnl
f92ef1a8 3452NXST_FLOW request (xid=0x4):
fec00620
BP
3453])
3454AT_CLEANUP
3455
3456AT_SETUP([NXST_FLOW reply])
3457AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3458AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 345901 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
346000 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
346102 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
346200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
346300 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
346402 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
346500 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
34660a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3467a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
346814 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
346900 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 347000 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
347100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
347200 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
347300 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
347400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3475a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
347600 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
347700 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 347833 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
347900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
348000 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
348102 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
348200 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
34830a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3484a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
348514 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
348600 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 348700 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
348800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
348900 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
349000 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
349100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3492a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
349300 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
349400 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 349534 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
349600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
349700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
349802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
349900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35000a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3501a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
350214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
350300 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
350400 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
350500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
350600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
350700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
350800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3509a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
351000 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
351100 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
351202 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
351300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
351400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
351502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
351600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35170a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3518a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
351914 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
352000 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
352100 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
352200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
352300 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
352400 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
352500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3526a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
352700 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
352800 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
352927 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
353000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
353100 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
353202 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
353300 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35340a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3535a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
353614 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
353700 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
353800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
353900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
354000 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
354100 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
354200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3543a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
354400 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
354500 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
35460a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
354700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
354800 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
354902 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
355000 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35510a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3552a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
355314 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
355400 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
355500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
355600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
355700 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
355800 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
355900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3560a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
356100 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
356200 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
356304 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
356400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
356500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
356602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
356700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35680a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3569a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
357014 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
357100 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
357200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
357300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
357400 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
357500 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
357600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3577a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
357800 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
357900 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
35802e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
358100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
358200 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
358300 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3584ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
358500 00 00 00 00 00 00 05 \
05b8f1c2
BP
358600 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
358700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
358800 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3589"], [0],
3590[[NXST_FLOW reply (xid=0x4):
b9718b7b 3591 cookie=0x0, duration=1.048s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2535,tp_dst=0 actions=output:1
b1634591 3592 cookie=0x0, duration=3.840s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, idle_age=2, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2532,tp_dst=0 actions=output:1
b9718b7b
BP
3593 cookie=0x0, duration=2.872s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, idle_age=4, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2533 actions=output:3
3594 cookie=0x0, duration=4.756s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, idle_age=0, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2531,tp_dst=0 actions=output:1
b1634591 3595 cookie=0x0, duration=2.880s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, hard_timeout=10, idle_age=2, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2533,tp_dst=0 actions=output:1
b9718b7b 3596 cookie=0x0, duration=5.672s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2530,tp_dst=0 actions=output:1
b1634591 3597 cookie=0x0, duration=1.040s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2535 actions=output:3
b9718b7b
BP
3598 cookie=0x0, duration=1.952s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2534 actions=output:3
3599 cookie=0x0, duration=4.668s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2531 actions=output:3
3600 cookie=0x0, duration=3.752s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2532 actions=output:3
3601 cookie=0x0, duration=0.172s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2536,tp_dst=0 actions=output:1
3602 cookie=0x0, duration=5.624s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2530 actions=output:3
b1634591
BP
3603 cookie=0x0, duration=0.080s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2536 actions=output:3
3604 cookie=0x0, duration=1.960s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2534,tp_dst=0 actions=output:1
3605 cookie=0x0, duration=228.780s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
05b8f1c2 3606 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3607]])
3608AT_CLEANUP
3609
3610AT_SETUP([NXST_AGGREGATE request])
3611AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3612AT_CHECK([ovs-ofctl ofp-print "\
361301 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
361400 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3615"], [0], [dnl
f92ef1a8 3616NXST_AGGREGATE request (xid=0x4):
fec00620
BP
3617])
3618AT_CLEANUP
3619
3620AT_SETUP([NXST_AGGREGATE reply])
3621AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3622AT_CHECK([ovs-ofctl ofp-print "\
362301 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
362400 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
362500 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3626"], [0], [dnl
3627NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3628])
3629AT_CLEANUP
2b07c8b1
BP
3630
3631AT_SETUP([NXST_FLOW_MONITOR request])
3632AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3633AT_CHECK([ovs-ofctl ofp-print "\
363401 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
363500 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
363600 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3637"], [0], [dnl
3638NXST_FLOW_MONITOR request (xid=0x4):
3639 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3640 id=8192 flags=delete table=2 in_port=1
3641])
3642AT_CLEANUP
3643
3644AT_SETUP([NXST_FLOW_MONITOR reply])
3645AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3646AT_CHECK([ovs-ofctl ofp-print "\
364701 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 364800 20 00 01 00 05 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
2b07c8b1
BP
364900 00 00 02 00 01 00 00 \
365000 08 00 03 00 01 86 a0 \
3651"], [0], [dnl
3652NXST_FLOW_MONITOR reply (xid=0x4):
3653 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3654 event=ABBREV xid=0x186a0
3655])
3656AT_CLEANUP
777af88d
AC
3657
3658
68030e16
JR
3659AT_SETUP([OFPT_BUNDLE_CONTROL - atomic OPEN_REQUEST])
3660AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3661AT_CHECK([ovs-ofctl ofp-print "\
366205 21 00 10 00 00 00 00 \
366300 00 00 01 00 00 00 01 \
3664"], [0], [dnl
3665OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3666 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3667])
3668AT_CLEANUP
3669
68030e16
JR
3670AT_SETUP([OFPT_BUNDLE_CONTROL - ordered OPEN_REQUEST])
3671AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3672AT_CHECK([ovs-ofctl ofp-print "\
367305 21 00 10 00 00 00 00 \
367400 00 00 01 00 00 00 02 \
3675"], [0], [dnl
3676OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3677 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3678])
3679AT_CLEANUP
3680
68030e16
JR
3681AT_SETUP([OFPT_BUNDLE_CONTROL - atomic ordered OPEN_REQUEST])
3682AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3683AT_CHECK([ovs-ofctl ofp-print "\
368405 21 00 10 00 00 00 00 \
368500 00 00 01 00 00 00 03 \
3686"], [0], [dnl
3687OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3688 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3689])
3690AT_CLEANUP
3691
3692AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
68030e16 3693AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3694AT_CHECK([ovs-ofctl ofp-print "\
369505 21 00 10 00 00 00 00 \
369600 00 00 01 00 01 00 01 \
3697"], [0], [dnl
3698OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3699 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3700])
3701AT_CLEANUP
3702
3703AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
68030e16 3704AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3705AT_CHECK([ovs-ofctl ofp-print "\
370605 21 00 10 00 00 00 00 \
370700 00 00 01 00 02 00 01 \
3708"], [0], [dnl
3709OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3710 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3711])
3712AT_CLEANUP
3713
3714AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
68030e16 3715AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3716AT_CHECK([ovs-ofctl ofp-print "\
371705 21 00 10 00 00 00 00 \
371800 00 00 01 00 03 00 01 \
3719"], [0], [dnl
3720OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3721 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3722])
3723AT_CLEANUP
3724
3725AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
68030e16 3726AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3727AT_CHECK([ovs-ofctl ofp-print "\
372805 21 00 10 00 00 00 00 \
372900 00 00 01 00 04 00 01 \
3730"], [0], [dnl
3731OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3732 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3733])
3734AT_CLEANUP
3735
3736AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
68030e16 3737AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3738AT_CHECK([ovs-ofctl ofp-print "\
373905 21 00 10 00 00 00 00 \
374000 00 00 01 00 05 00 01 \
3741"], [0], [dnl
3742OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3743 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3744])
3745AT_CLEANUP
3746
3747AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
68030e16 3748AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3749AT_CHECK([ovs-ofctl ofp-print "\
375005 21 00 10 00 00 00 00 \
375100 00 00 01 00 06 00 01 \
3752"], [0], [dnl
3753OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3754 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3755])
3756AT_CLEANUP
3757
3758AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
68030e16 3759AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3760AT_CHECK([ovs-ofctl ofp-print "\
376105 21 00 10 00 00 00 00 \
376200 00 00 01 00 07 00 01 \
3763"], [0], [dnl
3764OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3765 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3766])
3767AT_CLEANUP
3768
be6f6393 3769AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
68030e16 3770AT_KEYWORDS([ofp-print bundle])
be6f6393
JR
3771AT_CHECK([ovs-ofctl ofp-print "\
377205 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 377305 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
be6f6393
JR
3774"], [0], [dnl
3775OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
2d071a32
BP
377600000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
377700000010 05 00 00 08 00 00 00 01-00 00 00 00 00 00 00 00 |................|
be6f6393
JR
3778])
3779AT_CLEANUP
3780
c25ce22d 3781AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
68030e16 3782AT_KEYWORDS([ofp-print bundle])
44648b0f 3783AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
c25ce22d 378405 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 378505 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
c25ce22d
JR
3786"], [0], [dnl
3787OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
2d071a32
BP
378800000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
378900000010 05 00 00 10 00 00 00 00-00 00 00 00 00 00 00 00 |................|
44648b0f 3790], [dnl
0d71302e 3791ofp_bundle|WARN|OFPT_HELLO message not allowed inside OFPT14_BUNDLE_ADD_MESSAGE
c25ce22d
JR
3792])
3793AT_CLEANUP
3794
3795AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
68030e16 3796AT_KEYWORDS([ofp-print bundle])
c25ce22d
JR
3797AT_CHECK([ovs-ofctl ofp-print "\
379805 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
46be7132 379905 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
c25ce22d
JR
380000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3801ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
380200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
380350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
380480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
380500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
380600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
380700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3808"], [0], [dnl
3809OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3810 bundle_id=0x1 flags=atomic
46be7132 3811OFPT_FLOW_MOD (OF1.4) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
c25ce22d
JR
3812])
3813AT_CLEANUP
3814
3815AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
68030e16 3816AT_KEYWORDS([ofp-print bundle])
c25ce22d
JR
3817AT_CHECK([ovs-ofctl ofp-print "\
381805 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
381905 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
382050 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
382100 00 00 08 00 00 00 01
777af88d 3822"], [0], [dnl
c25ce22d 3823OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
777af88d 3824 bundle_id=0x1 flags=atomic
3e461c2c 3825OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01
c25ce22d
JR
3826 config: PORT_DOWN
3827 mask: PORT_DOWN
3828 advertise: 10MB-HD
777af88d
AC
3829])
3830AT_CLEANUP
fb8f22c1 3831
68030e16
JR
3832AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - GROUP_MOD])
3833AT_KEYWORDS([ofp-print bundle])
3834AT_CHECK([ovs-ofctl ofp-print "\
383506 22 00 c8 00 00 00 03 00 00 00 01 00 00 00 01 \
383606 0f 00 b8 00 00 00 03 00 00 01 00 87 65 43 21 \
383700 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
383800 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
383900 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
384000 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
384100 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
384200 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
384300 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
384400 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3845ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
384668 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
384700 00 00 00 00 00 00 07 \
3848"], [0], [dnl
3849OFPT_BUNDLE_ADD_MESSAGE (OF1.5) (xid=0x3):
3850 bundle_id=0x1 flags=atomic
3851OFPT_GROUP_MOD (OF1.5) (xid=0x3):
3852 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
3853])
3854AT_CLEANUP
3855
6dd3c787
JR
3856AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PACKET_OUT])
3857AT_KEYWORDS([ofp-print bundle packet-out])
3858AT_CHECK([ovs-ofctl ofp-print "\
385905 22 00 74 00 00 00 03 00 00 00 01 00 00 00 01 \
386005 0d 00 64 00 00 00 03 ff ff ff ff ff ff ff fe \
386100 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
386205 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
386300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
3864b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
386500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
386600 00 00 00 \
3867"], [0], [dnl
3868OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
3869 bundle_id=0x1 flags=atomic
3870OFPT_PACKET_OUT (OF1.4) (xid=0x3): in_port=LOCAL actions=FLOOD data_len=60
3871tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
3872])
3873AT_CLEANUP
3874
fb8f22c1
BY
3875AT_SETUP([NXST_IPFIX_BRIDGE - request])
3876AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3877AT_CHECK([ovs-ofctl ofp-print "\
387801 10 00 18 00 00 00 02 \
3879ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00 \
3880"], [0], [dnl
3881NXST_IPFIX_BRIDGE request (xid=0x2):
3882])
3883AT_CLEANUP
3884
3885AT_SETUP([NXST_IPFIX_BRIDGE - reply])
3886AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3887AT_CHECK([ovs-ofctl ofp-print "\
388801 11 00 70 00 00 00 02 \
3889ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00\
389000 00 00 00 00 00 00 01 \
389100 00 00 00 00 00 00 10 \
389200 00 00 00 00 00 00 78 \
389300 00 00 00 00 00 00 f0 \
389400 00 00 00 00 00 00 00 \
389500 00 00 00 00 00 00 a0 \
389600 00 00 00 00 00 00 02 \
389700 00 00 00 00 00 00 03 \
389800 00 00 00 00 00 00 04 \
389900 00 00 00 00 00 00 05 \
390000 00 00 00 00 00 00 00 \
3901"], [0], [dnl
3902NXST_IPFIX_BRIDGE reply (xid=0x2):
3903 bridge ipfix: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3904 pkts errs=160, ipv4 errs=2, ipv6 errs=3, tx errs=5
3905])
3906AT_CLEANUP
3907
3908AT_SETUP([NXST_IPFIX_FLOW - request])
3909AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3910AT_CHECK([ovs-ofctl ofp-print "\
391101 10 00 18 00 00 00 02 \
3912ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00 \
3913"], [0], [dnl
3914NXST_IPFIX_FLOW request (xid=0x2):
3915])
3916AT_CLEANUP
3917
3918AT_SETUP([NXST_IPFIX_FLOW - reply])
3919AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3920AT_CHECK([ovs-ofctl ofp-print "\
392101 11 00 C8 00 00 00 02 \
3922ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00\
392300 00 00 00 00 00 00 01 \
392400 00 00 00 00 00 00 10 \
392500 00 00 00 00 00 00 78 \
392600 00 00 00 00 00 00 f0 \
392700 00 00 00 00 00 00 00 \
392800 00 00 00 00 00 00 a0 \
392900 00 00 10 00 00 00 02 \
393000 00 00 00 00 00 00 03 \
393100 00 00 00 00 00 00 04 \
393200 00 00 00 00 00 00 05 \
393300 00 00 01 00 00 00 00 \
393400 00 00 00 00 00 00 01 \
393500 00 00 00 00 00 00 10 \
393600 00 00 00 00 00 00 78 \
393700 00 00 00 00 00 00 f0 \
393800 00 00 00 00 00 00 00 \
393900 00 00 00 00 00 00 a0 \
394000 00 00 10 00 00 00 02 \
394100 00 00 00 00 00 00 03 \
394200 00 00 00 00 00 00 04 \
394300 00 00 00 00 00 00 05 \
394400 00 00 02 00 00 00 00 \
3945"], [0], [dnl
3946NXST_IPFIX_FLOW reply (xid=0x2): 2 ids
3947 id 1: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3948 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
3949 id 2: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3950 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
3951])
3952AT_CLEANUP
2a7c4805
JP
3953
3954AT_SETUP([NXT_CT_FLUSH_ZONE])
3955AT_KEYWORDS([ofp-print])
3956AT_CHECK([ovs-ofctl ofp-print "\
395701 04 00 18 00 00 00 03 00 00 23 20 00 00 00 1d \
395800 00 00 00 00 00 00 0d \
3959"], [0], [dnl
3960NXT_CT_FLUSH_ZONE (xid=0x3): zone_id=13
3961])
3962AT_CLEANUP