]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ovsdb: Use column diffs for ovsdb and raft log entries.
[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])
807152a4
BP
2819dnl This message has bit 12 set for the PACKET_IN messages (primary and
2820dnl secondary).
904e5202
BP
2821dnl Those aren't supported bits so they get silently ignored on decoding.
2822dnl That seems reasonable because OF1.3 doesn't define any error codes for
2823dnl OFPT_SET_ASYNC.
2e1ae200
JR
2824AT_CHECK([ovs-ofctl ofp-print "\
282504 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
282600 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2827"], [0], [dnl
2828OFPT_SET_ASYNC (OF1.3) (xid=0x0):
807152a4 2829 primary:
904e5202 2830 PACKET_IN: no_match invalid_ttl
2e1ae200
JR
2831 PORT_STATUS: add delete
2832 FLOW_REMOVED: (off)
904e5202
BP
2833 ROLE_STATUS: (off)
2834 TABLE_STATUS: (off)
2835 REQUESTFORWARD: (off)
2e1ae200 2836
807152a4 2837 secondary:
904e5202 2838 PACKET_IN: no_match action invalid_ttl
2e1ae200
JR
2839 PORT_STATUS: add delete modify
2840 FLOW_REMOVED: idle hard
904e5202
BP
2841 ROLE_STATUS: (off)
2842 TABLE_STATUS: (off)
2843 REQUESTFORWARD: (off)
2e1ae200
JR
2844])
2845AT_CLEANUP
2846
6ea4776b
JR
2847AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2848AT_KEYWORDS([ofp-print])
2849AT_CHECK([ovs-ofctl ofp-print "\
285003 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
285100 00 00 00 00 00 00 03 \
2852"], [0], [dnl
807152a4 2853OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=primary generation_id=3
6ea4776b
JR
2854])
2855AT_CLEANUP
2856
2857AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2858AT_KEYWORDS([ofp-print])
2859AT_CHECK([ovs-ofctl ofp-print "\
286003 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
286100 00 00 00 00 00 00 00 \
2862"], [0], [dnl
2863OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2864])
2865AT_CLEANUP
2866
fec00620
BP
2867AT_SETUP([NXT_ROLE_REQUEST])
2868AT_KEYWORDS([ofp-print])
2869AT_CHECK([ovs-ofctl ofp-print "\
287001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
287100 00 00 01 \
2872"], [0], [dnl
807152a4 2873NXT_ROLE_REQUEST (xid=0x2): role=primary
fec00620
BP
2874])
2875AT_CLEANUP
2876
6ea4776b
JR
2877AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2878AT_KEYWORDS([ofp-print])
2879AT_CHECK([ovs-ofctl ofp-print "\
288003 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 288112 34 56 78 ab cd ef 90 \
6ea4776b 2882"], [0], [dnl
807152a4 2883OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=secondary generation_id=1311768467750121360
6ea4776b
JR
2884])
2885AT_CLEANUP
2886
fec00620
BP
2887AT_SETUP([NXT_ROLE_REPLY])
2888AT_KEYWORDS([ofp-print])
2889AT_CHECK([ovs-ofctl ofp-print "\
289001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
289100 00 00 02 \
2892"], [0], [dnl
807152a4 2893NXT_ROLE_REPLY (xid=0x2): role=secondary
fec00620
BP
2894])
2895AT_CLEANUP
2896
807152a4 2897AT_SETUP([OFP_ROLE_STATUS - primary, experimenter - OF1.3])
b0e07d50
BP
2898AT_KEYWORDS([ofp-print])
2899AT_CHECK([ovs-ofctl ofp-print "\
290004 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
290100 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2902"], [0], [dnl
807152a4 2903ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=primary reason=experimenter_data_changed
b0e07d50
BP
2904])
2905AT_CLEANUP
2906
807152a4 2907AT_SETUP([OFP_ROLE_STATUS - primary, config - OF1.3])
b0e07d50
BP
2908AT_KEYWORDS([ofp-print])
2909AT_CHECK([ovs-ofctl ofp-print "\
291004 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
291100 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2912"], [0], [dnl
807152a4 2913ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=primary reason=configuration_changed
b0e07d50
BP
2914])
2915AT_CLEANUP
2916
807152a4 2917AT_SETUP([OFP_ROLE_STATUS - primary, config,generation - OF1.3])
b0e07d50
BP
2918AT_KEYWORDS([ofp-print])
2919AT_CHECK([ovs-ofctl ofp-print "\
292004 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
292100 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2922"], [0], [dnl
807152a4 2923ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=primary generation_id=16 reason=configuration_changed
b0e07d50
BP
2924])
2925AT_CLEANUP
2926
807152a4 2927AT_SETUP([OFP_ROLE_STATUS - primary, experimenter - OF1.4])
00467f73
AC
2928AT_KEYWORDS([ofp-print])
2929AT_CHECK([ovs-ofctl ofp-print "\
293005 1e 00 18 00 00 00 0a \
293100 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2932"], [0], [dnl
807152a4 2933OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=primary reason=experimenter_data_changed
00467f73
AC
2934])
2935AT_CLEANUP
2936
807152a4 2937AT_SETUP([OFP_ROLE_STATUS - primary, config - OF1.4])
00467f73
AC
2938AT_KEYWORDS([ofp-print])
2939AT_CHECK([ovs-ofctl ofp-print "\
294005 1e 00 18 00 00 00 0a \
294100 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2942"], [0], [dnl
807152a4 2943OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=primary reason=configuration_changed
00467f73
AC
2944])
2945AT_CLEANUP
2946
807152a4 2947AT_SETUP([OFP_ROLE_STATUS - primary, config,generation - OF1.4])
00467f73
AC
2948AT_KEYWORDS([ofp-print])
2949AT_CHECK([ovs-ofctl ofp-print "\
295005 1e 00 18 00 00 00 0a \
295100 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2952"], [0], [dnl
807152a4 2953OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=primary generation_id=16 reason=configuration_changed
00467f73
AC
2954])
2955AT_CLEANUP
2956
3c35db62
NR
2957AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2958AT_KEYWORDS([ofp-print])
2959AT_CHECK([ovs-ofctl ofp-print "\
296005 20 00 18 00 00 00 02 \
296105 0f 00 10 02 00 00 00 \
296200 00 00 00 00 00 00 01 \
2963"], [0], [dnl
2964OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2965 ADD group_id=1,type=all
2966])
2967AT_CLEANUP
2968
2969AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2970AT_KEYWORDS([ofp-print])
2971AT_CHECK([ovs-ofctl ofp-print "\
297205 20 00 18 00 00 00 02 \
297305 0f 00 10 02 00 00 00 \
297400 01 01 00 00 00 00 01 \
2975"], [0], [dnl
2976OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2977 MOD group_id=1,type=select
2978])
2979AT_CLEANUP
2980
2981AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2982AT_KEYWORDS([ofp-print])
2983AT_CHECK([ovs-ofctl ofp-print "\
298405 20 00 18 00 00 00 02 \
298505 1d 00 10 02 00 00 00 \
298600 00 00 00 00 00 00 01 \
2987"], [0], [dnl
2988OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod ADD meter=1 bands=
2989])
2990AT_CLEANUP
2991
2992AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2993AT_KEYWORDS([ofp-print])
2994AT_CHECK([ovs-ofctl ofp-print "\
299505 20 00 18 00 00 00 02 \
299605 1d 00 10 02 00 00 00 \
299700 01 01 00 00 00 00 01 \
2998"], [0], [dnl
2999OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod MOD meter=1 flags:0x100 bands=
3000])
3001AT_CLEANUP
3002
98a9272b
ZW
3003AT_SETUP([NXT_REQUESTFORWARD - inner NXT_GROUP_MOD])
3004AT_KEYWORDS([ofp-print])
3005AT_CHECK([ovs-ofctl ofp-print "\
3006dnl OF version 1.0; type=extension:
300701 04 \
3008dnl size in bytes:
300900 b8 \
3010dnl xid:
301100 00 00 02 \
3012dnl Nicira vendor number:
301300 00 23 20 \
3014dnl subtype (message id number = 132 in this case)
301500 00 00 84 \
3016dnl inner msg copied and pasted from NXT_GROUP_MOD test above:
301701 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f 00 00 01 00 87 65 43 21 \
301800 60 00 00 ff ff ff ff 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
301900 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 00 20 00 08 00 00 00 01 \
302000 00 00 08 00 02 00 00 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02 \
302100 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 00 00 00 08 00 c8 00 00 \
302200 01 00 08 00 00 00 03 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
302368 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 \
3024"], [0], [dnl
3025NXT_REQUESTFORWARD (xid=0x2): reason=group_mod
3026 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
3027])
3028AT_CLEANUP
3029
3030AT_SETUP([NXT_REQUESTFORWARD - inner OFPT_GROUP_MOD - OF1.1])
3031AT_KEYWORDS([ofp-print])
3032AT_CHECK([ovs-ofctl ofp-print "\
3033dnl OF Version 1.1; type=extension:
303402 04 \
3035dnl size in bytes:
303600 80 \
3037dnl xid:
303800 00 00 02 \
3039dnl Nicira vendor number:
304000 00 23 20 \
3041dnl subtype (message id number = 132 in this case)
304200 00 00 84 \
3043dnl inner msg copied and pasted from OFPT_GROUP_MOD OF1.1 test above:
304402 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
304500 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
304600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
304700 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
304800 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
304900 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
305000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3051"], [0], [dnl
3052NXT_REQUESTFORWARD (OF1.1) (xid=0x2): reason=group_mod
3053 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
3054])
3055AT_CLEANUP
3056
3057AT_SETUP([ONFT_REQUESTFORWARD - inner OFPT_METER_MOD - OF1.3])
3058AT_KEYWORDS([ofp-print])
3059AT_CHECK([ovs-ofctl ofp-print "\
3060dnl OF Version 1.3; type=extension:
306104 04 \
3062dnl size in bytes:
306300 30 \
3064dnl xid:
306500 00 00 02 \
3066dnl ONF vendor number:
30674F 4E 46 00 \
3068dnl subtype (message id number = 2350 in this case)
306900 00 09 2e \
3070dnl inner msg copied and pasted from the valid OFPT_METER_MOD OF1.3 test:
307104 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
307200 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
3073"], [0], [dnl
3074ONFT_REQUESTFORWARD (OF1.3) (xid=0x2): reason=meter_mod ADD meter=5 kbps burst stats bands=
3075type=drop rate=1024 burst_size=128
3076])
3077AT_CLEANUP
3078
54834960
EJ
3079AT_SETUP([NXT_SET_PACKET_IN])
3080AT_KEYWORDS([ofp-print])
3081AT_CHECK([ovs-ofctl ofp-print "\
308201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
308300 00 00 01 \
3084"], [0], [dnl
6409e008 3085NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxt_packet_in
54834960
EJ
3086])
3087AT_CLEANUP
3088
3089AT_SETUP([NXT_PACKET_IN])
3090AT_KEYWORDS([ofp-print])
3091AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 309201 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 3093ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 309400 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
309520 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
309600 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
309700 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 309800 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 3099ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
310080 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
310100 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 310200 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
310331 6d 00 00 00 00 00 00 00 00 \
3104"], [0], [dnl
50dcbd8e 3105NXT_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 3106tcp,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
3107])
3108AT_CLEANUP
3109
b4ccee75
SH
3110AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
3111AT_KEYWORDS([ofp-print])
3112AT_CHECK([ovs-ofctl ofp-print "\
311301 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
3114ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
311500 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
311620 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
311700 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
311800 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
311900 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
3120ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
312180 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
312200 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 312300 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
312431 6d 00 00 00 00 00 00 00 00 \
3125" 3], [0], [dnl
50dcbd8e 3126NXT_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 3127tcp,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
312800000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
312900000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
313000000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 313100000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
3132])
3133AT_CLEANUP
3134
6409e008
BP
3135AT_SETUP([NX_PACKET_IN2])
3136AT_KEYWORDS([ofp-print])
3137AT_CHECK([ovs-ofctl ofp-print "
bdcad671 313801 04 0098 00000000 00002320 0000001e
6409e008
BP
31390000 0034
3140 82 82 82 82 82 82 80 81 81 81 81 81 81 00 00 50
3141 08 00 45 00 00 28 00 00 00 00 00 06 32 05 53 53
3142 53 53 54 54 54 54 00 55 00 56 00 00 00 00 00 00 00000000
31430001 0008 00000040
31440002 0008 00000114
31450003 0005 07 000000
31460004 0010 00000000 fedcba9876543210
31470005 0005 01 000000
bdcad671
BP
31480006 0010 80000408 5a5a5a5a5a5a5a5a
31490007 0009 0102030405 00000000000000
3150"
6409e008
BP
3151], [0], [dnl
3152NXT_PACKET_IN2 (xid=0x0): table_id=7 cookie=0xfedcba9876543210 total_len=64 metadata=0x5a5a5a5a5a5a5a5a (via action) data_len=48 buffer=0x00000114
bdcad671 3153 userdata=01.02.03.04.05
f0fb825a 3154ip,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
3155])
3156AT_CLEANUP
3157
80d5aefd
BP
3158AT_SETUP([NXT_SET_ASYNC_CONFIG])
3159AT_KEYWORDS([ofp-print])
807152a4 3160dnl This message has bit 12 set for the PACKET_IN messages (primary and secondary).
904e5202 3161dnl Those aren't supported bits so they get silently ignored on decoding.
80d5aefd
BP
3162AT_CHECK([ovs-ofctl ofp-print "\
316301 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
316400 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
316500 00 00 00 00 00 00 03 \
3166"], [0], [dnl
3167NXT_SET_ASYNC_CONFIG (xid=0x0):
807152a4 3168 primary:
904e5202 3169 PACKET_IN: no_match invalid_ttl
80d5aefd
BP
3170 PORT_STATUS: add delete
3171 FLOW_REMOVED: (off)
904e5202
BP
3172 ROLE_STATUS: (off)
3173 TABLE_STATUS: (off)
3174 REQUESTFORWARD: (off)
80d5aefd 3175
807152a4 3176 secondary:
904e5202 3177 PACKET_IN: no_match action invalid_ttl
80d5aefd
BP
3178 PORT_STATUS: add delete modify
3179 FLOW_REMOVED: idle hard
904e5202
BP
3180 ROLE_STATUS: (off)
3181 TABLE_STATUS: (off)
3182 REQUESTFORWARD: (off)
80d5aefd
BP
3183])
3184AT_CLEANUP
3185
98090482
NR
3186AT_SETUP([OFPT_SET_ASYNC_CONFIG])
3187AT_KEYWORDS([ofp-print])
3188AT_CHECK([ovs-ofctl ofp-print "\
318905 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
319000 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
319100 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
319200 05 00 08 00 00 00 05 \
3193"], [0], [dnl
3194OFPT_SET_ASYNC (OF1.4) (xid=0x2):
807152a4 3195 primary:
98090482
NR
3196 PACKET_IN: action
3197 PORT_STATUS: add modify
3198 FLOW_REMOVED: idle delete
3199 ROLE_STATUS: (off)
3200 TABLE_STATUS: (off)
3201 REQUESTFORWARD: (off)
3202
807152a4 3203 secondary:
98090482
NR
3204 PACKET_IN: no_match invalid_ttl
3205 PORT_STATUS: delete
3206 FLOW_REMOVED: delete group_delete meter_delete
3207 ROLE_STATUS: (off)
3208 TABLE_STATUS: (off)
3209 REQUESTFORWARD: (off)
3210])
3211AT_CLEANUP
3212
d18cc1ee
AA
3213AT_SETUP([OFPT_SET_ASYNC_CONFIG - invalid mask - OF1.4])
3214AT_KEYWORDS([ofp-print])
3215AT_CHECK([ovs-ofctl ofp-print "\
321605 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 40 \
321700 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
321800 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
321900 05 00 08 00 00 00 05 \
3220"], [0], [dnl
3221OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_INVALID***
2d071a32
BP
322200000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 40 |...8...........@|
322300000010 00 01 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
322400000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
322500000030 00 05 00 08 00 00 00 05- |........ |
8fd0bb60
BP
3226], [stderr])
3227AT_CHECK([sed 's/.*|//' stderr], [0],
3228 [bad value 0x40 for PACKET_IN (allowed mask 0x3f)
d18cc1ee
AA
3229])
3230AT_CLEANUP
3231
3232AT_SETUP([OFPT_SET_ASYNC_CONFIG - unsupported configuration - OF1.4])
3233AT_KEYWORDS([ofp-print])
3234AT_CHECK([ovs-ofctl ofp-print "\
323505 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
323600 11 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
323700 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
323800 05 00 08 00 00 00 05\
3239"], [0], [dnl
3240OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_UNSUPPORTED***
2d071a32
BP
324100000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 05 |...8............|
324200000010 00 11 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
324300000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
324400000030 00 05 00 08 00 00 00 05- |........ |
8fd0bb60
BP
3245], [stderr])
3246AT_CHECK([sed 's/.*|//' stderr], [0],
3247 [unknown async config property type 17
d18cc1ee
AA
3248])
3249AT_CLEANUP
3250
a7349929
BP
3251AT_SETUP([NXT_SET_CONTROLLER_ID])
3252AT_KEYWORDS([ofp-print])
3253AT_CHECK([ovs-ofctl ofp-print "\
325401 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
325500 00 00 00 00 00 00 7b \
3256"], [0], [dnl
3257NXT_SET_CONTROLLER_ID (xid=0x3): id=123
3258])
3259AT_CLEANUP
3260
2b07c8b1
BP
3261AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
3262AT_KEYWORDS([ofp-print])
3263AT_CHECK([ovs-ofctl ofp-print "\
326401 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
326501 02 30 40 \
3266"], [0], [dnl
3267NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
3268])
3269AT_CLEANUP
3270
3271AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
3272AT_KEYWORDS([ofp-print])
3273AT_CHECK([ovs-ofctl ofp-print "\
327401 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
3275"], [0], [dnl
3276NXT_FLOW_MONITOR_PAUSED (xid=0x3):
3277])
3278AT_CLEANUP
3279
3280AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
3281AT_KEYWORDS([ofp-print])
3282AT_CHECK([ovs-ofctl ofp-print "\
328301 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
3284"], [0], [dnl
3285NXT_FLOW_MONITOR_RESUMED (xid=0x3):
3286])
3287AT_CLEANUP
3288
fec00620
BP
3289AT_SETUP([NXT_SET_FLOW_FORMAT])
3290AT_KEYWORDS([ofp-print])
3291AT_CHECK([ovs-ofctl ofp-print "\
329201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
329300 00 00 02 \
3294"], [0], [dnl
3295NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
3296])
3297AT_CLEANUP
3298
3299# The flow is formatted with cls_rule_format() for the low-verbosity case.
3300AT_SETUP([NXT_FLOW_MOD, low verbosity])
3301AT_KEYWORDS([ofp-print])
3302AT_CHECK([ovs-ofctl ofp-print "\
330301 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
330400 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 3305ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
330600 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
330700 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
330800 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3309" 2], [0], [dnl
de0f16bc 3310NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
3311])
3312AT_CLEANUP
3313
eec25dc1
BP
3314# The flow is formatted with ofp10_match_to_string() for the
3315# low-verbosity case.
fec00620
BP
3316AT_SETUP([NXT_FLOW_MOD, high verbosity])
3317AT_KEYWORDS([ofp-print])
3318AT_CHECK([ovs-ofctl ofp-print "\
331901 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
332000 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 3321ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
332200 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
332300 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
332400 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3325" 3], [0], [dnl
de0f16bc 3326NXT_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
3327])
3328AT_CLEANUP
3329
7b809df9
BP
3330AT_SETUP([NXT_GROUP_MOD add - OF1.0])
3331AT_KEYWORDS([ofp-print])
3332AT_CHECK([ovs-ofctl ofp-print "\
333301 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f \
333400 00 01 00 87 65 43 21 \
333500 60 00 00 ff ff ff ff \
3336\
333700 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
333800 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3339\
334000 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
334100 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02
3342\
334300 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
334400 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3345ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
334668 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
334700 00 00 00 00 00 00 07 \
3348"], [0], [dnl
3349NXT_GROUP_MOD (xid=0x2):
3350 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
3351])
3352AT_CLEANUP
3353
76c41209 3354AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
3355AT_KEYWORDS([ofp-print])
3356AT_CHECK([ovs-ofctl ofp-print "\
335702 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
335800 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
335900 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
336000 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
336100 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
336200 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
336300 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3364"], [0], [dnl
3365OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
3366 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
3367])
3368AT_CLEANUP
3369
76c41209
SH
3370AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
3371AT_KEYWORDS([ofp-print])
3372AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 337306 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \
76c41209
SH
337400 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
337500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
337600 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
337700 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
337800 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
337900 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
338000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
338100 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
0c4b9393
SH
3382ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
338368 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
338400 00 00 00 00 00 00 07 \
76c41209
SH
3385"], [0], [dnl
3386OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
0c4b9393 3387 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
3388])
3389AT_CLEANUP
3390
3391AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
3392AT_KEYWORDS([ofp-print])
3393AT_CHECK([ovs-ofctl ofp-print "\
339406 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
339500 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
339600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
339700 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
339800 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
339900 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
340000 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
340100 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
340200 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3403"], [0], [dnl
3404OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
3405 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
3406])
3407AT_CLEANUP
3408
fec00620
BP
3409AT_SETUP([NXT_FLOW_REMOVED])
3410AT_KEYWORDS([ofp-print])
3411AT_CHECK([ovs-ofctl ofp-print "\
341201 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 341300 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
341401 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
341500 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
341602 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
341700 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
34181e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
3419c0 a8 00 02 00 00 00 00 \
3420"], [0], [dnl
745bfd5e 3421NXT_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
3422])
3423AT_CLEANUP
3424
a1a7d333
BP
3425AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
3426AT_KEYWORDS([ofp-print])
3427AT_CHECK([ovs-ofctl ofp-print "\
342801 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
342901 00 00 00 00 00 00 00 \
3430"], [0], [dnl
3431NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
3432])
3433AT_CLEANUP
3434
77ab5fd2
BP
3435AT_SETUP([NXT_RESUME])
3436AT_KEYWORDS([ofp-print])
3437AT_CHECK([ovs-ofctl ofp-print "\
343801 04 0038 01020304 00002320 0000001c \
34390000 0012 ffffffffffff 102030405060 1234 000000000000 \
34400006 000a 00000002 fffd 000000000000
3441"], [0], [dnl
3442NXT_RESUME (xid=0x1020304): total_len=14 in_port=CONTROLLER (via no_match) data_len=14 (unbuffered)
3443vlan_tci=0x0000,dl_src=10:20:30:40:50:60,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x1234
3444])
3445AT_CLEANUP
3446
fec00620
BP
3447AT_SETUP([NXST_FLOW request])
3448AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3449AT_CHECK([ovs-ofctl ofp-print "\
345001 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
345100 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3452"], [0], [dnl
f92ef1a8 3453NXST_FLOW request (xid=0x4):
fec00620
BP
3454])
3455AT_CLEANUP
3456
3457AT_SETUP([NXST_FLOW reply])
3458AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3459AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 346001 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
346100 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
346202 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
346300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
346400 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
346502 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
346600 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
34670a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3468a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
346914 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
347000 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 347100 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
347200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
347300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
347400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
347500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3476a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
347700 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
347800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 347933 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
348000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
348100 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
348202 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
348300 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
34840a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3485a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
348614 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
348700 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 348800 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
348900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
349000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
349100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
349200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3493a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
349400 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
349500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 349634 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
349700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
349800 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
349902 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
350000 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35010a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3502a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
350314 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
350400 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
350500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
350600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
350700 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
350800 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
350900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3510a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
351100 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
351200 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
351302 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
351400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
351500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
351602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
351700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35180a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3519a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
352014 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
352100 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
352200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
352300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
352400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
352500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
352600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3527a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
352800 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
352900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
353027 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
353100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
353200 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
353302 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
353400 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35350a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3536a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
353714 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
353800 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
353900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
354000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
354100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
354200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
354300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3544a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
354500 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
354600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
35470a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
354800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
354900 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
355002 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
355100 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35520a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3553a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
355414 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
355500 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
355600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
355700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
355800 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
355900 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
356000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3561a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
356200 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
356300 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
356404 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
356500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
356600 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
356702 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
356800 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35690a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3570a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
357114 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
357200 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
357300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
357400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
357500 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
357600 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
357700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3578a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
357900 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
358000 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
35812e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
358200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
358300 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
358400 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3585ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
358600 00 00 00 00 00 00 05 \
05b8f1c2
BP
358700 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
358800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
358900 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3590"], [0],
3591[[NXST_FLOW reply (xid=0x4):
b9718b7b 3592 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 3593 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
3594 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
3595 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 3596 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 3597 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 3598 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
3599 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
3600 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
3601 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
3602 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
3603 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
3604 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
3605 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
3606 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 3607 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3608]])
3609AT_CLEANUP
3610
3611AT_SETUP([NXST_AGGREGATE request])
3612AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3613AT_CHECK([ovs-ofctl ofp-print "\
361401 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
361500 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3616"], [0], [dnl
f92ef1a8 3617NXST_AGGREGATE request (xid=0x4):
fec00620
BP
3618])
3619AT_CLEANUP
3620
3621AT_SETUP([NXST_AGGREGATE reply])
3622AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3623AT_CHECK([ovs-ofctl ofp-print "\
362401 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
362500 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
362600 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3627"], [0], [dnl
3628NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3629])
3630AT_CLEANUP
2b07c8b1
BP
3631
3632AT_SETUP([NXST_FLOW_MONITOR request])
3633AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3634AT_CHECK([ovs-ofctl ofp-print "\
363501 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
363600 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
363700 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3638"], [0], [dnl
3639NXST_FLOW_MONITOR request (xid=0x4):
3640 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3641 id=8192 flags=delete table=2 in_port=1
3642])
3643AT_CLEANUP
3644
3645AT_SETUP([NXST_FLOW_MONITOR reply])
3646AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3647AT_CHECK([ovs-ofctl ofp-print "\
364801 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 364900 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
365000 00 00 02 00 01 00 00 \
365100 08 00 03 00 01 86 a0 \
3652"], [0], [dnl
3653NXST_FLOW_MONITOR reply (xid=0x4):
3654 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3655 event=ABBREV xid=0x186a0
3656])
3657AT_CLEANUP
777af88d
AC
3658
3659
68030e16
JR
3660AT_SETUP([OFPT_BUNDLE_CONTROL - atomic OPEN_REQUEST])
3661AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3662AT_CHECK([ovs-ofctl ofp-print "\
366305 21 00 10 00 00 00 00 \
366400 00 00 01 00 00 00 01 \
3665"], [0], [dnl
3666OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3667 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3668])
3669AT_CLEANUP
3670
68030e16
JR
3671AT_SETUP([OFPT_BUNDLE_CONTROL - ordered OPEN_REQUEST])
3672AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3673AT_CHECK([ovs-ofctl ofp-print "\
367405 21 00 10 00 00 00 00 \
367500 00 00 01 00 00 00 02 \
3676"], [0], [dnl
3677OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3678 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3679])
3680AT_CLEANUP
3681
68030e16
JR
3682AT_SETUP([OFPT_BUNDLE_CONTROL - atomic ordered OPEN_REQUEST])
3683AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3684AT_CHECK([ovs-ofctl ofp-print "\
368505 21 00 10 00 00 00 00 \
368600 00 00 01 00 00 00 03 \
3687"], [0], [dnl
3688OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3689 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3690])
3691AT_CLEANUP
3692
3693AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
68030e16 3694AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3695AT_CHECK([ovs-ofctl ofp-print "\
369605 21 00 10 00 00 00 00 \
369700 00 00 01 00 01 00 01 \
3698"], [0], [dnl
3699OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3700 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3701])
3702AT_CLEANUP
3703
3704AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
68030e16 3705AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3706AT_CHECK([ovs-ofctl ofp-print "\
370705 21 00 10 00 00 00 00 \
370800 00 00 01 00 02 00 01 \
3709"], [0], [dnl
3710OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3711 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3712])
3713AT_CLEANUP
3714
3715AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
68030e16 3716AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3717AT_CHECK([ovs-ofctl ofp-print "\
371805 21 00 10 00 00 00 00 \
371900 00 00 01 00 03 00 01 \
3720"], [0], [dnl
3721OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3722 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3723])
3724AT_CLEANUP
3725
3726AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
68030e16 3727AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3728AT_CHECK([ovs-ofctl ofp-print "\
372905 21 00 10 00 00 00 00 \
373000 00 00 01 00 04 00 01 \
3731"], [0], [dnl
3732OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3733 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3734])
3735AT_CLEANUP
3736
3737AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
68030e16 3738AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3739AT_CHECK([ovs-ofctl ofp-print "\
374005 21 00 10 00 00 00 00 \
374100 00 00 01 00 05 00 01 \
3742"], [0], [dnl
3743OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3744 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3745])
3746AT_CLEANUP
3747
3748AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
68030e16 3749AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3750AT_CHECK([ovs-ofctl ofp-print "\
375105 21 00 10 00 00 00 00 \
375200 00 00 01 00 06 00 01 \
3753"], [0], [dnl
3754OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3755 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3756])
3757AT_CLEANUP
3758
3759AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
68030e16 3760AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3761AT_CHECK([ovs-ofctl ofp-print "\
376205 21 00 10 00 00 00 00 \
376300 00 00 01 00 07 00 01 \
3764"], [0], [dnl
3765OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3766 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3767])
3768AT_CLEANUP
3769
be6f6393 3770AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
68030e16 3771AT_KEYWORDS([ofp-print bundle])
be6f6393
JR
3772AT_CHECK([ovs-ofctl ofp-print "\
377305 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 377405 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
be6f6393
JR
3775"], [0], [dnl
3776OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
2d071a32
BP
377700000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
377800000010 05 00 00 08 00 00 00 01-00 00 00 00 00 00 00 00 |................|
be6f6393
JR
3779])
3780AT_CLEANUP
3781
c25ce22d 3782AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
68030e16 3783AT_KEYWORDS([ofp-print bundle])
44648b0f 3784AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
c25ce22d 378505 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 378605 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
c25ce22d
JR
3787"], [0], [dnl
3788OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
2d071a32
BP
378900000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
379000000010 05 00 00 10 00 00 00 00-00 00 00 00 00 00 00 00 |................|
44648b0f 3791], [dnl
0d71302e 3792ofp_bundle|WARN|OFPT_HELLO message not allowed inside OFPT14_BUNDLE_ADD_MESSAGE
c25ce22d
JR
3793])
3794AT_CLEANUP
3795
3796AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
68030e16 3797AT_KEYWORDS([ofp-print bundle])
c25ce22d
JR
3798AT_CHECK([ovs-ofctl ofp-print "\
379905 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
46be7132 380005 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
c25ce22d
JR
380100 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3802ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
380300 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
380450 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
380580 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
380600 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
380700 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
380800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3809"], [0], [dnl
3810OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3811 bundle_id=0x1 flags=atomic
46be7132 3812OFPT_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
3813])
3814AT_CLEANUP
3815
3816AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
68030e16 3817AT_KEYWORDS([ofp-print bundle])
c25ce22d
JR
3818AT_CHECK([ovs-ofctl ofp-print "\
381905 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
382005 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
382150 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
382200 00 00 08 00 00 00 01
777af88d 3823"], [0], [dnl
c25ce22d 3824OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
777af88d 3825 bundle_id=0x1 flags=atomic
3e461c2c 3826OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01
c25ce22d
JR
3827 config: PORT_DOWN
3828 mask: PORT_DOWN
3829 advertise: 10MB-HD
777af88d
AC
3830])
3831AT_CLEANUP
fb8f22c1 3832
68030e16
JR
3833AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - GROUP_MOD])
3834AT_KEYWORDS([ofp-print bundle])
3835AT_CHECK([ovs-ofctl ofp-print "\
383606 22 00 c8 00 00 00 03 00 00 00 01 00 00 00 01 \
383706 0f 00 b8 00 00 00 03 00 00 01 00 87 65 43 21 \
383800 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
383900 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
384000 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
384100 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
384200 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
384300 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
384400 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
384500 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3846ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
384768 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
384800 00 00 00 00 00 00 07 \
3849"], [0], [dnl
3850OFPT_BUNDLE_ADD_MESSAGE (OF1.5) (xid=0x3):
3851 bundle_id=0x1 flags=atomic
3852OFPT_GROUP_MOD (OF1.5) (xid=0x3):
3853 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
3854])
3855AT_CLEANUP
3856
6dd3c787
JR
3857AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PACKET_OUT])
3858AT_KEYWORDS([ofp-print bundle packet-out])
3859AT_CHECK([ovs-ofctl ofp-print "\
386005 22 00 74 00 00 00 03 00 00 00 01 00 00 00 01 \
386105 0d 00 64 00 00 00 03 ff ff ff ff ff ff ff fe \
386200 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
386305 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
386400 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
3865b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
386600 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
386700 00 00 00 \
3868"], [0], [dnl
3869OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
3870 bundle_id=0x1 flags=atomic
3871OFPT_PACKET_OUT (OF1.4) (xid=0x3): in_port=LOCAL actions=FLOOD data_len=60
3872tcp,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
3873])
3874AT_CLEANUP
3875
fb8f22c1
BY
3876AT_SETUP([NXST_IPFIX_BRIDGE - request])
3877AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3878AT_CHECK([ovs-ofctl ofp-print "\
387901 10 00 18 00 00 00 02 \
3880ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00 \
3881"], [0], [dnl
3882NXST_IPFIX_BRIDGE request (xid=0x2):
3883])
3884AT_CLEANUP
3885
3886AT_SETUP([NXST_IPFIX_BRIDGE - reply])
3887AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3888AT_CHECK([ovs-ofctl ofp-print "\
388901 11 00 70 00 00 00 02 \
3890ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00\
389100 00 00 00 00 00 00 01 \
389200 00 00 00 00 00 00 10 \
389300 00 00 00 00 00 00 78 \
389400 00 00 00 00 00 00 f0 \
389500 00 00 00 00 00 00 00 \
389600 00 00 00 00 00 00 a0 \
389700 00 00 00 00 00 00 02 \
389800 00 00 00 00 00 00 03 \
389900 00 00 00 00 00 00 04 \
390000 00 00 00 00 00 00 05 \
390100 00 00 00 00 00 00 00 \
3902"], [0], [dnl
3903NXST_IPFIX_BRIDGE reply (xid=0x2):
3904 bridge ipfix: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3905 pkts errs=160, ipv4 errs=2, ipv6 errs=3, tx errs=5
3906])
3907AT_CLEANUP
3908
3909AT_SETUP([NXST_IPFIX_FLOW - request])
3910AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3911AT_CHECK([ovs-ofctl ofp-print "\
391201 10 00 18 00 00 00 02 \
3913ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00 \
3914"], [0], [dnl
3915NXST_IPFIX_FLOW request (xid=0x2):
3916])
3917AT_CLEANUP
3918
3919AT_SETUP([NXST_IPFIX_FLOW - reply])
3920AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3921AT_CHECK([ovs-ofctl ofp-print "\
392201 11 00 C8 00 00 00 02 \
3923ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00\
392400 00 00 00 00 00 00 01 \
392500 00 00 00 00 00 00 10 \
392600 00 00 00 00 00 00 78 \
392700 00 00 00 00 00 00 f0 \
392800 00 00 00 00 00 00 00 \
392900 00 00 00 00 00 00 a0 \
393000 00 00 10 00 00 00 02 \
393100 00 00 00 00 00 00 03 \
393200 00 00 00 00 00 00 04 \
393300 00 00 00 00 00 00 05 \
393400 00 00 01 00 00 00 00 \
393500 00 00 00 00 00 00 01 \
393600 00 00 00 00 00 00 10 \
393700 00 00 00 00 00 00 78 \
393800 00 00 00 00 00 00 f0 \
393900 00 00 00 00 00 00 00 \
394000 00 00 00 00 00 00 a0 \
394100 00 00 10 00 00 00 02 \
394200 00 00 00 00 00 00 03 \
394300 00 00 00 00 00 00 04 \
394400 00 00 00 00 00 00 05 \
394500 00 00 02 00 00 00 00 \
3946"], [0], [dnl
3947NXST_IPFIX_FLOW reply (xid=0x2): 2 ids
3948 id 1: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3949 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
3950 id 2: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
3951 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
3952])
3953AT_CLEANUP
2a7c4805
JP
3954
3955AT_SETUP([NXT_CT_FLUSH_ZONE])
3956AT_KEYWORDS([ofp-print])
3957AT_CHECK([ovs-ofctl ofp-print "\
395801 04 00 18 00 00 00 03 00 00 23 20 00 00 00 1d \
395900 00 00 00 00 00 00 0d \
3960"], [0], [dnl
3961NXT_CT_FLUSH_ZONE (xid=0x3): zone_id=13
3962])
3963AT_CLEANUP