]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
checkpatch: Check spelling in commit messages.
[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:
1624 in_port: exact match or wildcard
1625 eth_src: exact match or wildcard
1626 eth_dst: exact match or wildcard
1627 eth_type: exact match or wildcard
1628 vlan_vid: exact match or wildcard
1629 vlan_pcp: exact match or wildcard
1630 ip_src: exact match or wildcard
1631 ip_dst: exact match or wildcard
1632 nw_proto: exact match or wildcard
1633 nw_tos: exact match or wildcard
1634 tcp_src: exact match or wildcard
1635 tcp_dst: exact match or wildcard
fec00620
BP
1636])
1637AT_CLEANUP
1638
26df8b3e
SH
1639AT_SETUP([OFPST_TABLE reply - OF1.2])
1640AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
8811fc0a
BP
1641(echo 'OFPST_TABLE reply (OF1.2) (xid=0x2):
1642 table 0 ("classifier"):
1643 active=1, lookup=74614, matched=106024
3c1bb396
BP
1644 config=controller
1645 max_entries=1000000
1646 instructions (table miss and others):
1647 instructions: write_metadata,goto_table
1648 Write-Actions and Apply-Actions features:
1649 supported on Set-Field: metadata in_port_oxm eth_src eth_dst eth_type vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst ipv6_label nw_proto ip_dscp nw_ecn arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst icmp_type icmp_code icmpv6_type icmpv6_code nd_target nd_sll nd_tll
1650 matching:
1651 metadata: exact match or wildcard
1652 in_port_oxm: exact match or wildcard
1653 eth_src: exact match or wildcard
1654 eth_dst: exact match or wildcard
1655 eth_type: exact match or wildcard
1656 vlan_vid: exact match or wildcard
1657 vlan_pcp: exact match or wildcard
1658 mpls_label: exact match or wildcard
1659 mpls_tc: exact match or wildcard
1660 ip_src: exact match or wildcard
1661 ip_dst: exact match or wildcard
1662 ipv6_src: exact match or wildcard
1663 ipv6_dst: exact match or wildcard
1664 ipv6_label: exact match or wildcard
1665 nw_proto: exact match or wildcard
1666 ip_dscp: exact match or wildcard
1667 nw_ecn: exact match or wildcard
1668 arp_op: exact match or wildcard
1669 arp_spa: exact match or wildcard
1670 arp_tpa: exact match or wildcard
1671 arp_sha: exact match or wildcard
1672 arp_tha: exact match or wildcard
1673 tcp_src: exact match or wildcard
1674 tcp_dst: exact match or wildcard
1675 udp_src: exact match or wildcard
1676 udp_dst: exact match or wildcard
1677 sctp_src: exact match or wildcard
1678 sctp_dst: exact match or wildcard
1679 icmp_type: exact match or wildcard
1680 icmp_code: exact match or wildcard
1681 icmpv6_type: exact match or wildcard
1682 icmpv6_code: exact match or wildcard
1683 nd_target: exact match or wildcard
1684 nd_sll: exact match or wildcard
8811fc0a
BP
1685 nd_tll: exact match or wildcard
1686
1687 table 1 ("table1"):
1688 active=0, lookup=0, matched=0
1689 (same features)
1690'
1691 for i in `seq 2 253`; do
1692 printf ' table %d ("table%d"): ditto\n' $i $i
26df8b3e 1693 done
8811fc0a
BP
1694 echo ' table 254 ("table254"):
1695 active=2, lookup=0, matched=0
1696 (same features)') > expout
26df8b3e
SH
1697
1698(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"
1699 pad7="00 00 00 00 00 00 00 "
1700 mid="00 00 00 0f ff ff ff ff \
170100 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
170200 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
170300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170400 00 00 07 00 00 00 00 00 0f 42 40 "
1705 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1706
45a9c31d 1707 printf "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
26df8b3e
SH
1708
1709 x=0
1710 printf "%02x $pad7" $x
1711 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
45a9c31d
BP
1712 printf "$mid 00 00 00 01 "
1713 printf "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
26df8b3e
SH
1714
1715 x=1
1716 while test $x -lt 254; do
1717 printf "%02x $pad7" $x
1718 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
45a9c31d 1719 printf "$mid 00 00 00 00 $tail "
26df8b3e
SH
1720 x=`expr $x + 1`
1721 done
1722
1723 x=254
1724 printf "%02x $pad7" $x
1725 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
45a9c31d 1726 printf "$mid 00 00 00 02 $tail") > in
8b227701 1727AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1728AT_CLEANUP
1729
2e1ae200
JR
1730AT_SETUP([OFPST_TABLE reply - OF1.3])
1731AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1732AT_CHECK([ovs-ofctl ofp-print "\
173304 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
173400 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
173500 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
173600 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1737"], [0], [dnl
3c1bb396
BP
1738OFPST_TABLE reply (OF1.3) (xid=0x1):
1739 table 0:
1740 active=11, lookup=512, matched=256
1741
1742 table 1:
1743 active=12, lookup=513, matched=257
2e1ae200
JR
1744])
1745AT_CLEANUP
1746
f8e4867e 1747AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1748AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1749AT_CHECK([ovs-ofctl ofp-print "\
175001 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
175100 00 00 00 \
1752"], [0], [dnl
e1db42d6 1753OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1754])
1755AT_CLEANUP
1756
f8e4867e
SH
1757AT_SETUP([OFPST_PORT request - 1.1])
1758AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1759AT_CHECK([ovs-ofctl ofp-print "\
176002 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1761ff ff ff ff 00 00 00 00 \
1762"], [0], [dnl
e1db42d6 1763OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1764])
1765AT_CLEANUP
1766
1767AT_SETUP([OFPST_PORT request - 1.2])
1768AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1769AT_CHECK([ovs-ofctl ofp-print "\
177003 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1771ff ff ff ff 00 00 00 00 \
1772"], [0], [dnl
e1db42d6 1773OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1774])
1775AT_CLEANUP
1776
2e1ae200
JR
1777AT_SETUP([OFPST_PORT request - 1.3])
1778AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1779AT_CHECK([ovs-ofctl ofp-print "\
178004 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1781ff ff ff ff 00 00 00 00 \
1782"], [0], [dnl
e1db42d6 1783OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1784])
1785AT_CLEANUP
1786
f8e4867e 1787AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1788AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1789AT_CHECK([ovs-ofctl ofp-print "\
179001 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
179100 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
179200 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
179300 05 71 bc 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 00 00 00 00 00 00 00 00 \
179600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179700 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
179800 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
179900 01 0c 8c 00 00 00 00 00 00 db 1c 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 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180300 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
180400 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
180500 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
180600 02 23 d4 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 00 00 00 00 00 00 00 00 \
180900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181000 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
181100 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
181200 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
181300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181600 00 00 00 00 00 00 00 00 00 00 00 \
1817"], [0], [dnl
1818OFPST_PORT reply (xid=0x1): 4 ports
1819 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1820 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1821 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1822 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1823 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1824 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1825 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1826 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1827])
1828AT_CLEANUP
1829
f8e4867e
SH
1830AT_SETUP([OFPST_PORT reply - OF1.2])
1831AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1832AT_CHECK([ovs-ofctl ofp-print "\
183303 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
183400 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
183500 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
183600 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
183700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184000 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
184100 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
184200 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
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 00 00 00 00 \
184600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184700 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
184800 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
184900 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
185000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185300 00 00 00 00 00 00 00 \
1854"], [0], [dnl
1855OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1856 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1857 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1858 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1859 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1860 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1861 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1862])
1863AT_CLEANUP
1864
65e0be10
BP
1865AT_SETUP([OFPST_PORT reply - OF1.3])
1866AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1867AT_CHECK([ovs-ofctl ofp-print "\
186804 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
186900 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
187000 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
187100 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
187200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
187300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
187400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
187500 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1876ff ff ff fe 00 00 00 00 \
187700 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
187800 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
187900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1883ff ff ff ff ff ff ff ff \
188400 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
188500 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
188600 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
188700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
189000 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1891"], [0], [dnl
1892OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1893 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1894 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1895 duration=1.001s
1896 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1897 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1898 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1899 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1900 duration=0.123s
1901])
1902AT_CLEANUP
1903
5469537b
BP
1904AT_SETUP([OFPST_PORT reply - OF1.4])
1905AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1906AT_CHECK([ovs-ofctl ofp-print "\
190705 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
190800 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
190900 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
191000 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
191100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
191200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
191300 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
191400 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
191500 00 00 00 00 00 00 ff \
1916"], [0], [dnl
1917OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1918 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1919 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1920 duration=1.001s
1921])
1922AT_CLEANUP
1923
64626975 1924AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1925AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1926AT_CHECK([ovs-ofctl ofp-print "\
192701 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1928ff ff ff ff \
1929"], [0], [dnl
3e461c2c 1930OFPST_QUEUE request (xid=0x1): port=ANY queue=ALL
fec00620
BP
1931])
1932AT_CLEANUP
1933
64626975
SH
1934AT_SETUP([OFPST_QUEUE request - OF1.1])
1935AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1936AT_CHECK([ovs-ofctl ofp-print "\
193702 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1938ff ff ff ff ff ff ff ff \
64626975 1939"], [0], [dnl
3e461c2c 1940OFPST_QUEUE request (OF1.1) (xid=0x2): port=ANY queue=ALL
64626975
SH
1941])
1942AT_CLEANUP
1943
1944AT_SETUP([OFPST_QUEUE request - OF1.2])
1945AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1946AT_CHECK([ovs-ofctl ofp-print "\
194703 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1948ff ff ff ff ff ff ff ff \
64626975 1949"], [0], [dnl
3e461c2c 1950OFPST_QUEUE request (OF1.2) (xid=0x2): port=ANY queue=ALL
64626975
SH
1951])
1952AT_CLEANUP
1953
2e1ae200
JR
1954AT_SETUP([OFPST_QUEUE request - OF1.3])
1955AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1956AT_CHECK([ovs-ofctl ofp-print "\
195704 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1958ff ff ff ff ff ff ff ff \
1959"], [0], [dnl
3e461c2c 1960OFPST_QUEUE request (OF1.3) (xid=0x2): port=ANY queue=ALL
2e1ae200
JR
1961])
1962AT_CLEANUP
1963
64626975 1964AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1965AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1966AT_CHECK([ovs-ofctl ofp-print "\
196701 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
196800 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
196900 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
197000 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
197100 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
197200 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
197300 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
197400 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
197500 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
197600 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
197700 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
197800 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
197900 00 00 00 00 00 00 00 00 00 00 00 \
1980"], [0], [dnl
1981OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1982 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1983 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1984 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1985 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1986 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1987 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1988])
1989AT_CLEANUP
1990
64626975
SH
1991AT_SETUP([OFPST_QUEUE reply - OF1.1])
1992AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1993AT_CHECK([ovs-ofctl ofp-print "\
199402 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
199500 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
199600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
199700 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
199800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
199900 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
200000 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
200100 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
200200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
200300 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
200400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
200500 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
200600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2007"], [0], [dnl
2008OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
2009 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
2010 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
2011 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
2012 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
2013 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
2014 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
2015])
2016AT_CLEANUP
2017
2018AT_SETUP([OFPST_QUEUE reply - OF1.2])
2019AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2020AT_CHECK([ovs-ofctl ofp-print "\
202103 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
202200 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
202300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
202400 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
202500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
202600 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
202700 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
202800 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
202900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
203000 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
203100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
203200 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
203300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2034"], [0], [dnl
2035OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
2036 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
2037 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
2038 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
2039 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
2040 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
2041 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
2042])
2043AT_CLEANUP
be0c30df
BP
2044
2045AT_SETUP([OFPST_QUEUE reply - OF1.3])
2046AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2047AT_CHECK([ovs-ofctl ofp-print "\
204804 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
204900 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
205000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
205100 00 00 64 1d cd 65 00 \
205200 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
205300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
205400 00 00 64 1d cd 65 00 \
205500 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
205600 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
205700 00 00 64 1d cd 65 00 \
205800 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
205900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
206000 00 00 64 1d cd 65 00 \
206100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
206200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
206300 00 00 64 1d cd 65 00 \
206400 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
206500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2066ff ff ff ff ff ff ff ff \
2067"], [0], [dnl
2068OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
2069 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
2070 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2071 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
2072 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2073 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 2074 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
2075])
2076AT_CLEANUP
2077
1bb2cdbe
BP
2078AT_SETUP([OFPST_QUEUE reply - OF1.4])
2079AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2080AT_CHECK([ovs-ofctl ofp-print "\
208105 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
208200 30 00 00 00 00 00 00 \
208300 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
208400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
208500 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
208600 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
208700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
208800 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
208900 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
209000 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
209100 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
209200 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
209300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
209400 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
209500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
209600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
209700 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
209800 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
209900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
2100ff ff ff ff ff ff ff ff \
2101"], [0], [dnl
2102OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
2103 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
2104 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2105 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
2106 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
2107 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
2108 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
2109])
2110AT_CLEANUP
2111
7b809df9
BP
2112AT_SETUP([NXST_GROUP request - OF1.0])
2113AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2114AT_CHECK([ovs-ofctl ofp-print "\
211501 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \
2116ff ff ff ff 00 00 00 00 \
2117"], [0], [NXST_GROUP request (xid=0x4): group_id=ANY
2118])
2119AT_CLEANUP
2120
2121AT_SETUP([OFPST_GROUP request - OF1.1])
7395c052
NZ
2122AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2123AT_CHECK([ovs-ofctl ofp-print "\
212402 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
2125ff ff ff ff 00 00 00 00 \
2126"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
2127])
2128AT_CLEANUP
2129
7b809df9
BP
2130AT_SETUP([NXST_GROUP reply - OF1.0])
2131AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2132AT_CHECK([ovs-ofctl ofp-print "\
213301 11 00 b8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \
213400 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
213500 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
213600 00 00 12 1d cd 65 00 \
213700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
213800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
213900 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
214000 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
214100 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
214200 00 00 10 1d cd 65 00 \
214300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
214400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2145"], [0], [dnl
2146NXST_GROUP reply (xid=0x4):
2147 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
2148 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
2149])
2150AT_CLEANUP
2151
7395c052
NZ
2152AT_SETUP([OFPST_GROUP reply - OF1.1])
2153AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2154AT_CHECK([ovs-ofctl ofp-print "\
215502 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
215600 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
215700 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
215800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
215900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
216000 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
216100 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
216200 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
216300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
216400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2165"], [0], [dnl
2166OFPST_GROUP reply (OF1.1) (xid=0x2):
2167 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
2168 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
2169])
2170AT_CLEANUP
2171
2172AT_SETUP([OFPST_GROUP reply - OF1.3])
2173AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2174AT_CHECK([ovs-ofctl ofp-print "\
217504 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
217600 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
217700 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
217800 00 00 12 1d cd 65 00 \
217900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
218000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
218100 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
218200 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
218300 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
218400 00 00 10 1d cd 65 00 \
218500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
218600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
2187"], [0], [dnl
2188OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
2189 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
2190 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
2191])
2192AT_CLEANUP
2193
7b809df9
BP
2194AT_SETUP([NXST_GROUP_DESC request - OF1.0])
2195AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2196AT_CHECK([ovs-ofctl ofp-print "\
219701 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \
219800 00 00 01 00 00 00 00
2199"], [0], [NXST_GROUP_DESC request (xid=0x4): group_id=1
2200])
2201AT_CLEANUP
2202
19187a71 2203AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
2204AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2205AT_CHECK([ovs-ofctl ofp-print "\
220602 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
2207"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
2208])
2209AT_CLEANUP
2210
2211AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
2212AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2213AT_CHECK([ovs-ofctl ofp-print "\
d4d3f33e
MT
221406 12 00 18 00 00 00 02 00 07 00 00 00 00 00 00 \
221500 00 00 01 00 00 00 00
19187a71 2216"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
2217])
2218AT_CLEANUP
2219
7b809df9
BP
2220AT_SETUP([NXST_GROUP_DESC reply - OF1.0])
2221AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2222AT_CHECK([ovs-ofctl ofp-print "\
222301 11 00 c8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \
222400 b0 01 00 00 00 20 00 00 60 00 00 00 00 00 00 \
222500 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
222600 00 00 08 00 64 00 00 \
222700 01 00 08 00 00 00 01 \
222800 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
222900 00 00 08 00 c8 00 00 \
223000 01 00 08 00 00 00 02 \
223100 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
223200 00 00 08 00 c8 00 00 \
223300 01 00 08 00 00 00 03 \
2234ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
223568 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
223600 00 00 00 00 00 00 00 \
223780 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
223814 01 ff 00 00 00 00 00 \
2239"], [0], [dnl
2240NXST_GROUP_DESC reply (xid=0x4):
2241 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
2242])
2243AT_CLEANUP
2244
76c41209 2245AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
7395c052
NZ
2246AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2247AT_CHECK([ovs-ofctl ofp-print "\
224802 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
224900 68 01 00 00 00 20 00 \
225000 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
225100 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
225200 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
225300 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
225400 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
225500 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2256"], [0], [dnl
2257OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2258 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
2259])
2260AT_CLEANUP
2261
76c41209
SH
2262AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2263AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2264AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 226506 13 00 d8 00 00 00 02 00 07 00 00 00 00 00 00 \
3986cae6 226600 c8 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
76c41209
SH
226700 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
226800 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
226900 01 00 08 00 00 00 01 \
227000 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
227100 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
227200 01 00 08 00 00 00 02 \
227300 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
227400 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
227500 01 00 08 00 00 00 03 \
0c4b9393
SH
2276ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
227768 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
227800 00 00 00 00 00 00 00 \
227980 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
228014 01 ff 00 00 00 00 00 \
76c41209
SH
2281"], [0], [dnl
2282OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
68dfc25b 2283 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
2284])
2285AT_CLEANUP
2286
7b809df9
BP
2287AT_SETUP([NXST_GROUP_FEATURES request])
2288AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2289AT_CHECK([ovs-ofctl ofp-print "\
229001 10 00 18 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \
2291"], [0], [NXST_GROUP_FEATURES request (xid=0x4):
2292])
2293AT_CLEANUP
2294
7395c052
NZ
2295AT_SETUP([OFPST_GROUP_FEATURES request])
2296AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2297AT_CHECK([ovs-ofctl ofp-print "\
229803 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2299"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2300])
2301AT_CLEANUP
2302
7b809df9
BP
2303AT_SETUP([NXST_GROUP_FEATURES reply])
2304AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2305AT_CHECK([ovs-ofctl ofp-print "\
230601 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \
230700 00 00 0f 00 00 00 0f \
230800 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
230900 00 00 01 00 00 00 07 00 00 00 0f 00 00 00 1f \
2310"], [0], [dnl
2311NXST_GROUP_FEATURES reply (xid=0x4):
2312 Group table:
2313 Types: 0xf
2314 Capabilities: 0xf
2315 all group:
2316 max_groups=0x1
2317 actions: output
2318 select group:
2319 max_groups=0x2
2320 actions: output set_vlan_vid set_vlan_pcp
2321 indirect group:
2322 max_groups=0x3
2323 actions: output set_vlan_vid set_vlan_pcp strip_vlan
2324 fast failover group:
2325 max_groups=0x4
2326 actions: output set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
2327])
2328AT_CLEANUP
2329
7395c052
NZ
2330AT_SETUP([OFPST_GROUP_FEATURES reply])
2331AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2332AT_CHECK([ovs-ofctl ofp-print "\
233303 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
233400 00 00 0f 00 00 00 0f \
233500 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 233600 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
2337"], [0], [dnl
2338OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2339 Group table:
2340 Types: 0xf
2341 Capabilities: 0xf
08d1e234
BP
2342 all group:
2343 max_groups=0x1
2344 actions: output
2345 select group:
2346 max_groups=0x2
2347 actions: output push_vlan
2348 indirect group:
2349 max_groups=0x3
2350 actions: output strip_vlan push_vlan
2351 fast failover group:
2352 max_groups=0x4
2353 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
2354])
2355AT_CLEANUP
2356
2357AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2358AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2359AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2360OFPST_PORT_DESC request (xid=0x1): port=ANY
2361])
2362AT_CLEANUP
2363
2364AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2365AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2366AT_CHECK([ovs-ofctl ofp-print "\
7448d548
MT
236706 12 00 18 00 00 00 02 00 0d 00 00 00 00 00 00 \
236800 00 00 05 00 00 00 00"], [0], [dnl
70ae4f93 2369OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2370])
2371AT_CLEANUP
2372
2be393ed
JP
2373AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2374AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2375AT_CHECK([ovs-ofctl ofp-print "\
237601 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
237700 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
237800 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
237900 00 02 8f 00 00 02 8f 00 00 00 00 \
2380"], [0], [dnl
2381OFPST_PORT_DESC reply (xid=0x0):
2382 3(eth0): addr:50:54:00:00:00:01
2383 config: PORT_DOWN
2384 state: LINK_DOWN
2385 current: 100MB-FD AUTO_NEG
2386 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2387 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2388 speed: 100 Mbps now, 100 Mbps max
2389])
2390AT_CLEANUP
2391
8c3cc785
BP
2392AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2393AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2394AT_CHECK([ovs-ofctl ofp-print "\
239505 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
239600 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
239765 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
239800 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
239900 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
240000 01 86 a0 00 01 86 a0 \
2401"], [0], [dnl
2402OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2403 3(eth0): addr:50:54:00:00:00:01
2404 config: 0
2405 state: 0
2406 current: 100MB-FD AUTO_NEG
2407 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2408 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2409 speed: 100 Mbps now, 100 Mbps max
2410])
2411AT_CLEANUP
2412
638a19b0
JR
2413AT_SETUP([OFPT_METER_MOD request - OF1.3])
2414AT_KEYWORDS([ofp-print])
2415AT_CHECK([ovs-ofctl ofp-print "\
241604 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
241700 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2418"], [0], [dnl
2419OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2420type=drop rate=1024 burst_size=128
2421])
2422AT_CLEANUP
2423
f99d6aa0
BP
2424AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2425AT_KEYWORDS([ofp-print])
2426AT_CHECK([ovs-ofctl ofp-print "\
242704 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
242800 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2429"], [0], [dnl
2430OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2d071a32
BP
243100000000 04 1d 00 20 85 01 d7 38-00 00 00 00 00 00 00 01 |... ...8........|
243200000010 00 05 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................|
f99d6aa0
BP
2433])
2434AT_CLEANUP
2435
142cdb01
BP
2436AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2437AT_KEYWORDS([ofp-print])
2438AT_CHECK([ovs-ofctl ofp-print "\
243904 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2440"], [0], [dnl
2441OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2d071a32 244200000000 04 1d 00 10 28 a6 26 52-00 08 00 00 00 00 00 01 |....@{:@.&R........|
142cdb01
BP
2443])
2444AT_CLEANUP
2445
13b1febe
BP
2446AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2447AT_KEYWORDS([ofp-print])
2448AT_CHECK([ovs-ofctl ofp-print "\
244904 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
245000 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2451"], [0], [dnl
2452OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2d071a32
BP
245300000000 04 1d 00 20 82 b3 a1 a4-00 00 00 03 00 00 00 01 |... ............|
245400000010 00 01 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................|
13b1febe
BP
2455])
2456AT_CLEANUP
2457
638a19b0
JR
2458AT_SETUP([OFPST_METER request - OF1.3])
2459AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2460AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2461OFPST_METER request (OF1.3) (xid=0x2): meter=1
2462])
2463AT_CLEANUP
2464
2465AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2466AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2467AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2468OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2469])
2470AT_CLEANUP
2471
2472AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2473AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2474AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2475OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2476])
2477AT_CLEANUP
2478
2479AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2480AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2481AT_CHECK([ovs-ofctl ofp-print "\
248204 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 248300 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2484"], [0], [dnl
2485OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2486max_meter:65536 max_bands:16 max_color:2
2487band_types: drop dscp_remark
2488capabilities: kbps pktps burst stats
2489])
2490AT_CLEANUP
2491
2492AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2493AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2494AT_CHECK([ovs-ofctl ofp-print "\
249504 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
249600 28 00 05 00 00 00 01 \
249700 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
249800 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
249900 18 00 09 00 00 00 02 \
250000 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2501"], [0], [dnl
2502OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2503meter=1 kbps burst bands=
2504type=drop rate=65536 burst_size=1280
2505type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2506
2507meter=2 kbps stats bands=
2508type=drop rate=131072
2509])
2510AT_CLEANUP
2511
2512AT_SETUP([OFPST_METER reply - OF1.3])
2513AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2514AT_CHECK([ovs-ofctl ofp-print "\
251504 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
251600 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
251700 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 251800 00 01 8a 0a 6e 23 44 \
638a19b0
JR
251900 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
252000 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
252100 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
252200 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 252300 00 01 87 0a 23 6e 44 \
638a19b0
JR
252400 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2525"], [0], [dnl
2526OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2527meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
25280: packet_count:126 byte_count:13363
25291: packet_count:231 byte_count:37934
2530
0445637d 2531meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
25320: packet_count:42 byte_count:1075
2533])
2534AT_CLEANUP
2535
5deff5aa
AW
2536AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2537AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2538AT_CHECK([ovs-ofctl ofp-print "\
253904 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
254009 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
254100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
254200 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2543ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
254400 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
254500 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
254600 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
254700 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
254800 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
254900 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
255000 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
25510d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
25521d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
25532d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
25543d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
25554d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
25565d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
25576d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
25587d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
25598d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
25609d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2561ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2562bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2563cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2564dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2565ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2566fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
256705 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
256815 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
256925 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
257035 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
257145 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
257255 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
257365 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
257475 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
257585 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
257695 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2577a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2578b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2579c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2580d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2581e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2582f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
258300 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
258400 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
258500 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
258600 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
258700 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
258800 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
258900 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
259000 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
259100 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
259200 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
259300 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
259400 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
259500 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
259600 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
259700 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
259800 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
259900 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
260000 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
260100 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
260200 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
260300 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
260400 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
260500 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
260600 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
260700 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
260800 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
260900 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
261000 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
261100 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
261200 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
261300 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
261400 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
261500 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
261600 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
261700 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
261880 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
261900 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
262000 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
262180 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
262280 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
262380 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
262480 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
262580 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
262680 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
262780 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
262880 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
262980 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
263080 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
263100 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
263280 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
263300 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
263400 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
263580 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
263680 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
263780 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
263880 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
263980 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
264080 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
264180 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
264280 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
264380 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
264480 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
264500 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
264680 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
264700 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
264800 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
264980 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
265080 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
265180 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
265280 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
265380 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
265480 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
265580 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
265600 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
265780 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
265800 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
265900 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
266000 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
266180 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
266280 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
266300 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
266480 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
266580 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
266600 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
266780 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
266800 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
266900 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
267080 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
267180 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
267280 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
267380 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
267480 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
267580 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
267680 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
267700 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
267880 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
267900 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
268000 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
268100 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
268280 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
268380 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
268400 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
268580 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
268680 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
e428148a 2687"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5): flags=[[more]]
3c1bb396 2688 table 0 ("table0"):
5deff5aa 2689 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2690 max_entries=1000000
2691 instructions (table miss and others):
2692 next tables: 1-253
2693 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2694 Write-Actions and Apply-Actions features:
08d1e234 2695 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
3c1bb396 2696 supported on Set-Field: tun_id tun_src tun_dst metadata in_port in_port_oxm pkt_mark reg0 reg1 reg2 reg3 reg4 reg5 reg6 reg7 eth_src eth_dst vlan_tci vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst nw_tos ip_dscp nw_ecn nw_ttl arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst
5deff5aa
AW
2697 matching:
2698 tun_id: exact match or wildcard
2699 tun_src: exact match or wildcard
2700 tun_dst: exact match or wildcard
2701 metadata: exact match or wildcard
2702 in_port: exact match or wildcard
2703 in_port_oxm: exact match or wildcard
2704 pkt_mark: exact match or wildcard
2705 reg0: exact match or wildcard
2706 reg1: exact match or wildcard
2707 reg2: exact match or wildcard
2708 reg3: exact match or wildcard
2709 reg4: exact match or wildcard
2710 reg5: exact match or wildcard
2711 reg6: exact match or wildcard
2712 reg7: exact match or wildcard
2713 eth_src: exact match or wildcard
2714 eth_dst: exact match or wildcard
2715 eth_type: exact match or wildcard
2716 vlan_tci: exact match or wildcard
2717 vlan_vid: exact match or wildcard
2718 vlan_pcp: exact match or wildcard
2719 mpls_label: exact match or wildcard
2720 mpls_tc: exact match or wildcard
2721 mpls_bos: exact match or wildcard
2722 ip_src: exact match or wildcard
2723 ip_dst: exact match or wildcard
2724 ipv6_src: exact match or wildcard
2725 ipv6_dst: exact match or wildcard
2726 ipv6_label: exact match or wildcard
2727 nw_proto: exact match or wildcard
2728 nw_tos: exact match or wildcard
2729 ip_dscp: exact match or wildcard
2730 nw_ecn: exact match or wildcard
2731 nw_ttl: exact match or wildcard
2732 ip_frag: exact match or wildcard
2733 arp_op: exact match or wildcard
2734 arp_spa: exact match or wildcard
2735 arp_tpa: exact match or wildcard
2736 arp_sha: exact match or wildcard
2737 arp_tha: exact match or wildcard
2738 tcp_src: exact match or wildcard
2739 tcp_dst: exact match or wildcard
2740 tcp_flags: exact match or wildcard
2741 udp_src: exact match or wildcard
2742 udp_dst: exact match or wildcard
2743 sctp_src: exact match or wildcard
2744 sctp_dst: exact match or wildcard
2745 icmp_type: exact match or wildcard
2746 icmp_code: exact match or wildcard
2747 icmpv6_type: exact match or wildcard
2748 icmpv6_code: exact match or wildcard
2749 nd_target: exact match or wildcard
2750 nd_sll: exact match or wildcard
2751 nd_tll: exact match or wildcard
2752])
2753AT_CLEANUP
2754
58cf43df 2755AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2756AT_KEYWORDS([ofp-print])
2757AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2758OFPT_BARRIER_REQUEST (xid=0x1):
2759])
2760AT_CLEANUP
2761
58cf43df
SH
2762AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2763AT_KEYWORDS([ofp-print])
2764AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2765OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2766])
2767AT_CLEANUP
2768
2769AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2770AT_KEYWORDS([ofp-print])
2771AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2772OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2773])
2774AT_CLEANUP
2775
2e1ae200
JR
2776AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2777AT_KEYWORDS([ofp-print])
2778AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2779OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2780])
2781AT_CLEANUP
2782
58cf43df 2783AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2784AT_KEYWORDS([ofp-print])
2785AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2786OFPT_BARRIER_REPLY (xid=0x1):
2787])
2788AT_CLEANUP
2789
2e1ae200 2790AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2791AT_KEYWORDS([ofp-print])
2792AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2793OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2794])
2795AT_CLEANUP
2796
2e1ae200 2797AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2798AT_KEYWORDS([ofp-print])
2799AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2800OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2801])
2802AT_CLEANUP
2803
2e1ae200
JR
2804AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2805AT_KEYWORDS([ofp-print])
2806AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2807OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2808])
2809AT_CLEANUP
2810
e8f9a7bb
VG
2811AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2812AT_KEYWORDS([ofp-print])
2ffc8767 2813AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2814OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2815])
2816AT_CLEANUP
2817
2818AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2819AT_KEYWORDS([ofp-print])
2820AT_CHECK([ovs-ofctl ofp-print "\
282103 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2822OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2823])
2824AT_CLEANUP
2825
e016fb63
BP
2826AT_SETUP([OFPST_QUEUE_DESC request - OF1.4])
2827AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REQUEST])
2828AT_CHECK([ovs-ofctl ofp-print "\
282905 12 00 18 00 00 00 01 00 0f 00 00 00 00 00 00 \
283000 00 00 01 00 00 00 02"], [0],
2831 [OFPST_QUEUE_DESC request (OF1.4) (xid=0x1): port=1 queue=2
2832])
2833AT_CLEANUP
2834
e8f9a7bb
VG
2835AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2836AT_KEYWORDS([ofp-print])
2ffc8767 2837AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
283800 01 00 00 00 00 00 00 \
283900 00 55 55 00 28 00 00 \
284000 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
284100 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
284200 00 44 44 00 08 00 00 \
2843"], [0], [dnl
2844OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
e8f9a7bb 2845queue 17476:
a28239c0 2846queue 21845: min_rate:50.0% max_rate:75.0%
e8f9a7bb
VG
2847])
2848AT_CLEANUP
2849
d2e5fa1f
BP
2850AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.1])
2851AT_KEYWORDS([ofp-print])
2852AT_CHECK([ovs-ofctl ofp-print "02 17 00 40 00 00 00 01 \
285300 00 00 01 00 00 00 00 \
285400 00 55 55 00 28 00 00 \
285500 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
285600 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
285700 00 44 44 00 08 00 00 \
2858"], [0], [dnl
2859OFPT_QUEUE_GET_CONFIG_REPLY (OF1.1) (xid=0x1): port=1
d2e5fa1f 2860queue 17476:
a28239c0 2861queue 21845: min_rate:50.0% max_rate:75.0%
d2e5fa1f
BP
2862])
2863AT_CLEANUP
2864
e8f9a7bb
VG
2865AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2866AT_KEYWORDS([ofp-print])
2867AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
286800 00 00 01 00 00 00 00 \
286900 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
287000 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
287100 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
287200 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2873"], [0], [dnl
2874OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
e8f9a7bb 2875queue 17476:
a28239c0 2876queue 21845: min_rate:50.0% max_rate:75.0%
e8f9a7bb
VG
2877])
2878AT_CLEANUP
2e1ae200 2879
e016fb63
BP
2880AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.3])
2881AT_KEYWORDS([ofp-print])
2882AT_CHECK([ovs-ofctl ofp-print "04 17 00 50 00 00 00 01 \
288300 00 00 01 00 00 00 00 \
288400 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
288500 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
288600 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
288700 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2888"], [0], [dnl
2889OFPT_QUEUE_GET_CONFIG_REPLY (OF1.3) (xid=0x1): port=1
e016fb63 2890queue 17476:
a28239c0 2891queue 21845: min_rate:50.0% max_rate:75.0%
e016fb63
BP
2892])
2893AT_CLEANUP
2894
2895# OF1.4 renamed OFPT_QUEUE_GET_CONFIG_REPLY to OFPST_QUEUE_DESC.
2896AT_SETUP([OFPST_QUEUE_DESC reply - OF1.4])
2897AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REPLY])
2898AT_CHECK([ovs-ofctl ofp-print "\
289905 13 00 48 00 00 00 01 00 0f 00 00 00 00 00 00 \
2900
290100 00 00 01 00 00 55 55 00 20 00 00 00 00 00 00 \
290200 01 00 08 01 f4 00 00 \
290300 02 00 08 02 ee 00 00 \
2904
290500 00 00 02 00 00 44 44 00 18 00 00 00 00 00 00 \
290600 02 00 08 00 64 00 00 \
2907"], [0], [dnl
2908OFPST_QUEUE_DESC reply (OF1.4) (xid=0x1): port=1
2909queue 21845: min_rate:50.0% max_rate:75.0%
2910port=2
2911queue 17476: max_rate:10.0%
2912])
2913AT_CLEANUP
2914
2e1ae200
JR
2915AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2916AT_KEYWORDS([ofp-print])
904e5202
BP
2917dnl This message has bit 12 set for the PACKET_IN messages (master and slave).
2918dnl Those aren't supported bits so they get silently ignored on decoding.
2919dnl That seems reasonable because OF1.3 doesn't define any error codes for
2920dnl OFPT_SET_ASYNC.
2e1ae200
JR
2921AT_CHECK([ovs-ofctl ofp-print "\
292204 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
292300 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2924"], [0], [dnl
2925OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2926 master:
904e5202 2927 PACKET_IN: no_match invalid_ttl
2e1ae200
JR
2928 PORT_STATUS: add delete
2929 FLOW_REMOVED: (off)
904e5202
BP
2930 ROLE_STATUS: (off)
2931 TABLE_STATUS: (off)
2932 REQUESTFORWARD: (off)
2e1ae200
JR
2933
2934 slave:
904e5202 2935 PACKET_IN: no_match action invalid_ttl
2e1ae200
JR
2936 PORT_STATUS: add delete modify
2937 FLOW_REMOVED: idle hard
904e5202
BP
2938 ROLE_STATUS: (off)
2939 TABLE_STATUS: (off)
2940 REQUESTFORWARD: (off)
2e1ae200
JR
2941])
2942AT_CLEANUP
2943
6ea4776b
JR
2944AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2945AT_KEYWORDS([ofp-print])
2946AT_CHECK([ovs-ofctl ofp-print "\
294703 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
294800 00 00 00 00 00 00 03 \
2949"], [0], [dnl
2950OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2951])
2952AT_CLEANUP
2953
2954AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2955AT_KEYWORDS([ofp-print])
2956AT_CHECK([ovs-ofctl ofp-print "\
295703 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
295800 00 00 00 00 00 00 00 \
2959"], [0], [dnl
2960OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2961])
2962AT_CLEANUP
2963
fec00620
BP
2964AT_SETUP([NXT_ROLE_REQUEST])
2965AT_KEYWORDS([ofp-print])
2966AT_CHECK([ovs-ofctl ofp-print "\
296701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
296800 00 00 01 \
2969"], [0], [dnl
2970NXT_ROLE_REQUEST (xid=0x2): role=master
2971])
2972AT_CLEANUP
2973
6ea4776b
JR
2974AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2975AT_KEYWORDS([ofp-print])
2976AT_CHECK([ovs-ofctl ofp-print "\
297703 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 297812 34 56 78 ab cd ef 90 \
6ea4776b 2979"], [0], [dnl
147cc9d3 2980OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2981])
2982AT_CLEANUP
2983
fec00620
BP
2984AT_SETUP([NXT_ROLE_REPLY])
2985AT_KEYWORDS([ofp-print])
2986AT_CHECK([ovs-ofctl ofp-print "\
298701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
298800 00 00 02 \
2989"], [0], [dnl
2990NXT_ROLE_REPLY (xid=0x2): role=slave
2991])
2992AT_CLEANUP
2993
b0e07d50
BP
2994AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.3])
2995AT_KEYWORDS([ofp-print])
2996AT_CHECK([ovs-ofctl ofp-print "\
299704 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
299800 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2999"], [0], [dnl
3000ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=experimenter_data_changed
3001])
3002AT_CLEANUP
3003
3004AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.3])
3005AT_KEYWORDS([ofp-print])
3006AT_CHECK([ovs-ofctl ofp-print "\
300704 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
300800 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
3009"], [0], [dnl
3010ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=configuration_changed
3011])
3012AT_CLEANUP
3013
3014AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.3])
3015AT_KEYWORDS([ofp-print])
3016AT_CHECK([ovs-ofctl ofp-print "\
301704 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \
301800 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
3019"], [0], [dnl
3020ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master generation_id=16 reason=configuration_changed
3021])
3022AT_CLEANUP
3023
00467f73
AC
3024AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
3025AT_KEYWORDS([ofp-print])
3026AT_CHECK([ovs-ofctl ofp-print "\
302705 1e 00 18 00 00 00 0a \
302800 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
3029"], [0], [dnl
9620f50c 3030OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
3031])
3032AT_CLEANUP
3033
3034AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
3035AT_KEYWORDS([ofp-print])
3036AT_CHECK([ovs-ofctl ofp-print "\
303705 1e 00 18 00 00 00 0a \
303800 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
3039"], [0], [dnl
9620f50c 3040OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
3041])
3042AT_CLEANUP
3043
3044AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
3045AT_KEYWORDS([ofp-print])
3046AT_CHECK([ovs-ofctl ofp-print "\
304705 1e 00 18 00 00 00 0a \
304800 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
3049"], [0], [dnl
9620f50c 3050OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
3051])
3052AT_CLEANUP
3053
3c35db62
NR
3054AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
3055AT_KEYWORDS([ofp-print])
3056AT_CHECK([ovs-ofctl ofp-print "\
305705 20 00 18 00 00 00 02 \
305805 0f 00 10 02 00 00 00 \
305900 00 00 00 00 00 00 01 \
3060"], [0], [dnl
3061OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
3062 ADD group_id=1,type=all
3063])
3064AT_CLEANUP
3065
3066AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
3067AT_KEYWORDS([ofp-print])
3068AT_CHECK([ovs-ofctl ofp-print "\
306905 20 00 18 00 00 00 02 \
307005 0f 00 10 02 00 00 00 \
307100 01 01 00 00 00 00 01 \
3072"], [0], [dnl
3073OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
3074 MOD group_id=1,type=select
3075])
3076AT_CLEANUP
3077
3078AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
3079AT_KEYWORDS([ofp-print])
3080AT_CHECK([ovs-ofctl ofp-print "\
308105 20 00 18 00 00 00 02 \
308205 1d 00 10 02 00 00 00 \
308300 00 00 00 00 00 00 01 \
3084"], [0], [dnl
3085OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod ADD meter=1 bands=
3086])
3087AT_CLEANUP
3088
3089AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
3090AT_KEYWORDS([ofp-print])
3091AT_CHECK([ovs-ofctl ofp-print "\
309205 20 00 18 00 00 00 02 \
309305 1d 00 10 02 00 00 00 \
309400 01 01 00 00 00 00 01 \
3095"], [0], [dnl
3096OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod MOD meter=1 flags:0x100 bands=
3097])
3098AT_CLEANUP
3099
98a9272b
ZW
3100AT_SETUP([NXT_REQUESTFORWARD - inner NXT_GROUP_MOD])
3101AT_KEYWORDS([ofp-print])
3102AT_CHECK([ovs-ofctl ofp-print "\
3103dnl OF version 1.0; type=extension:
310401 04 \
3105dnl size in bytes:
310600 b8 \
3107dnl xid:
310800 00 00 02 \
3109dnl Nicira vendor number:
311000 00 23 20 \
3111dnl subtype (message id number = 132 in this case)
311200 00 00 84 \
3113dnl inner msg copied and pasted from NXT_GROUP_MOD test above:
311401 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f 00 00 01 00 87 65 43 21 \
311500 60 00 00 ff ff ff ff 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
311600 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 00 20 00 08 00 00 00 01 \
311700 00 00 08 00 02 00 00 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02 \
311800 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 00 00 00 08 00 c8 00 00 \
311900 01 00 08 00 00 00 03 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
312068 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 \
3121"], [0], [dnl
3122NXT_REQUESTFORWARD (xid=0x2): reason=group_mod
3123 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
3124])
3125AT_CLEANUP
3126
3127AT_SETUP([NXT_REQUESTFORWARD - inner OFPT_GROUP_MOD - OF1.1])
3128AT_KEYWORDS([ofp-print])
3129AT_CHECK([ovs-ofctl ofp-print "\
3130dnl OF Version 1.1; type=extension:
313102 04 \
3132dnl size in bytes:
313300 80 \
3134dnl xid:
313500 00 00 02 \
3136dnl Nicira vendor number:
313700 00 23 20 \
3138dnl subtype (message id number = 132 in this case)
313900 00 00 84 \
3140dnl inner msg copied and pasted from OFPT_GROUP_MOD OF1.1 test above:
314102 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
314200 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
314300 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
314400 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
314500 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
314600 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
314700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3148"], [0], [dnl
3149NXT_REQUESTFORWARD (OF1.1) (xid=0x2): reason=group_mod
3150 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
3151])
3152AT_CLEANUP
3153
3154AT_SETUP([ONFT_REQUESTFORWARD - inner OFPT_METER_MOD - OF1.3])
3155AT_KEYWORDS([ofp-print])
3156AT_CHECK([ovs-ofctl ofp-print "\
3157dnl OF Version 1.3; type=extension:
315804 04 \
3159dnl size in bytes:
316000 30 \
3161dnl xid:
316200 00 00 02 \
3163dnl ONF vendor number:
31644F 4E 46 00 \
3165dnl subtype (message id number = 2350 in this case)
316600 00 09 2e \
3167dnl inner msg copied and pasted from the valid OFPT_METER_MOD OF1.3 test:
316804 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
316900 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
3170"], [0], [dnl
3171ONFT_REQUESTFORWARD (OF1.3) (xid=0x2): reason=meter_mod ADD meter=5 kbps burst stats bands=
3172type=drop rate=1024 burst_size=128
3173])
3174AT_CLEANUP
3175
54834960
EJ
3176AT_SETUP([NXT_SET_PACKET_IN])
3177AT_KEYWORDS([ofp-print])
3178AT_CHECK([ovs-ofctl ofp-print "\
317901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
318000 00 00 01 \
3181"], [0], [dnl
6409e008 3182NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxt_packet_in
54834960
EJ
3183])
3184AT_CLEANUP
3185
3186AT_SETUP([NXT_PACKET_IN])
3187AT_KEYWORDS([ofp-print])
3188AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 318901 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 3190ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 319100 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
319220 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
319300 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
319400 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 319500 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 3196ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
319780 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
319800 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 319900 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
320031 6d 00 00 00 00 00 00 00 00 \
3201"], [0], [dnl
50dcbd8e 3202NXT_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 3203tcp,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
3204])
3205AT_CLEANUP
3206
b4ccee75
SH
3207AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
3208AT_KEYWORDS([ofp-print])
3209AT_CHECK([ovs-ofctl ofp-print "\
321001 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
3211ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
321200 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
321320 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
321400 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
321500 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
321600 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
3217ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
321880 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
321900 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 322000 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
322131 6d 00 00 00 00 00 00 00 00 \
3222" 3], [0], [dnl
50dcbd8e 3223NXT_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 3224tcp,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
322500000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
322600000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
322700000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 322800000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
3229])
3230AT_CLEANUP
3231
6409e008
BP
3232AT_SETUP([NX_PACKET_IN2])
3233AT_KEYWORDS([ofp-print])
3234AT_CHECK([ovs-ofctl ofp-print "
bdcad671 323501 04 0098 00000000 00002320 0000001e
6409e008
BP
32360000 0034
3237 82 82 82 82 82 82 80 81 81 81 81 81 81 00 00 50
3238 08 00 45 00 00 28 00 00 00 00 00 06 32 05 53 53
3239 53 53 54 54 54 54 00 55 00 56 00 00 00 00 00 00 00000000
32400001 0008 00000040
32410002 0008 00000114
32420003 0005 07 000000
32430004 0010 00000000 fedcba9876543210
32440005 0005 01 000000
bdcad671
BP
32450006 0010 80000408 5a5a5a5a5a5a5a5a
32460007 0009 0102030405 00000000000000
3247"
6409e008
BP
3248], [0], [dnl
3249NXT_PACKET_IN2 (xid=0x0): table_id=7 cookie=0xfedcba9876543210 total_len=64 metadata=0x5a5a5a5a5a5a5a5a (via action) data_len=48 buffer=0x00000114
bdcad671 3250 userdata=01.02.03.04.05
f0fb825a 3251ip,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
3252])
3253AT_CLEANUP
3254
80d5aefd
BP
3255AT_SETUP([NXT_SET_ASYNC_CONFIG])
3256AT_KEYWORDS([ofp-print])
904e5202
BP
3257dnl This message has bit 12 set for the PACKET_IN messages (master and slave).
3258dnl Those aren't supported bits so they get silently ignored on decoding.
80d5aefd
BP
3259AT_CHECK([ovs-ofctl ofp-print "\
326001 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
326100 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
326200 00 00 00 00 00 00 03 \
3263"], [0], [dnl
3264NXT_SET_ASYNC_CONFIG (xid=0x0):
3265 master:
904e5202 3266 PACKET_IN: no_match invalid_ttl
80d5aefd
BP
3267 PORT_STATUS: add delete
3268 FLOW_REMOVED: (off)
904e5202
BP
3269 ROLE_STATUS: (off)
3270 TABLE_STATUS: (off)
3271 REQUESTFORWARD: (off)
80d5aefd
BP
3272
3273 slave:
904e5202 3274 PACKET_IN: no_match action invalid_ttl
80d5aefd
BP
3275 PORT_STATUS: add delete modify
3276 FLOW_REMOVED: idle hard
904e5202
BP
3277 ROLE_STATUS: (off)
3278 TABLE_STATUS: (off)
3279 REQUESTFORWARD: (off)
80d5aefd
BP
3280])
3281AT_CLEANUP
3282
98090482
NR
3283AT_SETUP([OFPT_SET_ASYNC_CONFIG])
3284AT_KEYWORDS([ofp-print])
3285AT_CHECK([ovs-ofctl ofp-print "\
328605 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
328700 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
328800 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
328900 05 00 08 00 00 00 05 \
3290"], [0], [dnl
3291OFPT_SET_ASYNC (OF1.4) (xid=0x2):
3292 master:
3293 PACKET_IN: action
3294 PORT_STATUS: add modify
3295 FLOW_REMOVED: idle delete
3296 ROLE_STATUS: (off)
3297 TABLE_STATUS: (off)
3298 REQUESTFORWARD: (off)
3299
3300 slave:
3301 PACKET_IN: no_match invalid_ttl
3302 PORT_STATUS: delete
3303 FLOW_REMOVED: delete group_delete meter_delete
3304 ROLE_STATUS: (off)
3305 TABLE_STATUS: (off)
3306 REQUESTFORWARD: (off)
3307])
3308AT_CLEANUP
3309
d18cc1ee
AA
3310AT_SETUP([OFPT_SET_ASYNC_CONFIG - invalid mask - OF1.4])
3311AT_KEYWORDS([ofp-print])
3312AT_CHECK([ovs-ofctl ofp-print "\
331305 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 40 \
331400 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
331500 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
331600 05 00 08 00 00 00 05 \
3317"], [0], [dnl
3318OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_INVALID***
2d071a32
BP
331900000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 40 |...8...........@|
332000000010 00 01 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
332100000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
332200000030 00 05 00 08 00 00 00 05- |........ |
8fd0bb60
BP
3323], [stderr])
3324AT_CHECK([sed 's/.*|//' stderr], [0],
3325 [bad value 0x40 for PACKET_IN (allowed mask 0x3f)
d18cc1ee
AA
3326])
3327AT_CLEANUP
3328
3329AT_SETUP([OFPT_SET_ASYNC_CONFIG - unsupported configuration - OF1.4])
3330AT_KEYWORDS([ofp-print])
3331AT_CHECK([ovs-ofctl ofp-print "\
333205 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
333300 11 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
333400 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
333500 05 00 08 00 00 00 05\
3336"], [0], [dnl
3337OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_UNSUPPORTED***
2d071a32
BP
333800000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 05 |...8............|
333900000010 00 11 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................|
334000000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................|
334100000030 00 05 00 08 00 00 00 05- |........ |
8fd0bb60
BP
3342], [stderr])
3343AT_CHECK([sed 's/.*|//' stderr], [0],
3344 [unknown async config property type 17
d18cc1ee
AA
3345])
3346AT_CLEANUP
3347
a7349929
BP
3348AT_SETUP([NXT_SET_CONTROLLER_ID])
3349AT_KEYWORDS([ofp-print])
3350AT_CHECK([ovs-ofctl ofp-print "\
335101 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
335200 00 00 00 00 00 00 7b \
3353"], [0], [dnl
3354NXT_SET_CONTROLLER_ID (xid=0x3): id=123
3355])
3356AT_CLEANUP
3357
2b07c8b1
BP
3358AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
3359AT_KEYWORDS([ofp-print])
3360AT_CHECK([ovs-ofctl ofp-print "\
336101 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
336201 02 30 40 \
3363"], [0], [dnl
3364NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
3365])
3366AT_CLEANUP
3367
3368AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
3369AT_KEYWORDS([ofp-print])
3370AT_CHECK([ovs-ofctl ofp-print "\
337101 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
3372"], [0], [dnl
3373NXT_FLOW_MONITOR_PAUSED (xid=0x3):
3374])
3375AT_CLEANUP
3376
3377AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
3378AT_KEYWORDS([ofp-print])
3379AT_CHECK([ovs-ofctl ofp-print "\
338001 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
3381"], [0], [dnl
3382NXT_FLOW_MONITOR_RESUMED (xid=0x3):
3383])
3384AT_CLEANUP
3385
fec00620
BP
3386AT_SETUP([NXT_SET_FLOW_FORMAT])
3387AT_KEYWORDS([ofp-print])
3388AT_CHECK([ovs-ofctl ofp-print "\
338901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
339000 00 00 02 \
3391"], [0], [dnl
3392NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
3393])
3394AT_CLEANUP
3395
3396# The flow is formatted with cls_rule_format() for the low-verbosity case.
3397AT_SETUP([NXT_FLOW_MOD, low verbosity])
3398AT_KEYWORDS([ofp-print])
3399AT_CHECK([ovs-ofctl ofp-print "\
340001 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
340100 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 3402ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
340300 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
340400 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
340500 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3406" 2], [0], [dnl
de0f16bc 3407NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
3408])
3409AT_CLEANUP
3410
eec25dc1
BP
3411# The flow is formatted with ofp10_match_to_string() for the
3412# low-verbosity case.
fec00620
BP
3413AT_SETUP([NXT_FLOW_MOD, high verbosity])
3414AT_KEYWORDS([ofp-print])
3415AT_CHECK([ovs-ofctl ofp-print "\
341601 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
341700 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 3418ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
341900 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
342000 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
342100 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
3422" 3], [0], [dnl
de0f16bc 3423NXT_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
3424])
3425AT_CLEANUP
3426
7b809df9
BP
3427AT_SETUP([NXT_GROUP_MOD add - OF1.0])
3428AT_KEYWORDS([ofp-print])
3429AT_CHECK([ovs-ofctl ofp-print "\
343001 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f \
343100 00 01 00 87 65 43 21 \
343200 60 00 00 ff ff ff ff \
3433\
343400 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \
343500 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
3436\
343700 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \
343800 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02
3439\
344000 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \
344100 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3442ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
344368 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
344400 00 00 00 00 00 00 07 \
3445"], [0], [dnl
3446NXT_GROUP_MOD (xid=0x2):
3447 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
3448])
3449AT_CLEANUP
3450
76c41209 3451AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
3452AT_KEYWORDS([ofp-print])
3453AT_CHECK([ovs-ofctl ofp-print "\
345402 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
345500 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
345600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
345700 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
345800 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
345900 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
346000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3461"], [0], [dnl
3462OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
3463 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
3464])
3465AT_CLEANUP
3466
76c41209
SH
3467AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
3468AT_KEYWORDS([ofp-print])
3469AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 347006 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \
76c41209
SH
347100 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
347200 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
347300 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
347400 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
347500 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
347600 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
347700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
347800 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
0c4b9393
SH
3479ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
348068 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
348100 00 00 00 00 00 00 07 \
76c41209
SH
3482"], [0], [dnl
3483OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
0c4b9393 3484 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
3485])
3486AT_CLEANUP
3487
3488AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
3489AT_KEYWORDS([ofp-print])
3490AT_CHECK([ovs-ofctl ofp-print "\
349106 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
349200 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
349300 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
349400 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
349500 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
349600 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
349700 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
349800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
349900 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3500"], [0], [dnl
3501OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
3502 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
3503])
3504AT_CLEANUP
3505
fec00620
BP
3506AT_SETUP([NXT_FLOW_REMOVED])
3507AT_KEYWORDS([ofp-print])
3508AT_CHECK([ovs-ofctl ofp-print "\
350901 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 351000 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
351101 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
351200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
351302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
351400 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
35151e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
3516c0 a8 00 02 00 00 00 00 \
3517"], [0], [dnl
745bfd5e 3518NXT_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
3519])
3520AT_CLEANUP
3521
a1a7d333
BP
3522AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
3523AT_KEYWORDS([ofp-print])
3524AT_CHECK([ovs-ofctl ofp-print "\
352501 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
352601 00 00 00 00 00 00 00 \
3527"], [0], [dnl
3528NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
3529])
3530AT_CLEANUP
3531
77ab5fd2
BP
3532AT_SETUP([NXT_RESUME])
3533AT_KEYWORDS([ofp-print])
3534AT_CHECK([ovs-ofctl ofp-print "\
353501 04 0038 01020304 00002320 0000001c \
35360000 0012 ffffffffffff 102030405060 1234 000000000000 \
35370006 000a 00000002 fffd 000000000000
3538"], [0], [dnl
3539NXT_RESUME (xid=0x1020304): total_len=14 in_port=CONTROLLER (via no_match) data_len=14 (unbuffered)
3540vlan_tci=0x0000,dl_src=10:20:30:40:50:60,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x1234
3541])
3542AT_CLEANUP
3543
fec00620
BP
3544AT_SETUP([NXST_FLOW request])
3545AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3546AT_CHECK([ovs-ofctl ofp-print "\
354701 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
354800 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3549"], [0], [dnl
f92ef1a8 3550NXST_FLOW request (xid=0x4):
fec00620
BP
3551])
3552AT_CLEANUP
3553
3554AT_SETUP([NXST_FLOW reply])
3555AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3556AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 355701 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
355800 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
355902 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
356000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
356100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
356202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
356300 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35640a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3565a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
356614 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
356700 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 356800 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
356900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
357000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
357100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
357200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3573a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
357400 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
357500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 357633 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
357700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
357800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
357902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
358000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35810a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3582a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
358314 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
358400 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 358500 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
358600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
358700 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
358800 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
358900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3590a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
359100 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
359200 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 359334 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
359400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
359500 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
359602 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
359700 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
35980a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3599a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
360014 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
360100 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
360200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
360300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
360400 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
360500 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
360600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3607a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
360800 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
360900 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
361002 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
361100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
361200 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
361302 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
361400 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
36150a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3616a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
361714 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
361800 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
361900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
362000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
362100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
362200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
362300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3624a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
362500 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
362600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
362727 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
362800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
362900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
363002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
363100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
36320a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3633a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
363414 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
363500 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
363600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
363700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
363800 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
363900 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
364000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3641a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
364200 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
364300 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
36440a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
364500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
364600 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
364702 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
364800 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
36490a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3650a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
365114 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
365200 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
365300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
365400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
365500 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
365600 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
365700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3658a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
365900 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
366000 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
366104 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
366200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
366300 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
366402 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
366500 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
36660a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3667a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
366814 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
366900 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
367000 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
367100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
367200 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
367300 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
367400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3675a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
367600 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
367700 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
36782e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
367900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
368000 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
368100 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3682ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
368300 00 00 00 00 00 00 05 \
05b8f1c2
BP
368400 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
368500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
368600 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3687"], [0],
3688[[NXST_FLOW reply (xid=0x4):
b9718b7b 3689 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 3690 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
3691 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
3692 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 3693 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 3694 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 3695 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
3696 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
3697 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
3698 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
3699 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
3700 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
3701 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
3702 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
3703 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 3704 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3705]])
3706AT_CLEANUP
3707
3708AT_SETUP([NXST_AGGREGATE request])
3709AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3710AT_CHECK([ovs-ofctl ofp-print "\
371101 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
371200 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3713"], [0], [dnl
f92ef1a8 3714NXST_AGGREGATE request (xid=0x4):
fec00620
BP
3715])
3716AT_CLEANUP
3717
3718AT_SETUP([NXST_AGGREGATE reply])
3719AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3720AT_CHECK([ovs-ofctl ofp-print "\
372101 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
372200 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
372300 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3724"], [0], [dnl
3725NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3726])
3727AT_CLEANUP
2b07c8b1
BP
3728
3729AT_SETUP([NXST_FLOW_MONITOR request])
3730AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3731AT_CHECK([ovs-ofctl ofp-print "\
373201 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
373300 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
373400 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3735"], [0], [dnl
3736NXST_FLOW_MONITOR request (xid=0x4):
3737 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3738 id=8192 flags=delete table=2 in_port=1
3739])
3740AT_CLEANUP
3741
3742AT_SETUP([NXST_FLOW_MONITOR reply])
3743AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3744AT_CHECK([ovs-ofctl ofp-print "\
374501 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 374600 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
374700 00 00 02 00 01 00 00 \
374800 08 00 03 00 01 86 a0 \
3749"], [0], [dnl
3750NXST_FLOW_MONITOR reply (xid=0x4):
3751 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3752 event=ABBREV xid=0x186a0
3753])
3754AT_CLEANUP
777af88d
AC
3755
3756
68030e16
JR
3757AT_SETUP([OFPT_BUNDLE_CONTROL - atomic OPEN_REQUEST])
3758AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3759AT_CHECK([ovs-ofctl ofp-print "\
376005 21 00 10 00 00 00 00 \
376100 00 00 01 00 00 00 01 \
3762"], [0], [dnl
3763OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3764 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3765])
3766AT_CLEANUP
3767
68030e16
JR
3768AT_SETUP([OFPT_BUNDLE_CONTROL - ordered OPEN_REQUEST])
3769AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3770AT_CHECK([ovs-ofctl ofp-print "\
377105 21 00 10 00 00 00 00 \
377200 00 00 01 00 00 00 02 \
3773"], [0], [dnl
3774OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3775 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3776])
3777AT_CLEANUP
3778
68030e16
JR
3779AT_SETUP([OFPT_BUNDLE_CONTROL - atomic ordered OPEN_REQUEST])
3780AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3781AT_CHECK([ovs-ofctl ofp-print "\
378205 21 00 10 00 00 00 00 \
378300 00 00 01 00 00 00 03 \
3784"], [0], [dnl
3785OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3786 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3787])
3788AT_CLEANUP
3789
3790AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
68030e16 3791AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3792AT_CHECK([ovs-ofctl ofp-print "\
379305 21 00 10 00 00 00 00 \
379400 00 00 01 00 01 00 01 \
3795"], [0], [dnl
3796OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3797 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3798])
3799AT_CLEANUP
3800
3801AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
68030e16 3802AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3803AT_CHECK([ovs-ofctl ofp-print "\
380405 21 00 10 00 00 00 00 \
380500 00 00 01 00 02 00 01 \
3806"], [0], [dnl
3807OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3808 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3809])
3810AT_CLEANUP
3811
3812AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
68030e16 3813AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3814AT_CHECK([ovs-ofctl ofp-print "\
381505 21 00 10 00 00 00 00 \
381600 00 00 01 00 03 00 01 \
3817"], [0], [dnl
3818OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3819 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3820])
3821AT_CLEANUP
3822
3823AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
68030e16 3824AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3825AT_CHECK([ovs-ofctl ofp-print "\
382605 21 00 10 00 00 00 00 \
382700 00 00 01 00 04 00 01 \
3828"], [0], [dnl
3829OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3830 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3831])
3832AT_CLEANUP
3833
3834AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
68030e16 3835AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3836AT_CHECK([ovs-ofctl ofp-print "\
383705 21 00 10 00 00 00 00 \
383800 00 00 01 00 05 00 01 \
3839"], [0], [dnl
3840OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3841 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3842])
3843AT_CLEANUP
3844
3845AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
68030e16 3846AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3847AT_CHECK([ovs-ofctl ofp-print "\
384805 21 00 10 00 00 00 00 \
384900 00 00 01 00 06 00 01 \
3850"], [0], [dnl
3851OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3852 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3853])
3854AT_CLEANUP
3855
3856AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
68030e16 3857AT_KEYWORDS([ofp-print bundle])
777af88d
AC
3858AT_CHECK([ovs-ofctl ofp-print "\
385905 21 00 10 00 00 00 00 \
386000 00 00 01 00 07 00 01 \
3861"], [0], [dnl
3862OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3863 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3864])
3865AT_CLEANUP
3866
be6f6393 3867AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
68030e16 3868AT_KEYWORDS([ofp-print bundle])
be6f6393
JR
3869AT_CHECK([ovs-ofctl ofp-print "\
387005 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 387105 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
be6f6393
JR
3872"], [0], [dnl
3873OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
2d071a32
BP
387400000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
387500000010 05 00 00 08 00 00 00 01-00 00 00 00 00 00 00 00 |................|
be6f6393
JR
3876])
3877AT_CLEANUP
3878
c25ce22d 3879AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
68030e16 3880AT_KEYWORDS([ofp-print bundle])
44648b0f 3881AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
c25ce22d 388205 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 388305 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
c25ce22d
JR
3884"], [0], [dnl
3885OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
2d071a32
BP
388600000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............|
388700000010 05 00 00 10 00 00 00 00-00 00 00 00 00 00 00 00 |................|
44648b0f 3888], [dnl
0d71302e 3889ofp_bundle|WARN|OFPT_HELLO message not allowed inside OFPT14_BUNDLE_ADD_MESSAGE
c25ce22d
JR
3890])
3891AT_CLEANUP
3892
3893AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
68030e16 3894AT_KEYWORDS([ofp-print bundle])
c25ce22d
JR
3895AT_CHECK([ovs-ofctl ofp-print "\
389605 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
46be7132 389705 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
c25ce22d
JR
389800 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3899ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
390000 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
390150 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
390280 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
390300 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
390400 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
390500 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3906"], [0], [dnl
3907OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3908 bundle_id=0x1 flags=atomic
46be7132 3909OFPT_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
3910])
3911AT_CLEANUP
3912
3913AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
68030e16 3914AT_KEYWORDS([ofp-print bundle])
c25ce22d
JR
3915AT_CHECK([ovs-ofctl ofp-print "\
391605 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
391705 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
391850 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
391900 00 00 08 00 00 00 01
777af88d 3920"], [0], [dnl
c25ce22d 3921OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
777af88d 3922 bundle_id=0x1 flags=atomic
3e461c2c 3923OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01
c25ce22d
JR
3924 config: PORT_DOWN
3925 mask: PORT_DOWN
3926 advertise: 10MB-HD
777af88d
AC
3927])
3928AT_CLEANUP
fb8f22c1 3929
68030e16
JR
3930AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - GROUP_MOD])
3931AT_KEYWORDS([ofp-print bundle])
3932AT_CHECK([ovs-ofctl ofp-print "\
393306 22 00 c8 00 00 00 03 00 00 00 01 00 00 00 01 \
393406 0f 00 b8 00 00 00 03 00 00 01 00 87 65 43 21 \
393500 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
393600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
393700 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
393800 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
393900 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
394000 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
394100 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
394200 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
3943ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
394468 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
394500 00 00 00 00 00 00 07 \
3946"], [0], [dnl
3947OFPT_BUNDLE_ADD_MESSAGE (OF1.5) (xid=0x3):
3948 bundle_id=0x1 flags=atomic
3949OFPT_GROUP_MOD (OF1.5) (xid=0x3):
3950 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
3951])
3952AT_CLEANUP
3953
6dd3c787
JR
3954AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PACKET_OUT])
3955AT_KEYWORDS([ofp-print bundle packet-out])
3956AT_CHECK([ovs-ofctl ofp-print "\
395705 22 00 74 00 00 00 03 00 00 00 01 00 00 00 01 \
395805 0d 00 64 00 00 00 03 ff ff ff ff ff ff ff fe \
395900 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
396005 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
396100 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
3962b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
396300 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
396400 00 00 00 \
3965"], [0], [dnl
3966OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
3967 bundle_id=0x1 flags=atomic
3968OFPT_PACKET_OUT (OF1.4) (xid=0x3): in_port=LOCAL actions=FLOOD data_len=60
3969tcp,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
3970])
3971AT_CLEANUP
3972
fb8f22c1
BY
3973AT_SETUP([NXST_IPFIX_BRIDGE - request])
3974AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3975AT_CHECK([ovs-ofctl ofp-print "\
397601 10 00 18 00 00 00 02 \
3977ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00 \
3978"], [0], [dnl
3979NXST_IPFIX_BRIDGE request (xid=0x2):
3980])
3981AT_CLEANUP
3982
3983AT_SETUP([NXST_IPFIX_BRIDGE - reply])
3984AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3985AT_CHECK([ovs-ofctl ofp-print "\
398601 11 00 70 00 00 00 02 \
3987ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00\
398800 00 00 00 00 00 00 01 \
398900 00 00 00 00 00 00 10 \
399000 00 00 00 00 00 00 78 \
399100 00 00 00 00 00 00 f0 \
399200 00 00 00 00 00 00 00 \
399300 00 00 00 00 00 00 a0 \
399400 00 00 00 00 00 00 02 \
399500 00 00 00 00 00 00 03 \
399600 00 00 00 00 00 00 04 \
399700 00 00 00 00 00 00 05 \
399800 00 00 00 00 00 00 00 \
3999"], [0], [dnl
4000NXST_IPFIX_BRIDGE reply (xid=0x2):
4001 bridge ipfix: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
4002 pkts errs=160, ipv4 errs=2, ipv6 errs=3, tx errs=5
4003])
4004AT_CLEANUP
4005
4006AT_SETUP([NXST_IPFIX_FLOW - request])
4007AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
4008AT_CHECK([ovs-ofctl ofp-print "\
400901 10 00 18 00 00 00 02 \
4010ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00 \
4011"], [0], [dnl
4012NXST_IPFIX_FLOW request (xid=0x2):
4013])
4014AT_CLEANUP
4015
4016AT_SETUP([NXST_IPFIX_FLOW - reply])
4017AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
4018AT_CHECK([ovs-ofctl ofp-print "\
401901 11 00 C8 00 00 00 02 \
4020ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00\
402100 00 00 00 00 00 00 01 \
402200 00 00 00 00 00 00 10 \
402300 00 00 00 00 00 00 78 \
402400 00 00 00 00 00 00 f0 \
402500 00 00 00 00 00 00 00 \
402600 00 00 00 00 00 00 a0 \
402700 00 00 10 00 00 00 02 \
402800 00 00 00 00 00 00 03 \
402900 00 00 00 00 00 00 04 \
403000 00 00 00 00 00 00 05 \
403100 00 00 01 00 00 00 00 \
403200 00 00 00 00 00 00 01 \
403300 00 00 00 00 00 00 10 \
403400 00 00 00 00 00 00 78 \
403500 00 00 00 00 00 00 f0 \
403600 00 00 00 00 00 00 00 \
403700 00 00 00 00 00 00 a0 \
403800 00 00 10 00 00 00 02 \
403900 00 00 00 00 00 00 03 \
404000 00 00 00 00 00 00 04 \
404100 00 00 00 00 00 00 05 \
404200 00 00 02 00 00 00 00 \
4043"], [0], [dnl
4044NXST_IPFIX_FLOW reply (xid=0x2): 2 ids
4045 id 1: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
4046 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
4047 id 2: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4
4048 pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5
4049])
4050AT_CLEANUP
2a7c4805
JP
4051
4052AT_SETUP([NXT_CT_FLUSH_ZONE])
4053AT_KEYWORDS([ofp-print])
4054AT_CHECK([ovs-ofctl ofp-print "\
405501 04 00 18 00 00 00 03 00 00 23 20 00 00 00 1d \
405600 00 00 00 00 00 00 0d \
4057"], [0], [dnl
4058NXT_CT_FLUSH_ZONE (xid=0x3): zone_id=13
4059])
4060AT_CLEANUP