]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
lib/odp-util: Skip ignored fields when parsing and formatting.
[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
406AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
407AT_KEYWORDS([ofp-print])
408AT_CHECK([ovs-ofctl ofp-print "\
40904 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
41000 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
411"], [0], [dnl
412OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
413n_tables:255, n_buffers:256, auxiliary_id:1
414capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
415])
416AT_CLEANUP
417
fec00620
BP
418AT_SETUP([OFPT_GET_CONFIG_REQUEST])
419AT_KEYWORDS([ofp-print])
420AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
421OFPT_GET_CONFIG_REQUEST (xid=0x1):
422])
423AT_CLEANUP
424
425AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
426AT_KEYWORDS([ofp-print])
427AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
428OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
429])
430AT_CLEANUP
431
432
433AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
434AT_KEYWORDS([ofp-print])
435AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
436OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
437])
438AT_CLEANUP
439
7cfb9651 440AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 441AT_KEYWORDS([ofp-print])
fec00620
BP
442AT_CHECK([ovs-ofctl ofp-print "\
44301 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
44400 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
44545 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
446c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 44750 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 448"], [0], [dnl
f0fd1a17 449OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
ea2735d3 450tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
fec00620
BP
451])
452AT_CLEANUP
453
210ba964 454AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data])
b4ccee75
SH
455AT_KEYWORDS([ofp-print])
456AT_CHECK([ovs-ofctl ofp-print "\
45701 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
45800 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
45945 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
460c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 46150 10 02 00 26 e8 00 00 00 00 00 00 00 00 \
b4ccee75
SH
462" 3], [0], [dnl
463OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
ea2735d3 464tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=ack tcp_csum:26e8
b4ccee75
SH
46500000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00
46600000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8
dc235f7f 46700000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 10
b4ccee75
SH
46800000030 02 00 26 e8 00 00 00 00-00 00 00 00
469])
470AT_CLEANUP
471
4d197ebb
BP
472AT_SETUP([OFPT_PACKET_IN - OF1.1])
473AT_KEYWORDS([ofp-print])
474AT_CHECK([ovs-ofctl ofp-print "\
47502 0a 00 54 00 00 00 00 00 00 01 11 00 00 00 03 \
47600 00 00 03 00 3c 00 00 \
47750 54 00 00 00 06 50 54 00 00 00 05 08 00 \
47845 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
479c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
48050 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
481"], [0], [dnl
482OFPT_PACKET_IN (OF1.1) (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
ea2735d3 483tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
4d197ebb
BP
484])
485AT_CLEANUP
486
7cfb9651
SH
487AT_SETUP([OFPT_PACKET_IN - OF1.2])
488AT_KEYWORDS([ofp-print])
489AT_CHECK([ovs-ofctl ofp-print "\
49003 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
49100 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
49200 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
eb19e5f0 49300 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \
7cfb9651
SH
49400 00 00 23 20 83 c1 5f 00 00 00 00 \
495"], [0], [dnl
496OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
eb19e5f0 497rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=1,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
7cfb9651
SH
498])
499AT_CLEANUP
500
b4ccee75
SH
501AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
502AT_KEYWORDS([ofp-print])
503AT_CHECK([ovs-ofctl ofp-print "\
50403 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
50500 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
50600 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
50700 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
50800 00 00 23 20 83 c1 5f 00 00 00 00 \
509" 3], [0], [dnl
510OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
511rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
51200000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
51300000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
51400000020 00 23 20 83 c1 5f 00 00-00 00
515])
516AT_CLEANUP
517
2e1ae200
JR
518AT_SETUP([OFPT_PACKET_IN - OF1.3])
519AT_KEYWORDS([ofp-print])
520AT_CHECK([ovs-ofctl ofp-print "\
52104 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
52201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
523ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
52400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
52500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
52600 00 00 00 \
527"], [0], [dnl
528OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
3f78c3cc 529rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
2e1ae200
JR
530])
531AT_CLEANUP
532
b4ccee75
SH
533AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
534AT_KEYWORDS([ofp-print])
535AT_CHECK([ovs-ofctl ofp-print "\
53604 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
53701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
538ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
53900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
54000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
54100 00 00 00 \
542" 3], [0], [dnl
543OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
544rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
54500000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
54600000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
54700000020 00 23 20 83 c1 5f 00 00-00 00
548])
549AT_CLEANUP
550
eefbf181 551AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
552AT_KEYWORDS([ofp-print])
553AT_CHECK([ovs-ofctl ofp-print "\
55401 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
55500 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
55600 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
55700 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
55830 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
55900 00 00 00 00 00 00 3c \
560"], [0], [dnl
b1634591 561OFPT_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
562])
563AT_CLEANUP
564
eefbf181
SH
565AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
566AT_KEYWORDS([ofp-print])
567AT_CHECK([ovs-ofctl ofp-print "\
56803 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
56980 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
57000 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
57100 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 572OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
573])
574AT_CLEANUP
575
2e1ae200
JR
576AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
577AT_KEYWORDS([ofp-print])
578AT_CHECK([ovs-ofctl ofp-print "\
57904 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
58080 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
58100 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
58200 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 583OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
2e1ae200
JR
584])
585AT_CLEANUP
586
9e1fd49b 587AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
588AT_KEYWORDS([ofp-print])
589AT_CHECK([ovs-ofctl ofp-print "\
59001 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
59100 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
59200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
59300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
594"], [0], [dnl
0ab14c8e
BP
595OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
596 config: PORT_DOWN
597 state: LINK_DOWN
598 current: 100MB-FD AUTO_NEG
599 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
600 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
601 speed: 100 Mbps now, 100 Mbps max
602])
603AT_CLEANUP
604
605AT_SETUP([OFPT_PORT_STATUS - OF1.1])
606AT_KEYWORDS([ofp-print])
607AT_CHECK([ovs-ofctl ofp-print "\
60802 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
60900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
61065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
61100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
61200 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
613"], [0], [dnl
614OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
615 config: 0
616 state: 0
617 current: 100MB-FD AUTO_NEG
618 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
619 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
620 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
621])
622AT_CLEANUP
623
8c3cc785
BP
624AT_SETUP([OFPT_PORT_STATUS - OF1.4])
625AT_KEYWORDS([ofp-print])
626AT_CHECK([ovs-ofctl ofp-print "\
62705 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
62800 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
62965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
63000 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
63100 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
63200 01 86 a0 00 01 86 a0 \
633"], [0], [dnl
634OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
635 config: 0
636 state: 0
637 current: 100MB-FD AUTO_NEG
638 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
639 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
640 speed: 100 Mbps now, 100 Mbps max
641])
642AT_CLEANUP
643
eb5ee596 644AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
645AT_KEYWORDS([ofp-print])
646AT_CHECK([ovs-ofctl ofp-print "\
64701 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
64800 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
64900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
650b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
65100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
65200 00 00 00 \
653"], [0], [dnl
c6a93eb7 654OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
655])
656AT_CLEANUP
657
4b2d9d11
SH
658AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
659AT_KEYWORDS([ofp-print])
660AT_CHECK([ovs-ofctl ofp-print "\
66101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
66200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
66300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
664b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
66500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
66600 00 00 00 \
667"], [0], [dnl
668OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
ea2735d3 669tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
4b2d9d11
SH
670])
671AT_CLEANUP
672
b4ccee75
SH
673AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
674AT_KEYWORDS([ofp-print])
675AT_CHECK([ovs-ofctl ofp-print "\
67601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
67700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
67800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
679b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
68000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
68100 00 00 00 \
682" 3], [0], [dnl
683OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
ea2735d3 684tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
b4ccee75
SH
68500000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
68600000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
68700000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
68800000030 00 00 6d 75 00 00 00 00-00 00 00 00
689])
690AT_CLEANUP
691
eb5ee596
SH
692AT_SETUP([OFPT_PACKET_OUT - OF1.1])
693AT_KEYWORDS([ofp-print])
694AT_CHECK([ovs-ofctl ofp-print "\
69503 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
69600 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
69705 dc 00 00 00 00 00 00 \
698"], [0], [dnl
699OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
700])
701AT_CLEANUP
702
4b2d9d11
SH
703AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
704AT_KEYWORDS([ofp-print])
705AT_CHECK([ovs-ofctl ofp-print "\
70603 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
70700 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
70805 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
70900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
710b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
71100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
71200 00 00 00 \
713"], [0], [dnl
714OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
ea2735d3 715tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
4b2d9d11
SH
716])
717AT_CLEANUP
718
fec00620 719# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 720AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 721AT_KEYWORDS([ofp-print])
1c0b7503 722AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
72301 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
72400 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
72500 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
72600 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
72700 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
728" 2], [0], [dnl
666d0863 729OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 idle:5 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
730], [dnl
731ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
732ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
733ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
734])
735AT_CLEANUP
736
75fa58f8
BP
737# The flow is formatted with cls_rule_format() for the low-verbosity case.
738AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
739AT_KEYWORDS([ofp-print])
740AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
741020e 0090 01020304 \
742da1aa3e035d87158 ffffffffffffffff \
74302 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
7440000 \
745\
7460000 0058 00000000 000003f7 \
747000000000000ffffffffffff 000000000000ffffffffffff \
7480000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
74900000000 00 000000 0000000000000000ffffffffffffffff \
750\
7510001 0008 03 000000 \
752" 2], [0], [dnl
753OFPT_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
754])
755AT_CLEANUP
756
1bf6eeb0
SH
757# The flow is formatted with cls_rule_format() for the low-verbosity case.
758AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
759AT_KEYWORDS([ofp-print])
760AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
76103 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 76200 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
763ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
76400 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
76550 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
76680 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
76700 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
76800 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
76900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
770" 2], [0], [dnl
0e197060 771OFPT_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
772], [dnl
773])
774AT_CLEANUP
775
eec25dc1
BP
776# The flow is formatted with ofp10_match_to_string() for the
777# high-verbosity case.
1bf6eeb0 778AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 779AT_KEYWORDS([ofp-print])
1c0b7503 780AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
78101 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
78200 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
78300 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
78400 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
78500 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
786" 3], [0], [dnl
de0f16bc 787OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
788], [dnl
789ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
790ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
791ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
792])
793AT_CLEANUP
794
1bf6eeb0
SH
795# The flow is formatted with cls_rule_format() for the low-verbosity case.
796AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
797AT_KEYWORDS([ofp-print])
798AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
79903 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 80000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
801ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
80200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
80350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
80480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
80500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
80600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
80700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
808" 2], [0], [dnl
0e197060 809OFPT_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
810], [dnl
811])
812AT_CLEANUP
813
2e1ae200
JR
814# The flow is formatted with cls_rule_format() for the low-verbosity case.
815AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
816AT_KEYWORDS([ofp-print])
817AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
81804 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 81900 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
2e1ae200
JR
820ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
82100 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
82250 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
82380 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
82400 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
82500 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
82600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
827" 2], [0], [dnl
0e197060 828OFPT_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
829], [dnl
830])
831AT_CLEANUP
832
d55b18c8
IY
833AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
834AT_KEYWORDS([ofp-print])
835AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
83603 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
83700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
838ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
83900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
84000 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
841c0 a8 03 5c 00 00 00 00 \
842" 2], [0], [dnl
843OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
844], [dnl
845])
846AT_CLEANUP
847
848AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
849AT_KEYWORDS([ofp-print])
850AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
85103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
85200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
853ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
85400 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
85500 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
856c0 a8 4a 7a 00 00 00 00 \
857" 2], [0], [dnl
858OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
859], [dnl
860])
861AT_CLEANUP
862
0d56eaf2
JS
863AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
864AT_KEYWORDS([ofp-print])
865AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
86603 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
86700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
868ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
86900 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
87000 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
8710d 06 00 00 00 00 00 00 \
872" 2], [0], [dnl
873OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
874], [dnl
875])
876AT_CLEANUP
877
878AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
879AT_KEYWORDS([ofp-print])
880AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
88103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
88200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
883ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
88400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
88500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
88611 5d 00 00 00 00 00 00 \
887" 2], [0], [dnl
888OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
889], [dnl
890])
891AT_CLEANUP
892
b2a27ddc
BP
893dnl This triggered a buggy "instructions out of order" message earlier.
894AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
895AT_KEYWORDS([ofp-print])
896AT_CHECK([ovs-ofctl ofp-print "\
89704 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
89800 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
899ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
90000 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
901OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
902])
903AT_CLEANUP
904
d55b18c8
IY
905AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
906AT_KEYWORDS([ofp-print])
907AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
90803 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
90900 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
91000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91200 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
91300 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
914c0 a8 03 5c 00 00 00 00 \
915" 2], [0], [dnl
916OFPST_FLOW reply (OF1.2) (xid=0x52334504):
917 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
918], [dnl
919])
920AT_CLEANUP
921
922AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
923AT_KEYWORDS([ofp-print])
924AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
92503 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
92600 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
92700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
93000 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
931c0 a8 4a 7a 00 00 00 00 \
932" 2], [0], [dnl
933OFPST_FLOW reply (OF1.2) (xid=0x52334509):
934 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
935], [dnl
936])
937AT_CLEANUP
938
0d56eaf2
JS
939AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
940AT_KEYWORDS([ofp-print])
941AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
94203 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
94300 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
94400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94600 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
94700 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
9480d 06 00 00 00 00 00 00 \
949" 2], [0], [dnl
950OFPST_FLOW reply (OF1.2) (xid=0x52334504):
951 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
952], [dnl
953])
954AT_CLEANUP
955
956AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
957AT_KEYWORDS([ofp-print])
958AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
95903 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
96000 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
96100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96300 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
96400 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
96511 5d 00 00 00 00 00 00 \
966" 2], [0], [dnl
967OFPST_FLOW reply (OF1.2) (xid=0x52334509):
968 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
969], [dnl
970])
971AT_CLEANUP
972
9e1fd49b 973AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
974AT_KEYWORDS([ofp-print])
975AT_CHECK([ovs-ofctl ofp-print "\
97601 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
97700 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
978" 3], [0], [dnl
9e1fd49b
BP
979OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
980 config: PORT_DOWN
981 mask: PORT_DOWN
982 advertise: UNCHANGED
983])
984AT_CLEANUP
985
986AT_SETUP([OFPT_PORT_MOD - OF1.1])
987AT_KEYWORDS([ofp-print])
988AT_CHECK([ovs-ofctl ofp-print "\
98902 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
99050 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
99100 00 00 00 00 00 00 00 \
992" 3], [0], [dnl
993OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
994 config: PORT_DOWN
995 mask: PORT_DOWN
fec00620
BP
996 advertise: UNCHANGED
997])
998AT_CLEANUP
999
bb2bc3c1
SH
1000AT_SETUP([OFPT_PORT_MOD - OF1.2])
1001AT_KEYWORDS([ofp-print])
1002AT_CHECK([ovs-ofctl ofp-print "\
100303 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
100450 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
100500 00 00 00 00 00 00 00 \
1006" 3], [0], [dnl
1007OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1008 config: PORT_DOWN
1009 mask: PORT_DOWN
1010 advertise: UNCHANGED
1011])
1012AT_CLEANUP
1013
2e1ae200
JR
1014AT_SETUP([OFPT_PORT_MOD - OF1.3])
1015AT_KEYWORDS([ofp-print])
1016AT_CHECK([ovs-ofctl ofp-print "\
101704 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
101850 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
101900 00 00 00 00 00 00 00 \
1020" 3], [0], [dnl
1021OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1022 config: PORT_DOWN
1023 mask: PORT_DOWN
1024 advertise: UNCHANGED
1025])
1026AT_CLEANUP
1027
18cc69d9
BP
1028AT_SETUP([OFPT_PORT_MOD - OF1.4])
1029AT_KEYWORDS([ofp-print])
1030AT_CHECK([ovs-ofctl ofp-print "\
103105 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
103250 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
103300 00 00 08 00 00 00 01
1034" 3], [0], [dnl
1035OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1036 config: PORT_DOWN
1037 mask: PORT_DOWN
1038 advertise: 10MB-HD
1039])
1040AT_CLEANUP
1041
918f2b82
AZ
1042AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1043AT_KEYWORDS([ofp-print])
1044AT_CHECK([ovs-ofctl ofp-print "\
104502 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1046" 3], [0], [dnl
1047OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1048])
1049AT_CLEANUP
1050
1051AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1052AT_KEYWORDS([ofp-print])
1053AT_CHECK([ovs-ofctl ofp-print "\
105403 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1055" 3], [0], [dnl
1056OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1057])
1058AT_CLEANUP
1059
1060AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1061AT_KEYWORDS([ofp-print])
1062AT_CHECK([ovs-ofctl ofp-print "\
106304 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1064" 3], [0], [dnl
3c1bb396 1065OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2
918f2b82
AZ
1066])
1067AT_CLEANUP
1068
37ab26e8
BP
1069AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1070AT_KEYWORDS([ofp-print])
1071AT_CHECK([ovs-ofctl ofp-print "\
107205 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1073" 3], [0], [dnl
3c1bb396 1074OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2
37ab26e8
BP
1075])
1076AT_CLEANUP
1077
fec00620
BP
1078AT_SETUP([OFPST_DESC request])
1079AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1080AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1081OFPST_DESC request (xid=0x1):
1082])
1083AT_CLEANUP
1084
1085AT_SETUP([OFPST_DESC reply])
1086AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1087AT_CHECK([ovs-ofctl ofp-print "\
108801 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
108972 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
109000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
109100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109500 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110400 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
110520 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
110600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111200 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112000 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
112130 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
112200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112900 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113600 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
113700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113800 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
113900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115400 00 00 00 00 00 00 00 00 00 00 00 \
1155"], [0], [dnl
1156OFPST_DESC reply (xid=0x1):
e0edde6f 1157Manufacturer: Nicira, Inc.
fec00620
BP
1158Hardware: Open vSwitch
1159Software: 1.1.0pre2
1160Serial Num: None
1161DP Description: None
1162])
1163AT_CLEANUP
1164
0157ad3a 1165AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1166AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1167AT_CHECK([ovs-ofctl ofp-print "\
116801 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1169ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117100 00 00 00 ff 00 ff ff \
1172"], [0], [dnl
54ae6fa8 1173OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1174])
1175AT_CLEANUP
1176
0157ad3a
SH
1177AT_SETUP([OFPST_FLOW request - OF1.2])
1178AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1179AT_CHECK([ovs-ofctl ofp-print "\
118003 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1181ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
118200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118300 01 00 04 00 00 00 00 \
1184"], [0], [dnl
1185OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1186])
1187AT_CLEANUP
1188
2e1ae200
JR
1189AT_SETUP([OFPST_FLOW request - OF1.3])
1190AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1191AT_CHECK([ovs-ofctl ofp-print "\
119204 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1193ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
119400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119500 01 00 04 00 00 00 00 \
1196"], [0], [dnl
1197OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1198])
1199AT_CLEANUP
1200
6ec5f0c5 1201AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1202AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1203AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 120401 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
120500 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
120600 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1207c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1208ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
120900 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
121000 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
121100 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
121200 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1213c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1214ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
121500 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
121600 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
121700 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
121800 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1219c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1220ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
122100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
122200 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 122300 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
122400 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1225c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 122680 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
122700 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
122800 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
122900 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
123000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123200 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
123300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123400 00 00 00 00 00 00 00 \
fec00620
BP
1235"], [0], [dnl
1236OFPST_FLOW reply (xid=0x4):
b1634591
BP
1237 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
1238 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
1239 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 1240 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 1241 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1242])
1243AT_CLEANUP
1244
6ec5f0c5
SH
1245AT_SETUP([OFPST_FLOW reply - OF1.2])
1246AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1247AT_CHECK([ovs-ofctl ofp-print "\
124803 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
124900 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
125000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
125100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
125200 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1253ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
125400 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
125500 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
125605 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
125720 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
125800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
125900 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
126000 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
12610a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
126200 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
126300 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
126400 78 00 00 00 00 00 04 20 a9 d1 00 80 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 01 00 00 00 00 00 00 00 2a \
126700 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
126852 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
126900 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
127000 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
127105 dc 00 00 00 00 00 00 \
1272"], [0], [dnl
1273OFPST_FLOW reply (OF1.2) (xid=0x2):
1274 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
1275 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
1276 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
1277])
1278AT_CLEANUP
1279
617da9cd 1280AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1281AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1282AT_CHECK([ovs-ofctl ofp-print "\
128301 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1284ff fe 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 ff 00 ff ff \
1287"], [0], [dnl
54ae6fa8 1288OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1289])
1290AT_CLEANUP
1291
617da9cd
SH
1292AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1293AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1294AT_CHECK([ovs-ofctl ofp-print "\
129503 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1296ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
129700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129800 01 00 04 00 00 00 00 \
1299"], [0], [dnl
1300OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1301])
1302AT_CLEANUP
1303
2e1ae200
JR
1304AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1305AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1306AT_CHECK([ovs-ofctl ofp-print "\
130704 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1308ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
130900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131000 01 00 04 00 00 00 00 \
1311"], [0], [dnl
1312OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1313])
1314AT_CLEANUP
1315
617da9cd 1316AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1317AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1318AT_CHECK([ovs-ofctl ofp-print "\
131901 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
132000 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
132100 00 00 00 \
1322"], [0], [dnl
1323OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1324])
1325AT_CLEANUP
1326
617da9cd
SH
1327AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1328AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1329AT_CHECK([ovs-ofctl ofp-print "\
133003 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
133100 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
133200 00 00 03 00 00 00 00 \
1333"], [0], [dnl
1334OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1335])
1336AT_CLEANUP
1337
2e1ae200
JR
1338AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1339AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1340AT_CHECK([ovs-ofctl ofp-print "\
134104 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
134200 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
134300 00 00 03 00 00 00 00 \
1344"], [0], [dnl
1345OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1346])
1347AT_CLEANUP
1348
307975da 1349AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1350AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1351AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1352OFPST_TABLE request (xid=0x1):
1353])
1354AT_CLEANUP
1355
307975da
SH
1356AT_SETUP([OFPST_TABLE request - OF1.1])
1357AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1358AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1359OFPST_TABLE request (OF1.1) (xid=0x2):
1360])
1361AT_CLEANUP
1362
1363AT_SETUP([OFPST_TABLE request - OF1.2])
1364AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1365AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1366OFPST_TABLE request (OF1.2) (xid=0x2):
1367])
1368AT_CLEANUP
1369
2e1ae200
JR
1370AT_SETUP([OFPST_TABLE request - OF1.3])
1371AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1372AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1373OFPST_TABLE request (OF1.3) (xid=0x2):
1374])
1375AT_CLEANUP
1376
26df8b3e 1377AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1378AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1379AT_CHECK([ovs-ofctl ofp-print "\
138001 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
138163 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
138200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138300 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
138400 00 00 00 00 00 00 00 00 00 00 00 \
1385"], [0], [dnl
3c1bb396
BP
1386OFPST_TABLE reply (xid=0x1):
1387 table 0 ("classifier"):
1388 active=11, lookup=0, matched=0
1389 max_entries=1048576
1390 matching:
1391 in_port: exact match or wildcard
1392 eth_src: exact match or wildcard
1393 eth_dst: exact match or wildcard
1394 eth_type: exact match or wildcard
1395 vlan_vid: exact match or wildcard
1396 vlan_pcp: exact match or wildcard
1397 ip_src: exact match or wildcard
1398 ip_dst: exact match or wildcard
1399 nw_proto: exact match or wildcard
1400 nw_tos: exact match or wildcard
1401 tcp_src: exact match or wildcard
1402 tcp_dst: exact match or wildcard
fec00620
BP
1403])
1404AT_CLEANUP
1405
26df8b3e
SH
1406AT_SETUP([OFPST_TABLE reply - OF1.2])
1407AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3c1bb396
BP
1408(tail="
1409 config=controller
1410 max_entries=1000000
1411 instructions (table miss and others):
1412 instructions: write_metadata,goto_table
1413 Write-Actions and Apply-Actions features:
1414 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
1415 matching:
1416 metadata: exact match or wildcard
1417 in_port_oxm: exact match or wildcard
1418 eth_src: exact match or wildcard
1419 eth_dst: exact match or wildcard
1420 eth_type: exact match or wildcard
1421 vlan_vid: exact match or wildcard
1422 vlan_pcp: exact match or wildcard
1423 mpls_label: exact match or wildcard
1424 mpls_tc: exact match or wildcard
1425 ip_src: exact match or wildcard
1426 ip_dst: exact match or wildcard
1427 ipv6_src: exact match or wildcard
1428 ipv6_dst: exact match or wildcard
1429 ipv6_label: exact match or wildcard
1430 nw_proto: exact match or wildcard
1431 ip_dscp: exact match or wildcard
1432 nw_ecn: exact match or wildcard
1433 arp_op: exact match or wildcard
1434 arp_spa: exact match or wildcard
1435 arp_tpa: exact match or wildcard
1436 arp_sha: exact match or wildcard
1437 arp_tha: exact match or wildcard
1438 tcp_src: exact match or wildcard
1439 tcp_dst: exact match or wildcard
1440 udp_src: exact match or wildcard
1441 udp_dst: exact match or wildcard
1442 sctp_src: exact match or wildcard
1443 sctp_dst: exact match or wildcard
1444 icmp_type: exact match or wildcard
1445 icmp_code: exact match or wildcard
1446 icmpv6_type: exact match or wildcard
1447 icmpv6_code: exact match or wildcard
1448 nd_target: exact match or wildcard
1449 nd_sll: exact match or wildcard
1450 nd_tll: exact match or wildcard"
1451 echo "OFPST_TABLE reply (OF1.2) (xid=0x2):
1452 table 0 (\"classifier\"):
1453 active=1, lookup=74614, matched=106024$tail"
26df8b3e
SH
1454 x=1
1455 while test $x -lt 254; do
3c1bb396
BP
1456 printf "
1457 table %d (\"%s\"):
1458 active=0, lookup=0, matched=0$tail
26df8b3e
SH
1459" $x table$x
1460 x=`expr $x + 1`
1461 done
3c1bb396
BP
1462 echo "
1463 table 254 (\"table254\"):
1464 active=2, lookup=0, matched=0$tail") > expout
26df8b3e
SH
1465
1466(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"
1467 pad7="00 00 00 00 00 00 00 "
1468 mid="00 00 00 0f ff ff ff ff \
146900 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
147000 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
147100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
147200 00 00 07 00 00 00 00 00 0f 42 40 "
1473 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1474
1475 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1476
1477 x=0
1478 printf "%02x $pad7" $x
1479 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1480 echo -n "$mid 00 00 00 01 "
1481 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1482
1483 x=1
1484 while test $x -lt 254; do
1485 printf "%02x $pad7" $x
1486 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1487 echo -n "$mid 00 00 00 00 $tail "
1488 x=`expr $x + 1`
1489 done
1490
1491 x=254
1492 printf "%02x $pad7" $x
1493 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1494 echo -n "$mid 00 00 00 02 $tail") > in
8b227701 1495AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1496AT_CLEANUP
1497
2e1ae200
JR
1498AT_SETUP([OFPST_TABLE reply - OF1.3])
1499AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1500AT_CHECK([ovs-ofctl ofp-print "\
150104 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
150200 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
150300 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
150400 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1505"], [0], [dnl
3c1bb396
BP
1506OFPST_TABLE reply (OF1.3) (xid=0x1):
1507 table 0:
1508 active=11, lookup=512, matched=256
1509
1510 table 1:
1511 active=12, lookup=513, matched=257
2e1ae200
JR
1512])
1513AT_CLEANUP
1514
f8e4867e 1515AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1516AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1517AT_CHECK([ovs-ofctl ofp-print "\
151801 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
151900 00 00 00 \
1520"], [0], [dnl
e1db42d6 1521OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1522])
1523AT_CLEANUP
1524
f8e4867e
SH
1525AT_SETUP([OFPST_PORT request - 1.1])
1526AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1527AT_CHECK([ovs-ofctl ofp-print "\
152802 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1529ff ff ff ff 00 00 00 00 \
1530"], [0], [dnl
e1db42d6 1531OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1532])
1533AT_CLEANUP
1534
1535AT_SETUP([OFPST_PORT request - 1.2])
1536AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1537AT_CHECK([ovs-ofctl ofp-print "\
153803 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1539ff ff ff ff 00 00 00 00 \
1540"], [0], [dnl
e1db42d6 1541OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1542])
1543AT_CLEANUP
1544
2e1ae200
JR
1545AT_SETUP([OFPST_PORT request - 1.3])
1546AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1547AT_CHECK([ovs-ofctl ofp-print "\
154804 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1549ff ff ff ff 00 00 00 00 \
1550"], [0], [dnl
e1db42d6 1551OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1552])
1553AT_CLEANUP
1554
f8e4867e 1555AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1556AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1557AT_CHECK([ovs-ofctl ofp-print "\
155801 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
155900 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
156000 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
156100 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
156200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156500 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
156600 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
156700 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
156800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157100 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
157200 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
157300 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
157400 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
157500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157800 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
157900 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
158000 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
158100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158400 00 00 00 00 00 00 00 00 00 00 00 \
1585"], [0], [dnl
1586OFPST_PORT reply (xid=0x1): 4 ports
1587 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1588 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1589 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1590 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1591 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1592 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1593 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1594 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1595])
1596AT_CLEANUP
1597
f8e4867e
SH
1598AT_SETUP([OFPST_PORT reply - OF1.2])
1599AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1600AT_CHECK([ovs-ofctl ofp-print "\
160103 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
160200 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
160300 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
160400 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
160500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160800 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
160900 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
161000 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
161100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
161200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
161300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
161400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
161500 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
161600 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
161700 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
161800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
161900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162100 00 00 00 00 00 00 00 \
1622"], [0], [dnl
1623OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1624 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1625 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1626 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1627 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1628 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1629 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1630])
1631AT_CLEANUP
1632
65e0be10
BP
1633AT_SETUP([OFPST_PORT reply - OF1.3])
1634AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1635AT_CHECK([ovs-ofctl ofp-print "\
163604 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
163700 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
163800 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
163900 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
164000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164300 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1644ff ff ff fe 00 00 00 00 \
164500 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
164600 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
164700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1651ff ff ff ff ff ff ff ff \
165200 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
165300 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
165400 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
165500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165800 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1659"], [0], [dnl
1660OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1661 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1662 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1663 duration=1.001s
1664 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1665 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1666 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1667 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1668 duration=0.123s
1669])
1670AT_CLEANUP
1671
5469537b
BP
1672AT_SETUP([OFPST_PORT reply - OF1.4])
1673AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1674AT_CHECK([ovs-ofctl ofp-print "\
167505 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
167600 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
167700 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
167800 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
167900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168100 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
168200 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
168300 00 00 00 00 00 00 ff \
1684"], [0], [dnl
1685OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1686 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1687 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1688 duration=1.001s
1689])
1690AT_CLEANUP
1691
64626975 1692AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1693AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1694AT_CHECK([ovs-ofctl ofp-print "\
169501 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1696ff ff ff ff \
1697"], [0], [dnl
7f05e7ab 1698OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1699])
1700AT_CLEANUP
1701
64626975
SH
1702AT_SETUP([OFPST_QUEUE request - OF1.1])
1703AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1704AT_CHECK([ovs-ofctl ofp-print "\
170502 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1706ff ff ff ff ff ff ff ff \
64626975 1707"], [0], [dnl
7f05e7ab 1708OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1709])
1710AT_CLEANUP
1711
1712AT_SETUP([OFPST_QUEUE request - OF1.2])
1713AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1714AT_CHECK([ovs-ofctl ofp-print "\
171503 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1716ff ff ff ff ff ff ff ff \
64626975 1717"], [0], [dnl
7f05e7ab 1718OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1719])
1720AT_CLEANUP
1721
2e1ae200
JR
1722AT_SETUP([OFPST_QUEUE request - OF1.3])
1723AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1724AT_CHECK([ovs-ofctl ofp-print "\
172504 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1726ff ff ff ff ff ff ff ff \
1727"], [0], [dnl
1728OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1729])
1730AT_CLEANUP
1731
64626975 1732AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1733AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1734AT_CHECK([ovs-ofctl ofp-print "\
173501 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
173600 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
173700 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
173800 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
173900 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
174000 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
174100 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
174200 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
174300 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
174400 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
174500 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
174600 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
174700 00 00 00 00 00 00 00 00 00 00 00 \
1748"], [0], [dnl
1749OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1750 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1751 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1752 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1753 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1754 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1755 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1756])
1757AT_CLEANUP
1758
64626975
SH
1759AT_SETUP([OFPST_QUEUE reply - OF1.1])
1760AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1761AT_CHECK([ovs-ofctl ofp-print "\
176202 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
176300 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
176400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
176500 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
176600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
176700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
176800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
176900 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
177000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
177100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
177200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
177300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
177400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1775"], [0], [dnl
1776OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1777 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1778 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1779 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1780 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1781 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1782 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1783])
1784AT_CLEANUP
1785
1786AT_SETUP([OFPST_QUEUE reply - OF1.2])
1787AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1788AT_CHECK([ovs-ofctl ofp-print "\
178903 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
179000 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
179100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
179200 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
179300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
179500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
179600 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
179700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
179800 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
179900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180000 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
180100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1802"], [0], [dnl
1803OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1804 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1805 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1806 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1807 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1808 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1809 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1810])
1811AT_CLEANUP
be0c30df
BP
1812
1813AT_SETUP([OFPST_QUEUE reply - OF1.3])
1814AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1815AT_CHECK([ovs-ofctl ofp-print "\
181604 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
181700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
181800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
181900 00 00 64 1d cd 65 00 \
182000 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
182100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182200 00 00 64 1d cd 65 00 \
182300 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
182400 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
182500 00 00 64 1d cd 65 00 \
182600 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
182700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182800 00 00 64 1d cd 65 00 \
182900 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
183000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183100 00 00 64 1d cd 65 00 \
183200 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
183300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1834ff ff ff ff ff ff ff ff \
1835"], [0], [dnl
1836OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1837 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1838 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1839 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1840 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1841 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1842 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1843])
1844AT_CLEANUP
1845
1bb2cdbe
BP
1846AT_SETUP([OFPST_QUEUE reply - OF1.4])
1847AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1848AT_CHECK([ovs-ofctl ofp-print "\
184905 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
185000 30 00 00 00 00 00 00 \
185100 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
185200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
185300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
185400 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
185500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
185700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
185800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
185900 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
186000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
186100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186200 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
186300 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
186400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186500 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
186600 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
186700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1868ff ff ff ff ff ff ff ff \
1869"], [0], [dnl
1870OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
1871 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1872 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1873 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1874 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1875 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
1876 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1877])
1878AT_CLEANUP
1879
7395c052
NZ
1880AT_SETUP([OFPST_GROUP request])
1881AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1882AT_CHECK([ovs-ofctl ofp-print "\
188302 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1884ff ff ff ff 00 00 00 00 \
1885"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1886])
1887AT_CLEANUP
1888
1889AT_SETUP([OFPST_GROUP reply - OF1.1])
1890AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1891AT_CHECK([ovs-ofctl ofp-print "\
189202 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
189300 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
189400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
189500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
189600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
189700 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
189800 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
189900 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
190000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
190100 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1902"], [0], [dnl
1903OFPST_GROUP reply (OF1.1) (xid=0x2):
1904 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
1905 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
1906])
1907AT_CLEANUP
1908
1909AT_SETUP([OFPST_GROUP reply - OF1.3])
1910AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1911AT_CHECK([ovs-ofctl ofp-print "\
191204 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
191300 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
191400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
191500 00 00 12 1d cd 65 00 \
191600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
191700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
191800 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
191900 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
192000 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
192100 00 00 10 1d cd 65 00 \
192200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
192300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1924"], [0], [dnl
1925OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1926 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
1927 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
1928])
1929AT_CLEANUP
1930
19187a71 1931AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
1932AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1933AT_CHECK([ovs-ofctl ofp-print "\
193402 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
1935"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
1936])
1937AT_CLEANUP
1938
1939AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
1940AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1941AT_CHECK([ovs-ofctl ofp-print "\
194206 12 00 14 00 00 00 02 00 07 00 00 00 00 00 00 \
194300 00 00 01
1944"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
1945])
1946AT_CLEANUP
1947
1948AT_SETUP([OFPST_GROUP_DESC reply])
1949AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1950AT_CHECK([ovs-ofctl ofp-print "\
195102 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
195200 68 01 00 00 00 20 00 \
195300 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
195400 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
195500 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
195600 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
195700 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
195800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
1959"], [0], [dnl
1960OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
1961 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
1962])
1963AT_CLEANUP
1964
1965AT_SETUP([OFPST_GROUP_FEATURES request])
1966AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1967AT_CHECK([ovs-ofctl ofp-print "\
196803 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
1969"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
1970])
1971AT_CLEANUP
1972
1973AT_SETUP([OFPST_GROUP_FEATURES reply])
1974AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1975AT_CHECK([ovs-ofctl ofp-print "\
197603 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
197700 00 00 0f 00 00 00 0f \
197800 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 197900 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
1980"], [0], [dnl
1981OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
1982 Group table:
1983 Types: 0xf
1984 Capabilities: 0xf
08d1e234
BP
1985 all group:
1986 max_groups=0x1
1987 actions: output
1988 select group:
1989 max_groups=0x2
1990 actions: output push_vlan
1991 indirect group:
1992 max_groups=0x3
1993 actions: output strip_vlan push_vlan
1994 fast failover group:
1995 max_groups=0x4
1996 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
1997])
1998AT_CLEANUP
1999
2000AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2001AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2002AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2003OFPST_PORT_DESC request (xid=0x1): port=ANY
2004])
2005AT_CLEANUP
2006
2007AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2008AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2009AT_CHECK([ovs-ofctl ofp-print "\
201006 12 00 14 00 00 00 02 00 0d 00 00 00 00 00 00 \
201100 00 00 05"], [0], [dnl
2012OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2013])
2014AT_CLEANUP
2015
2be393ed
JP
2016AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2017AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2018AT_CHECK([ovs-ofctl ofp-print "\
201901 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
202000 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
202100 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
202200 00 02 8f 00 00 02 8f 00 00 00 00 \
2023"], [0], [dnl
2024OFPST_PORT_DESC reply (xid=0x0):
2025 3(eth0): addr:50:54:00:00:00:01
2026 config: PORT_DOWN
2027 state: LINK_DOWN
2028 current: 100MB-FD AUTO_NEG
2029 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2030 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2031 speed: 100 Mbps now, 100 Mbps max
2032])
2033AT_CLEANUP
2034
8c3cc785
BP
2035AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2036AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2037AT_CHECK([ovs-ofctl ofp-print "\
203805 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
203900 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
204065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
204100 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
204200 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
204300 01 86 a0 00 01 86 a0 \
2044"], [0], [dnl
2045OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2046 3(eth0): addr:50:54:00:00:00:01
2047 config: 0
2048 state: 0
2049 current: 100MB-FD AUTO_NEG
2050 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2051 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2052 speed: 100 Mbps now, 100 Mbps max
2053])
2054AT_CLEANUP
2055
638a19b0
JR
2056AT_SETUP([OFPT_METER_MOD request - OF1.3])
2057AT_KEYWORDS([ofp-print])
2058AT_CHECK([ovs-ofctl ofp-print "\
205904 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
206000 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2061"], [0], [dnl
2062OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2063type=drop rate=1024 burst_size=128
2064])
2065AT_CLEANUP
2066
f99d6aa0
BP
2067AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2068AT_KEYWORDS([ofp-print])
2069AT_CHECK([ovs-ofctl ofp-print "\
207004 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
207100 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2072"], [0], [dnl
2073OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2074])
2075AT_CLEANUP
2076
142cdb01
BP
2077AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2078AT_KEYWORDS([ofp-print])
2079AT_CHECK([ovs-ofctl ofp-print "\
208004 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2081"], [0], [dnl
2082OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2083])
2084AT_CLEANUP
2085
13b1febe
BP
2086AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2087AT_KEYWORDS([ofp-print])
2088AT_CHECK([ovs-ofctl ofp-print "\
208904 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
209000 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2091"], [0], [dnl
2092OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2093])
2094AT_CLEANUP
2095
638a19b0
JR
2096AT_SETUP([OFPST_METER request - OF1.3])
2097AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2098AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2099OFPST_METER request (OF1.3) (xid=0x2): meter=1
2100])
2101AT_CLEANUP
2102
2103AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2104AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2105AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2106OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2107])
2108AT_CLEANUP
2109
2110AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2111AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2112AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2113OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2114])
2115AT_CLEANUP
2116
2117AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2118AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2119AT_CHECK([ovs-ofctl ofp-print "\
212004 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 212100 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2122"], [0], [dnl
2123OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2124max_meter:65536 max_bands:16 max_color:2
2125band_types: drop dscp_remark
2126capabilities: kbps pktps burst stats
2127])
2128AT_CLEANUP
2129
2130AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2131AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2132AT_CHECK([ovs-ofctl ofp-print "\
213304 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
213400 28 00 05 00 00 00 01 \
213500 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
213600 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
213700 18 00 09 00 00 00 02 \
213800 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2139"], [0], [dnl
2140OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2141meter=1 kbps burst bands=
2142type=drop rate=65536 burst_size=1280
2143type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2144
2145meter=2 kbps stats bands=
2146type=drop rate=131072
2147])
2148AT_CLEANUP
2149
2150AT_SETUP([OFPST_METER reply - OF1.3])
2151AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2152AT_CHECK([ovs-ofctl ofp-print "\
215304 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
215400 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
215500 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 215600 00 01 8a 0a 6e 23 44 \
638a19b0
JR
215700 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
215800 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
215900 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
216000 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 216100 00 01 87 0a 23 6e 44 \
638a19b0
JR
216200 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2163"], [0], [dnl
2164OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2165meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
21660: packet_count:126 byte_count:13363
21671: packet_count:231 byte_count:37934
2168
0445637d 2169meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
21700: packet_count:42 byte_count:1075
2171])
2172AT_CLEANUP
2173
5deff5aa
AW
2174AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2175AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2176AT_CHECK([ovs-ofctl ofp-print "\
217704 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
217809 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
217900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
218000 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2181ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
218200 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
218300 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
218400 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
218500 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
218600 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
218700 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
218800 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
21890d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
21901d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
21912d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
21923d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
21934d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
21945d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
21956d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
21967d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
21978d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
21989d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2199ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2200bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2201cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2202dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2203ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2204fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
220505 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
220615 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
220725 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
220835 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
220945 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
221055 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
221165 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
221275 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
221385 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
221495 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2215a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2216b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2217c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2218d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2219e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2220f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
222100 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
222200 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
222300 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
222400 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
222500 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
222600 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
222700 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
222800 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
222900 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
223000 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
223100 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
223200 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
223300 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
223400 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
223500 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
223600 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
223700 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
223800 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
223900 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
224000 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
224100 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
224200 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
224300 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
224400 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
224500 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
224600 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
224700 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
224800 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
224900 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
225000 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
225100 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
225200 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
225300 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
225400 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
225500 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
225680 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
225700 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
225800 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
225980 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
226080 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
226180 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
226280 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
226380 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
226480 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
226580 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
226680 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
226780 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
226880 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
226900 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
227080 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
227100 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
227200 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
227380 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
227480 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
227580 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
227680 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
227780 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
227880 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
227980 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
228080 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
228180 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
228280 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
228300 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
228480 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
228500 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
228600 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
228780 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
228880 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
228980 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
229080 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
229180 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
229280 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
229380 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
229400 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
229580 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
229600 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
229700 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
229800 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
229980 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
230080 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
230100 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
230280 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
230380 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
230400 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
230580 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
230600 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
230700 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
230880 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
230980 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
231080 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
231180 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
231280 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
231380 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
231480 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
231500 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
231680 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
231700 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
231800 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
231900 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
232080 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
232180 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
232200 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
232380 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
232480 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2325"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
3c1bb396 2326 table 0 ("table0"):
5deff5aa 2327 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2328 max_entries=1000000
2329 instructions (table miss and others):
2330 next tables: 1-253
2331 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2332 Write-Actions and Apply-Actions features:
08d1e234 2333 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 2334 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
2335 matching:
2336 tun_id: exact match or wildcard
2337 tun_src: exact match or wildcard
2338 tun_dst: exact match or wildcard
2339 metadata: exact match or wildcard
2340 in_port: exact match or wildcard
2341 in_port_oxm: exact match or wildcard
2342 pkt_mark: exact match or wildcard
2343 reg0: exact match or wildcard
2344 reg1: exact match or wildcard
2345 reg2: exact match or wildcard
2346 reg3: exact match or wildcard
2347 reg4: exact match or wildcard
2348 reg5: exact match or wildcard
2349 reg6: exact match or wildcard
2350 reg7: exact match or wildcard
2351 eth_src: exact match or wildcard
2352 eth_dst: exact match or wildcard
2353 eth_type: exact match or wildcard
2354 vlan_tci: exact match or wildcard
2355 vlan_vid: exact match or wildcard
2356 vlan_pcp: exact match or wildcard
2357 mpls_label: exact match or wildcard
2358 mpls_tc: exact match or wildcard
2359 mpls_bos: exact match or wildcard
2360 ip_src: exact match or wildcard
2361 ip_dst: exact match or wildcard
2362 ipv6_src: exact match or wildcard
2363 ipv6_dst: exact match or wildcard
2364 ipv6_label: exact match or wildcard
2365 nw_proto: exact match or wildcard
2366 nw_tos: exact match or wildcard
2367 ip_dscp: exact match or wildcard
2368 nw_ecn: exact match or wildcard
2369 nw_ttl: exact match or wildcard
2370 ip_frag: exact match or wildcard
2371 arp_op: exact match or wildcard
2372 arp_spa: exact match or wildcard
2373 arp_tpa: exact match or wildcard
2374 arp_sha: exact match or wildcard
2375 arp_tha: exact match or wildcard
2376 tcp_src: exact match or wildcard
2377 tcp_dst: exact match or wildcard
2378 tcp_flags: exact match or wildcard
2379 udp_src: exact match or wildcard
2380 udp_dst: exact match or wildcard
2381 sctp_src: exact match or wildcard
2382 sctp_dst: exact match or wildcard
2383 icmp_type: exact match or wildcard
2384 icmp_code: exact match or wildcard
2385 icmpv6_type: exact match or wildcard
2386 icmpv6_code: exact match or wildcard
2387 nd_target: exact match or wildcard
2388 nd_sll: exact match or wildcard
2389 nd_tll: exact match or wildcard
2390])
2391AT_CLEANUP
2392
58cf43df 2393AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2394AT_KEYWORDS([ofp-print])
2395AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2396OFPT_BARRIER_REQUEST (xid=0x1):
2397])
2398AT_CLEANUP
2399
58cf43df
SH
2400AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2401AT_KEYWORDS([ofp-print])
2402AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2403OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2404])
2405AT_CLEANUP
2406
2407AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2408AT_KEYWORDS([ofp-print])
2409AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2410OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2411])
2412AT_CLEANUP
2413
2e1ae200
JR
2414AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2415AT_KEYWORDS([ofp-print])
2416AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2417OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2418])
2419AT_CLEANUP
2420
58cf43df 2421AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2422AT_KEYWORDS([ofp-print])
2423AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2424OFPT_BARRIER_REPLY (xid=0x1):
2425])
2426AT_CLEANUP
2427
2e1ae200 2428AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2429AT_KEYWORDS([ofp-print])
2430AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2431OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2432])
2433AT_CLEANUP
2434
2e1ae200 2435AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2436AT_KEYWORDS([ofp-print])
2437AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2438OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2439])
2440AT_CLEANUP
2441
2e1ae200
JR
2442AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2443AT_KEYWORDS([ofp-print])
2444AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2445OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2446])
2447AT_CLEANUP
2448
e8f9a7bb
VG
2449AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2450AT_KEYWORDS([ofp-print])
2ffc8767 2451AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2452OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2453])
2454AT_CLEANUP
2455
2456AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2457AT_KEYWORDS([ofp-print])
2458AT_CHECK([ovs-ofctl ofp-print "\
245903 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2460OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2461])
2462AT_CLEANUP
2463
2464AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2465AT_KEYWORDS([ofp-print])
2ffc8767 2466AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
246700 01 00 00 00 00 00 00 \
246800 00 55 55 00 28 00 00 \
246900 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
247000 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
247100 00 44 44 00 08 00 00 \
2472"], [0], [dnl
2473OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2474queue 21845: min_rate:50.0% max_rate:75.0%
2475queue 17476:
2476])
2477AT_CLEANUP
2478
2479AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2480AT_KEYWORDS([ofp-print])
2481AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
248200 00 00 01 00 00 00 00 \
248300 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
248400 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
248500 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
248600 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2487"], [0], [dnl
2488OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2489queue 21845: min_rate:50.0% max_rate:75.0%
2490queue 17476:
2491])
2492AT_CLEANUP
2e1ae200
JR
2493
2494AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2495AT_KEYWORDS([ofp-print])
2496AT_CHECK([ovs-ofctl ofp-print "\
249704 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
249800 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2499"], [0], [dnl
2500OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2501 master:
2502 PACKET_IN: no_match invalid_ttl 12
2503 PORT_STATUS: add delete
2504 FLOW_REMOVED: (off)
2505
2506 slave:
2507 PACKET_IN: no_match action invalid_ttl 12
2508 PORT_STATUS: add delete modify
2509 FLOW_REMOVED: idle hard
2510])
2511AT_CLEANUP
2512
6ea4776b
JR
2513AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2514AT_KEYWORDS([ofp-print])
2515AT_CHECK([ovs-ofctl ofp-print "\
251603 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
251700 00 00 00 00 00 00 03 \
2518"], [0], [dnl
2519OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2520])
2521AT_CLEANUP
2522
2523AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2524AT_KEYWORDS([ofp-print])
2525AT_CHECK([ovs-ofctl ofp-print "\
252603 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
252700 00 00 00 00 00 00 00 \
2528"], [0], [dnl
2529OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2530])
2531AT_CLEANUP
2532
fec00620
BP
2533AT_SETUP([NXT_ROLE_REQUEST])
2534AT_KEYWORDS([ofp-print])
2535AT_CHECK([ovs-ofctl ofp-print "\
253601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
253700 00 00 01 \
2538"], [0], [dnl
2539NXT_ROLE_REQUEST (xid=0x2): role=master
2540])
2541AT_CLEANUP
2542
6ea4776b
JR
2543AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2544AT_KEYWORDS([ofp-print])
2545AT_CHECK([ovs-ofctl ofp-print "\
254603 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 254712 34 56 78 ab cd ef 90 \
6ea4776b 2548"], [0], [dnl
147cc9d3 2549OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2550])
2551AT_CLEANUP
2552
fec00620
BP
2553AT_SETUP([NXT_ROLE_REPLY])
2554AT_KEYWORDS([ofp-print])
2555AT_CHECK([ovs-ofctl ofp-print "\
255601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
255700 00 00 02 \
2558"], [0], [dnl
2559NXT_ROLE_REPLY (xid=0x2): role=slave
2560])
2561AT_CLEANUP
2562
00467f73
AC
2563AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2564AT_KEYWORDS([ofp-print])
2565AT_CHECK([ovs-ofctl ofp-print "\
256605 1e 00 18 00 00 00 0a \
256700 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2568"], [0], [dnl
9620f50c 2569OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2570])
2571AT_CLEANUP
2572
2573AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2574AT_KEYWORDS([ofp-print])
2575AT_CHECK([ovs-ofctl ofp-print "\
257605 1e 00 18 00 00 00 0a \
257700 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2578"], [0], [dnl
9620f50c 2579OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2580])
2581AT_CLEANUP
2582
2583AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2584AT_KEYWORDS([ofp-print])
2585AT_CHECK([ovs-ofctl ofp-print "\
258605 1e 00 18 00 00 00 0a \
258700 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2588"], [0], [dnl
9620f50c 2589OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2590])
2591AT_CLEANUP
2592
54834960
EJ
2593AT_SETUP([NXT_SET_PACKET_IN])
2594AT_KEYWORDS([ofp-print])
2595AT_CHECK([ovs-ofctl ofp-print "\
259601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
259700 00 00 01 \
2598"], [0], [dnl
2599NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2600])
2601AT_CLEANUP
2602
2603AT_SETUP([NXT_PACKET_IN])
2604AT_KEYWORDS([ofp-print])
2605AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 260601 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2607ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 260800 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
260920 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
261000 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
261100 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 261200 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2613ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
261480 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
261500 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 261600 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
261731 6d 00 00 00 00 00 00 00 00 \
2618"], [0], [dnl
42edbe39 2619NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
ea2735d3 2620tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=syn tcp_csum:316d
54834960
EJ
2621])
2622AT_CLEANUP
2623
b4ccee75
SH
2624AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2625AT_KEYWORDS([ofp-print])
2626AT_CHECK([ovs-ofctl ofp-print "\
262701 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2628ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
262900 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
263020 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
263100 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
263200 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
263300 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2634ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
263580 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
263600 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 263700 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
263831 6d 00 00 00 00 00 00 00 00 \
2639" 3], [0], [dnl
2640NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
ea2735d3 2641tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=fin tcp_csum:316d
b4ccee75
SH
264200000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
264300000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
264400000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 264500000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2646])
2647AT_CLEANUP
2648
80d5aefd
BP
2649AT_SETUP([NXT_SET_ASYNC_CONFIG])
2650AT_KEYWORDS([ofp-print])
2651AT_CHECK([ovs-ofctl ofp-print "\
265201 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
265300 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
265400 00 00 00 00 00 00 03 \
2655"], [0], [dnl
2656NXT_SET_ASYNC_CONFIG (xid=0x0):
2657 master:
2658 PACKET_IN: no_match invalid_ttl 12
2659 PORT_STATUS: add delete
2660 FLOW_REMOVED: (off)
2661
2662 slave:
2663 PACKET_IN: no_match action invalid_ttl 12
2664 PORT_STATUS: add delete modify
2665 FLOW_REMOVED: idle hard
2666])
2667AT_CLEANUP
2668
a7349929
BP
2669AT_SETUP([NXT_SET_CONTROLLER_ID])
2670AT_KEYWORDS([ofp-print])
2671AT_CHECK([ovs-ofctl ofp-print "\
267201 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
267300 00 00 00 00 00 00 7b \
2674"], [0], [dnl
2675NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2676])
2677AT_CLEANUP
2678
2b07c8b1
BP
2679AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2680AT_KEYWORDS([ofp-print])
2681AT_CHECK([ovs-ofctl ofp-print "\
268201 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
268301 02 30 40 \
2684"], [0], [dnl
2685NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2686])
2687AT_CLEANUP
2688
2689AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2690AT_KEYWORDS([ofp-print])
2691AT_CHECK([ovs-ofctl ofp-print "\
269201 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2693"], [0], [dnl
2694NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2695])
2696AT_CLEANUP
2697
2698AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2699AT_KEYWORDS([ofp-print])
2700AT_CHECK([ovs-ofctl ofp-print "\
270101 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2702"], [0], [dnl
2703NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2704])
2705AT_CLEANUP
2706
fec00620
BP
2707AT_SETUP([NXT_SET_FLOW_FORMAT])
2708AT_KEYWORDS([ofp-print])
2709AT_CHECK([ovs-ofctl ofp-print "\
271001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
271100 00 00 02 \
2712"], [0], [dnl
2713NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2714])
2715AT_CLEANUP
2716
2717# The flow is formatted with cls_rule_format() for the low-verbosity case.
2718AT_SETUP([NXT_FLOW_MOD, low verbosity])
2719AT_KEYWORDS([ofp-print])
2720AT_CHECK([ovs-ofctl ofp-print "\
272101 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
272200 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2723ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
272400 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
272500 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
272600 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2727" 2], [0], [dnl
de0f16bc 2728NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2729])
2730AT_CLEANUP
2731
eec25dc1
BP
2732# The flow is formatted with ofp10_match_to_string() for the
2733# low-verbosity case.
fec00620
BP
2734AT_SETUP([NXT_FLOW_MOD, high verbosity])
2735AT_KEYWORDS([ofp-print])
2736AT_CHECK([ovs-ofctl ofp-print "\
273701 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
273800 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2739ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
274000 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
274100 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
274200 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2743" 3], [0], [dnl
de0f16bc 2744NXT_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
2745])
2746AT_CLEANUP
2747
7395c052
NZ
2748AT_SETUP([OFPT_GROUP_MOD])
2749AT_KEYWORDS([ofp-print])
2750AT_CHECK([ovs-ofctl ofp-print "\
275102 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
275200 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
275300 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
275400 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
275500 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
275600 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
275700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2758"], [0], [dnl
2759OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2760 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
2761])
2762AT_CLEANUP
2763
fec00620
BP
2764AT_SETUP([NXT_FLOW_REMOVED])
2765AT_KEYWORDS([ofp-print])
2766AT_CHECK([ovs-ofctl ofp-print "\
276701 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 276800 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
276901 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
277000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
277102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
277200 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
27731e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2774c0 a8 00 02 00 00 00 00 \
2775"], [0], [dnl
745bfd5e 2776NXT_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
2777])
2778AT_CLEANUP
2779
a1a7d333
BP
2780AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2781AT_KEYWORDS([ofp-print])
2782AT_CHECK([ovs-ofctl ofp-print "\
278301 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
278401 00 00 00 00 00 00 00 \
2785"], [0], [dnl
2786NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2787])
2788AT_CLEANUP
2789
fec00620
BP
2790AT_SETUP([NXST_FLOW request])
2791AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2792AT_CHECK([ovs-ofctl ofp-print "\
279301 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
279400 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2795"], [0], [dnl
54ae6fa8 2796NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2797])
2798AT_CLEANUP
2799
2800AT_SETUP([NXST_FLOW reply])
2801AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2802AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 280301 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
280400 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
280502 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
280600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
280700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
280802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
280900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28100a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2811a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
281214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
281300 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 281400 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
281500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
281600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
281700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
281800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2819a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
282000 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
282100 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 282233 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
282300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
282400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
282502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
282600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28270a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2828a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
282914 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
283000 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 283100 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
283200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
283300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
283400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
283500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2836a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
283700 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
283800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 283934 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
284000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
284100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
284202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
284300 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28440a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2845a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
284614 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
284700 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
284800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
284900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
285000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
285100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
285200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2853a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
285400 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
285500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
285602 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
285700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
285800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
285902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
286000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28610a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2862a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
286314 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
286400 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
286500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
286600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
286700 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
286800 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
286900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2870a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
287100 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
287200 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
287327 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
287400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
287500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
287602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
287700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28780a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2879a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
288014 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
288100 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
288200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
288300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
288400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
288500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
288600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2887a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
288800 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
288900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
28900a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
289100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
289200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
289302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
289400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28950a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2896a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
289714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
289800 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
289900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
290000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
290100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
290200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
290300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2904a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
290500 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
290600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
290704 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
290800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
290900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
291002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
291100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29120a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2913a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
291414 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
291500 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
291600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
291700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
291800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
291900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
292000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2921a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
292200 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
292300 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
29242e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
292500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
292600 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
292700 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
2928ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
292900 00 00 00 00 00 00 05 \
05b8f1c2
BP
293000 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
293100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
293200 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
2933"], [0],
2934[[NXST_FLOW reply (xid=0x4):
b9718b7b 2935 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 2936 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
2937 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
2938 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 2939 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 2940 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 2941 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
2942 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
2943 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
2944 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
2945 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
2946 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
2947 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
2948 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
2949 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 2950 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
2951]])
2952AT_CLEANUP
2953
2954AT_SETUP([NXST_AGGREGATE request])
2955AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2956AT_CHECK([ovs-ofctl ofp-print "\
295701 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
295800 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2959"], [0], [dnl
54ae6fa8 2960NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
2961])
2962AT_CLEANUP
2963
2964AT_SETUP([NXST_AGGREGATE reply])
2965AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2966AT_CHECK([ovs-ofctl ofp-print "\
296701 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
296800 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
296900 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
2970"], [0], [dnl
2971NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
2972])
2973AT_CLEANUP
2b07c8b1
BP
2974
2975AT_SETUP([NXST_FLOW_MONITOR request])
2976AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2977AT_CHECK([ovs-ofctl ofp-print "\
297801 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
297900 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
298000 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
2981"], [0], [dnl
2982NXST_FLOW_MONITOR request (xid=0x4):
2983 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
2984 id=8192 flags=delete table=2 in_port=1
2985])
2986AT_CLEANUP
2987
2988AT_SETUP([NXST_FLOW_MONITOR reply])
2989AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2990AT_CHECK([ovs-ofctl ofp-print "\
299101 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 299200 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
299300 00 00 02 00 01 00 00 \
299400 08 00 03 00 01 86 a0 \
2995"], [0], [dnl
2996NXST_FLOW_MONITOR reply (xid=0x4):
2997 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
2998 event=ABBREV xid=0x186a0
2999])
3000AT_CLEANUP
777af88d
AC
3001
3002
3003AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3004AT_KEYWORDS([ofp-print])
3005AT_CHECK([ovs-ofctl ofp-print "\
300605 21 00 10 00 00 00 00 \
300700 00 00 01 00 00 00 01 \
3008"], [0], [dnl
3009OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3010 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3011])
3012AT_CLEANUP
3013
3014AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3015AT_KEYWORDS([ofp-print])
3016AT_CHECK([ovs-ofctl ofp-print "\
301705 21 00 10 00 00 00 00 \
301800 00 00 01 00 00 00 02 \
3019"], [0], [dnl
3020OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3021 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3022])
3023AT_CLEANUP
3024
3025AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3026AT_KEYWORDS([ofp-print])
3027AT_CHECK([ovs-ofctl ofp-print "\
302805 21 00 10 00 00 00 00 \
302900 00 00 01 00 00 00 03 \
3030"], [0], [dnl
3031OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3032 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3033])
3034AT_CLEANUP
3035
3036AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
3037AT_KEYWORDS([ofp-print])
3038AT_CHECK([ovs-ofctl ofp-print "\
303905 21 00 10 00 00 00 00 \
304000 00 00 01 00 01 00 01 \
3041"], [0], [dnl
3042OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3043 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3044])
3045AT_CLEANUP
3046
3047AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
3048AT_KEYWORDS([ofp-print])
3049AT_CHECK([ovs-ofctl ofp-print "\
305005 21 00 10 00 00 00 00 \
305100 00 00 01 00 02 00 01 \
3052"], [0], [dnl
3053OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3054 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3055])
3056AT_CLEANUP
3057
3058AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3059AT_KEYWORDS([ofp-print])
3060AT_CHECK([ovs-ofctl ofp-print "\
306105 21 00 10 00 00 00 00 \
306200 00 00 01 00 03 00 01 \
3063"], [0], [dnl
3064OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3065 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3066])
3067AT_CLEANUP
3068
3069AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3070AT_KEYWORDS([ofp-print])
3071AT_CHECK([ovs-ofctl ofp-print "\
307205 21 00 10 00 00 00 00 \
307300 00 00 01 00 04 00 01 \
3074"], [0], [dnl
3075OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3076 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3077])
3078AT_CLEANUP
3079
3080AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3081AT_KEYWORDS([ofp-print])
3082AT_CHECK([ovs-ofctl ofp-print "\
308305 21 00 10 00 00 00 00 \
308400 00 00 01 00 05 00 01 \
3085"], [0], [dnl
3086OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3087 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3088])
3089AT_CLEANUP
3090
3091AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3092AT_KEYWORDS([ofp-print])
3093AT_CHECK([ovs-ofctl ofp-print "\
309405 21 00 10 00 00 00 00 \
309500 00 00 01 00 06 00 01 \
3096"], [0], [dnl
3097OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3098 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3099])
3100AT_CLEANUP
3101
3102AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3103AT_KEYWORDS([ofp-print])
3104AT_CHECK([ovs-ofctl ofp-print "\
310505 21 00 10 00 00 00 00 \
310600 00 00 01 00 07 00 01 \
3107"], [0], [dnl
3108OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3109 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3110])
3111AT_CLEANUP
3112
3113AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - OFPT_HELLO])
3114AT_KEYWORDS([ofp-print])
3115AT_CHECK([ovs-ofctl ofp-print "\
311605 22 00 20 00 00 00 00 \
311700 00 00 01 00 01 00 01 02 00 00 08 00 00 00 00 \
311800 00 00 00 00 00 00 00 \
3119"], [0], [dnl
3120OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0):
3121 bundle_id=0x1 flags=atomic
3122OFPT_HELLO (OF1.1) (xid=0x0):
3123 version bitmap: 0x01, 0x02
3124])
3125AT_CLEANUP