]> git.proxmox.com Git - ovs.git/blame - tests/ofp-print.at
rconn: Make OF 1.4 bundle messages 'admitted'.
[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
78c9486d 450tcp,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
78c9486d 464tcp,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
78c9486d 483tcp,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
78c9486d 497rarp,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
78c9486d 511rarp,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
b4ccee75
SH
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
b6a3dd9c
JT
529rarp,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
530])
531AT_CLEANUP
532
533AT_SETUP([OFPT_PACKET_IN - OF1.4])
534AT_KEYWORDS([ofp-print])
535AT_CHECK([ovs-ofctl ofp-print "\
53605 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"], [0], [dnl
543OFPT_PACKET_IN (OF1.4) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
544rarp,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
545])
546AT_CLEANUP
547
548AT_SETUP([OFPT_PACKET_IN - OF1.5])
549AT_KEYWORDS([ofp-print])
550AT_CHECK([ovs-ofctl ofp-print "\
55106 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
55201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
553ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
55400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
55500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
55600 00 00 00 \
557"], [0], [dnl
558OFPT_PACKET_IN (OF1.5) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
78c9486d 559rarp,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
560])
561AT_CLEANUP
562
b4ccee75
SH
563AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
564AT_KEYWORDS([ofp-print])
565AT_CHECK([ovs-ofctl ofp-print "\
56604 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
56701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
568ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
56900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
57000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
57100 00 00 00 \
572" 3], [0], [dnl
573OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
78c9486d 574rarp,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
b4ccee75
SH
57500000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
57600000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
57700000020 00 23 20 83 c1 5f 00 00-00 00
578])
579AT_CLEANUP
580
eefbf181 581AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
582AT_KEYWORDS([ofp-print])
583AT_CHECK([ovs-ofctl ofp-print "\
58401 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
58500 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
58600 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
58700 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
58830 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
58900 00 00 00 00 00 00 3c \
590"], [0], [dnl
b1634591 591OFPT_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
592])
593AT_CLEANUP
594
eefbf181
SH
595AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
596AT_KEYWORDS([ofp-print])
597AT_CHECK([ovs-ofctl ofp-print "\
59803 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
59980 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
60000 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
60100 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 602OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
603])
604AT_CLEANUP
605
2e1ae200
JR
606AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
607AT_KEYWORDS([ofp-print])
608AT_CHECK([ovs-ofctl ofp-print "\
60904 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
61080 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
61100 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
61200 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 613OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
2e1ae200
JR
614])
615AT_CLEANUP
616
9e1fd49b 617AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
618AT_KEYWORDS([ofp-print])
619AT_CHECK([ovs-ofctl ofp-print "\
62001 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
62100 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
62200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
62300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
624"], [0], [dnl
0ab14c8e
BP
625OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
626 config: PORT_DOWN
627 state: LINK_DOWN
628 current: 100MB-FD AUTO_NEG
629 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
630 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
631 speed: 100 Mbps now, 100 Mbps max
632])
633AT_CLEANUP
634
635AT_SETUP([OFPT_PORT_STATUS - OF1.1])
636AT_KEYWORDS([ofp-print])
637AT_CHECK([ovs-ofctl ofp-print "\
63802 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
63900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
64065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
64100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
64200 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
643"], [0], [dnl
644OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
645 config: 0
646 state: 0
647 current: 100MB-FD AUTO_NEG
648 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
649 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
650 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
651])
652AT_CLEANUP
653
8c3cc785
BP
654AT_SETUP([OFPT_PORT_STATUS - OF1.4])
655AT_KEYWORDS([ofp-print])
656AT_CHECK([ovs-ofctl ofp-print "\
65705 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
65800 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
65965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
66000 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
66100 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
66200 01 86 a0 00 01 86 a0 \
663"], [0], [dnl
664OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
665 config: 0
666 state: 0
667 current: 100MB-FD AUTO_NEG
668 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
669 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
670 speed: 100 Mbps now, 100 Mbps max
671])
672AT_CLEANUP
673
eb5ee596 674AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
675AT_KEYWORDS([ofp-print])
676AT_CHECK([ovs-ofctl ofp-print "\
67701 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
67800 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
67900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
680b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
68100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
68200 00 00 00 \
683"], [0], [dnl
c6a93eb7 684OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
685])
686AT_CLEANUP
687
4b2d9d11
SH
688AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
689AT_KEYWORDS([ofp-print])
690AT_CHECK([ovs-ofctl ofp-print "\
69101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
69200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
69300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
694b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
69500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
69600 00 00 00 \
697"], [0], [dnl
698OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
78c9486d 699tcp,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
700])
701AT_CLEANUP
702
b4ccee75
SH
703AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
704AT_KEYWORDS([ofp-print])
705AT_CHECK([ovs-ofctl ofp-print "\
70601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
70700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
70800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
709b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
71000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
71100 00 00 00 \
712" 3], [0], [dnl
713OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
78c9486d 714tcp,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
71500000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
71600000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
71700000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
71800000030 00 00 6d 75 00 00 00 00-00 00 00 00
719])
720AT_CLEANUP
721
eb5ee596
SH
722AT_SETUP([OFPT_PACKET_OUT - OF1.1])
723AT_KEYWORDS([ofp-print])
724AT_CHECK([ovs-ofctl ofp-print "\
72503 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
72600 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
72705 dc 00 00 00 00 00 00 \
728"], [0], [dnl
729OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
730])
731AT_CLEANUP
732
4b2d9d11
SH
733AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
734AT_KEYWORDS([ofp-print])
735AT_CHECK([ovs-ofctl ofp-print "\
73603 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
73700 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
73805 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
73900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
740b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
74100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
74200 00 00 00 \
743"], [0], [dnl
744OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
78c9486d 745tcp,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
746])
747AT_CLEANUP
748
fec00620 749# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 750AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 751AT_KEYWORDS([ofp-print])
1c0b7503 752AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
75301 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
75400 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
75500 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
75600 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
75700 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
758" 2], [0], [dnl
666d0863 759OFPT_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
760], [dnl
761ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
762ofp_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
763ofp_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
764])
765AT_CLEANUP
766
75fa58f8
BP
767# The flow is formatted with cls_rule_format() for the low-verbosity case.
768AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
769AT_KEYWORDS([ofp-print])
770AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
771020e 0090 01020304 \
772da1aa3e035d87158 ffffffffffffffff \
77302 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
7740000 \
775\
7760000 0058 00000000 000003f7 \
777000000000000ffffffffffff 000000000000ffffffffffff \
7780000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
77900000000 00 000000 0000000000000000ffffffffffffffff \
780\
7810001 0008 03 000000 \
782" 2], [0], [dnl
783OFPT_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
784])
785AT_CLEANUP
786
1bf6eeb0
SH
787# The flow is formatted with cls_rule_format() for the low-verbosity case.
788AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
789AT_KEYWORDS([ofp-print])
790AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
79103 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 79200 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
793ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
79400 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
79550 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
79680 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
79700 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
79800 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
79900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
800" 2], [0], [dnl
0e197060 801OFPT_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
802], [dnl
803])
804AT_CLEANUP
805
eec25dc1
BP
806# The flow is formatted with ofp10_match_to_string() for the
807# high-verbosity case.
1bf6eeb0 808AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 809AT_KEYWORDS([ofp-print])
1c0b7503 810AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
81101 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
81200 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
81300 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
81400 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
81500 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
816" 3], [0], [dnl
de0f16bc 817OFPT_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
818], [dnl
819ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
820ofp_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
821ofp_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
822])
823AT_CLEANUP
824
1bf6eeb0
SH
825# The flow is formatted with cls_rule_format() for the low-verbosity case.
826AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
827AT_KEYWORDS([ofp-print])
828AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
82903 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 83000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
831ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
83200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
83350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
83480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
83500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
83600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
83700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
838" 2], [0], [dnl
0e197060 839OFPT_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
840], [dnl
841])
842AT_CLEANUP
843
2e1ae200
JR
844# The flow is formatted with cls_rule_format() for the low-verbosity case.
845AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
846AT_KEYWORDS([ofp-print])
847AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
84804 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 84900 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
2e1ae200
JR
850ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
85100 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
85250 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
85380 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
85400 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
85500 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
85600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
857" 2], [0], [dnl
0e197060 858OFPT_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
859], [dnl
860])
861AT_CLEANUP
862
d55b18c8
IY
863AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
864AT_KEYWORDS([ofp-print])
865AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
86603 0e 00 58 52 33 45 02 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 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
87000 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
871c0 a8 03 5c 00 00 00 00 \
872" 2], [0], [dnl
873OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
874], [dnl
875])
876AT_CLEANUP
877
878AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_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 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
88500 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
886c0 a8 4a 7a 00 00 00 00 \
887" 2], [0], [dnl
888OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
889], [dnl
890])
891AT_CLEANUP
892
0d56eaf2
JS
893AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
894AT_KEYWORDS([ofp-print])
895AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
89603 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
89700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
898ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
89900 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
90000 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
9010d 06 00 00 00 00 00 00 \
902" 2], [0], [dnl
903OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
904], [dnl
905])
906AT_CLEANUP
907
908AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
909AT_KEYWORDS([ofp-print])
910AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
91103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
91200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
913ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
91400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
91500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
91611 5d 00 00 00 00 00 00 \
917" 2], [0], [dnl
918OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
919], [dnl
920])
921AT_CLEANUP
922
508a9338
BP
923AT_SETUP([OFPT_FLOW_MOD - OF1.2 - experimenter OXM])
924AT_KEYWORDS([ofp-print])
925AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
92603 0e 00 48 52 33 45 07 00 00 00 00 00 00 00 00 \
92700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
928ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
92900 01 00 14 ff ff 01 0c 00 00 23 20 01 23 45 67 \
9300f ff ff ff 00 00 00 00
931" 2], [0], [dnl
932OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,dp_hash=0x1234567/0xfffffff actions=drop
933], [dnl
934])
935AT_CLEANUP
936
b2a27ddc
BP
937dnl This triggered a buggy "instructions out of order" message earlier.
938AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
939AT_KEYWORDS([ofp-print])
940AT_CHECK([ovs-ofctl ofp-print "\
94104 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
94200 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
943ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
94400 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
945OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
946])
947AT_CLEANUP
948
d55b18c8
IY
949AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
950AT_KEYWORDS([ofp-print])
951AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
95203 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
95300 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
95400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
95600 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
95700 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
958c0 a8 03 5c 00 00 00 00 \
959" 2], [0], [dnl
960OFPST_FLOW reply (OF1.2) (xid=0x52334504):
961 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
962], [dnl
963])
964AT_CLEANUP
965
966AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
967AT_KEYWORDS([ofp-print])
968AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
96903 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
97000 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
97100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97300 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
97400 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
975c0 a8 4a 7a 00 00 00 00 \
976" 2], [0], [dnl
977OFPST_FLOW reply (OF1.2) (xid=0x52334509):
978 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
979], [dnl
980])
981AT_CLEANUP
982
0d56eaf2
JS
983AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
984AT_KEYWORDS([ofp-print])
985AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
98603 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
98700 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
98800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
98900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
99000 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
99100 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
9920d 06 00 00 00 00 00 00 \
993" 2], [0], [dnl
994OFPST_FLOW reply (OF1.2) (xid=0x52334504):
995 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
996], [dnl
997])
998AT_CLEANUP
999
1000AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
1001AT_KEYWORDS([ofp-print])
1002AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
100303 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
100400 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
100500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
100600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
100700 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
100800 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
100911 5d 00 00 00 00 00 00 \
1010" 2], [0], [dnl
1011OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1012 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
1013], [dnl
1014])
1015AT_CLEANUP
1016
9e1fd49b 1017AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
1018AT_KEYWORDS([ofp-print])
1019AT_CHECK([ovs-ofctl ofp-print "\
102001 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
102100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1022" 3], [0], [dnl
9e1fd49b
BP
1023OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
1024 config: PORT_DOWN
1025 mask: PORT_DOWN
1026 advertise: UNCHANGED
1027])
1028AT_CLEANUP
1029
1030AT_SETUP([OFPT_PORT_MOD - OF1.1])
1031AT_KEYWORDS([ofp-print])
1032AT_CHECK([ovs-ofctl ofp-print "\
103302 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
103450 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
103500 00 00 00 00 00 00 00 \
1036" 3], [0], [dnl
1037OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1038 config: PORT_DOWN
1039 mask: PORT_DOWN
fec00620
BP
1040 advertise: UNCHANGED
1041])
1042AT_CLEANUP
1043
bb2bc3c1
SH
1044AT_SETUP([OFPT_PORT_MOD - OF1.2])
1045AT_KEYWORDS([ofp-print])
1046AT_CHECK([ovs-ofctl ofp-print "\
104703 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
104850 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
104900 00 00 00 00 00 00 00 \
1050" 3], [0], [dnl
1051OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1052 config: PORT_DOWN
1053 mask: PORT_DOWN
1054 advertise: UNCHANGED
1055])
1056AT_CLEANUP
1057
2e1ae200
JR
1058AT_SETUP([OFPT_PORT_MOD - OF1.3])
1059AT_KEYWORDS([ofp-print])
1060AT_CHECK([ovs-ofctl ofp-print "\
106104 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
106250 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
106300 00 00 00 00 00 00 00 \
1064" 3], [0], [dnl
1065OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1066 config: PORT_DOWN
1067 mask: PORT_DOWN
1068 advertise: UNCHANGED
1069])
1070AT_CLEANUP
1071
18cc69d9
BP
1072AT_SETUP([OFPT_PORT_MOD - OF1.4])
1073AT_KEYWORDS([ofp-print])
1074AT_CHECK([ovs-ofctl ofp-print "\
107505 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
107650 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
107700 00 00 08 00 00 00 01
1078" 3], [0], [dnl
1079OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1080 config: PORT_DOWN
1081 mask: PORT_DOWN
1082 advertise: 10MB-HD
1083])
1084AT_CLEANUP
1085
918f2b82
AZ
1086AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1087AT_KEYWORDS([ofp-print])
1088AT_CHECK([ovs-ofctl ofp-print "\
108902 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1090" 3], [0], [dnl
1091OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1092])
1093AT_CLEANUP
1094
1095AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1096AT_KEYWORDS([ofp-print])
1097AT_CHECK([ovs-ofctl ofp-print "\
109803 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1099" 3], [0], [dnl
1100OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1101])
1102AT_CLEANUP
1103
1104AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1105AT_KEYWORDS([ofp-print])
1106AT_CHECK([ovs-ofctl ofp-print "\
110704 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1108" 3], [0], [dnl
3c1bb396 1109OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2
918f2b82
AZ
1110])
1111AT_CLEANUP
1112
37ab26e8
BP
1113AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1114AT_KEYWORDS([ofp-print])
1115AT_CHECK([ovs-ofctl ofp-print "\
111605 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1117" 3], [0], [dnl
3c1bb396 1118OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2
37ab26e8
BP
1119])
1120AT_CLEANUP
1121
fec00620
BP
1122AT_SETUP([OFPST_DESC request])
1123AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1124AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1125OFPST_DESC request (xid=0x1):
1126])
1127AT_CLEANUP
1128
1129AT_SETUP([OFPST_DESC reply])
1130AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1131AT_CHECK([ovs-ofctl ofp-print "\
113201 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
113372 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
113400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
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 00 00 00 00 \
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 00 00 00 00 \
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 4f 70 65 6e \
114920 76 53 77 69 74 63 68 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 00 00 00 00 \
115500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116400 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
116530 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
116600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116900 00 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 00 00 00 00 00 00 00 00 00 00 00 00 \
117200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118000 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
118100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118200 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
118300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119800 00 00 00 00 00 00 00 00 00 00 00 \
1199"], [0], [dnl
1200OFPST_DESC reply (xid=0x1):
e0edde6f 1201Manufacturer: Nicira, Inc.
fec00620
BP
1202Hardware: Open vSwitch
1203Software: 1.1.0pre2
1204Serial Num: None
1205DP Description: None
1206])
1207AT_CLEANUP
1208
0157ad3a 1209AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1210AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1211AT_CHECK([ovs-ofctl ofp-print "\
121201 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1213ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121500 00 00 00 ff 00 ff ff \
1216"], [0], [dnl
54ae6fa8 1217OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1218])
1219AT_CLEANUP
1220
0157ad3a
SH
1221AT_SETUP([OFPST_FLOW request - OF1.2])
1222AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1223AT_CHECK([ovs-ofctl ofp-print "\
122403 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1225ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
122600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
122700 01 00 04 00 00 00 00 \
1228"], [0], [dnl
1229OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1230])
1231AT_CLEANUP
1232
2e1ae200
JR
1233AT_SETUP([OFPST_FLOW request - OF1.3])
1234AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1235AT_CHECK([ovs-ofctl ofp-print "\
123604 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1237ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
123800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123900 01 00 04 00 00 00 00 \
1240"], [0], [dnl
1241OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1242])
1243AT_CLEANUP
1244
6ec5f0c5 1245AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1246AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1247AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 124801 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
124900 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
125000 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1251c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1252ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
125300 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
125400 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
125500 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
125600 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1257c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1258ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
125900 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
126000 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
126100 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
126200 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1263c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1264ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
126500 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
126600 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 126700 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
126800 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1269c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 127080 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
127100 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
127200 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
127300 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
127400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127600 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
127700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127800 00 00 00 00 00 00 00 \
fec00620
BP
1279"], [0], [dnl
1280OFPST_FLOW reply (xid=0x4):
b1634591
BP
1281 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
1282 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
1283 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 1284 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 1285 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1286])
1287AT_CLEANUP
1288
6ec5f0c5
SH
1289AT_SETUP([OFPST_FLOW reply - OF1.2])
1290AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1291AT_CHECK([ovs-ofctl ofp-print "\
129203 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
129300 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
129400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
129600 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1297ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
129800 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
129900 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
130005 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
130120 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
130200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
130300 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
130400 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
13050a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
130600 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
130700 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
130800 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
130900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
131100 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
131252 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
131300 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
131400 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
131505 dc 00 00 00 00 00 00 \
1316"], [0], [dnl
1317OFPST_FLOW reply (OF1.2) (xid=0x2):
1318 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
1319 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
1320 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
1321])
1322AT_CLEANUP
1323
617da9cd 1324AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1325AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1326AT_CHECK([ovs-ofctl ofp-print "\
132701 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1328ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
133000 00 00 00 ff 00 ff ff \
1331"], [0], [dnl
54ae6fa8 1332OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1333])
1334AT_CLEANUP
1335
617da9cd
SH
1336AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1337AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1338AT_CHECK([ovs-ofctl ofp-print "\
133903 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1340ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
134100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134200 01 00 04 00 00 00 00 \
1343"], [0], [dnl
1344OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1345])
1346AT_CLEANUP
1347
2e1ae200
JR
1348AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1349AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1350AT_CHECK([ovs-ofctl ofp-print "\
135104 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1352ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
135300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
135400 01 00 04 00 00 00 00 \
1355"], [0], [dnl
1356OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1357])
1358AT_CLEANUP
1359
617da9cd 1360AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1361AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1362AT_CHECK([ovs-ofctl ofp-print "\
136301 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
136400 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
136500 00 00 00 \
1366"], [0], [dnl
1367OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1368])
1369AT_CLEANUP
1370
617da9cd
SH
1371AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1372AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1373AT_CHECK([ovs-ofctl ofp-print "\
137403 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
137500 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
137600 00 00 03 00 00 00 00 \
1377"], [0], [dnl
1378OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1379])
1380AT_CLEANUP
1381
2e1ae200
JR
1382AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1383AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1384AT_CHECK([ovs-ofctl ofp-print "\
138504 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
138600 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
138700 00 00 03 00 00 00 00 \
1388"], [0], [dnl
1389OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1390])
1391AT_CLEANUP
1392
307975da 1393AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1394AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1395AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1396OFPST_TABLE request (xid=0x1):
1397])
1398AT_CLEANUP
1399
307975da
SH
1400AT_SETUP([OFPST_TABLE request - OF1.1])
1401AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1402AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1403OFPST_TABLE request (OF1.1) (xid=0x2):
1404])
1405AT_CLEANUP
1406
1407AT_SETUP([OFPST_TABLE request - OF1.2])
1408AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1409AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1410OFPST_TABLE request (OF1.2) (xid=0x2):
1411])
1412AT_CLEANUP
1413
2e1ae200
JR
1414AT_SETUP([OFPST_TABLE request - OF1.3])
1415AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1416AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1417OFPST_TABLE request (OF1.3) (xid=0x2):
1418])
1419AT_CLEANUP
1420
26df8b3e 1421AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1422AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1423AT_CHECK([ovs-ofctl ofp-print "\
142401 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
142563 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
142600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
142700 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
142800 00 00 00 00 00 00 00 00 00 00 00 \
1429"], [0], [dnl
3c1bb396
BP
1430OFPST_TABLE reply (xid=0x1):
1431 table 0 ("classifier"):
1432 active=11, lookup=0, matched=0
1433 max_entries=1048576
1434 matching:
1435 in_port: exact match or wildcard
1436 eth_src: exact match or wildcard
1437 eth_dst: exact match or wildcard
1438 eth_type: exact match or wildcard
1439 vlan_vid: exact match or wildcard
1440 vlan_pcp: exact match or wildcard
1441 ip_src: exact match or wildcard
1442 ip_dst: exact match or wildcard
1443 nw_proto: exact match or wildcard
1444 nw_tos: exact match or wildcard
1445 tcp_src: exact match or wildcard
1446 tcp_dst: exact match or wildcard
fec00620
BP
1447])
1448AT_CLEANUP
1449
26df8b3e
SH
1450AT_SETUP([OFPST_TABLE reply - OF1.2])
1451AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3c1bb396
BP
1452(tail="
1453 config=controller
1454 max_entries=1000000
1455 instructions (table miss and others):
1456 instructions: write_metadata,goto_table
1457 Write-Actions and Apply-Actions features:
1458 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
1459 matching:
1460 metadata: exact match or wildcard
1461 in_port_oxm: exact match or wildcard
1462 eth_src: exact match or wildcard
1463 eth_dst: exact match or wildcard
1464 eth_type: exact match or wildcard
1465 vlan_vid: exact match or wildcard
1466 vlan_pcp: exact match or wildcard
1467 mpls_label: exact match or wildcard
1468 mpls_tc: exact match or wildcard
1469 ip_src: exact match or wildcard
1470 ip_dst: exact match or wildcard
1471 ipv6_src: exact match or wildcard
1472 ipv6_dst: exact match or wildcard
1473 ipv6_label: exact match or wildcard
1474 nw_proto: exact match or wildcard
1475 ip_dscp: exact match or wildcard
1476 nw_ecn: exact match or wildcard
1477 arp_op: exact match or wildcard
1478 arp_spa: exact match or wildcard
1479 arp_tpa: exact match or wildcard
1480 arp_sha: exact match or wildcard
1481 arp_tha: exact match or wildcard
1482 tcp_src: exact match or wildcard
1483 tcp_dst: exact match or wildcard
1484 udp_src: exact match or wildcard
1485 udp_dst: exact match or wildcard
1486 sctp_src: exact match or wildcard
1487 sctp_dst: exact match or wildcard
1488 icmp_type: exact match or wildcard
1489 icmp_code: exact match or wildcard
1490 icmpv6_type: exact match or wildcard
1491 icmpv6_code: exact match or wildcard
1492 nd_target: exact match or wildcard
1493 nd_sll: exact match or wildcard
1494 nd_tll: exact match or wildcard"
1495 echo "OFPST_TABLE reply (OF1.2) (xid=0x2):
1496 table 0 (\"classifier\"):
1497 active=1, lookup=74614, matched=106024$tail"
26df8b3e
SH
1498 x=1
1499 while test $x -lt 254; do
3c1bb396
BP
1500 printf "
1501 table %d (\"%s\"):
1502 active=0, lookup=0, matched=0$tail
26df8b3e
SH
1503" $x table$x
1504 x=`expr $x + 1`
1505 done
3c1bb396
BP
1506 echo "
1507 table 254 (\"table254\"):
1508 active=2, lookup=0, matched=0$tail") > expout
26df8b3e
SH
1509
1510(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"
1511 pad7="00 00 00 00 00 00 00 "
1512 mid="00 00 00 0f ff ff ff ff \
151300 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
151400 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
151500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151600 00 00 07 00 00 00 00 00 0f 42 40 "
1517 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1518
1519 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1520
1521 x=0
1522 printf "%02x $pad7" $x
1523 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1524 echo -n "$mid 00 00 00 01 "
1525 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1526
1527 x=1
1528 while test $x -lt 254; do
1529 printf "%02x $pad7" $x
1530 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1531 echo -n "$mid 00 00 00 00 $tail "
1532 x=`expr $x + 1`
1533 done
1534
1535 x=254
1536 printf "%02x $pad7" $x
1537 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1538 echo -n "$mid 00 00 00 02 $tail") > in
8b227701 1539AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1540AT_CLEANUP
1541
2e1ae200
JR
1542AT_SETUP([OFPST_TABLE reply - OF1.3])
1543AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1544AT_CHECK([ovs-ofctl ofp-print "\
154504 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
154600 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
154700 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
154800 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1549"], [0], [dnl
3c1bb396
BP
1550OFPST_TABLE reply (OF1.3) (xid=0x1):
1551 table 0:
1552 active=11, lookup=512, matched=256
1553
1554 table 1:
1555 active=12, lookup=513, matched=257
2e1ae200
JR
1556])
1557AT_CLEANUP
1558
f8e4867e 1559AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1560AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1561AT_CHECK([ovs-ofctl ofp-print "\
156201 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
156300 00 00 00 \
1564"], [0], [dnl
e1db42d6 1565OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1566])
1567AT_CLEANUP
1568
f8e4867e
SH
1569AT_SETUP([OFPST_PORT request - 1.1])
1570AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1571AT_CHECK([ovs-ofctl ofp-print "\
157202 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1573ff ff ff ff 00 00 00 00 \
1574"], [0], [dnl
e1db42d6 1575OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1576])
1577AT_CLEANUP
1578
1579AT_SETUP([OFPST_PORT request - 1.2])
1580AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1581AT_CHECK([ovs-ofctl ofp-print "\
158203 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1583ff ff ff ff 00 00 00 00 \
1584"], [0], [dnl
e1db42d6 1585OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1586])
1587AT_CLEANUP
1588
2e1ae200
JR
1589AT_SETUP([OFPST_PORT request - 1.3])
1590AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1591AT_CHECK([ovs-ofctl ofp-print "\
159204 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1593ff ff ff ff 00 00 00 00 \
1594"], [0], [dnl
e1db42d6 1595OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1596])
1597AT_CLEANUP
1598
f8e4867e 1599AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1600AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1601AT_CHECK([ovs-ofctl ofp-print "\
160201 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
160300 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
160400 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
160500 05 71 bc 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 00 00 00 00 00 00 00 00 \
160900 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
161000 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
161100 01 0c 8c 00 00 00 00 00 00 db 1c 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 00 00 00 00 00 00 00 00 00 00 02 00 00 \
161600 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
161700 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
161800 02 23 d4 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 00 00 00 00 00 00 00 00 \
162200 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
162300 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
162400 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
162500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162800 00 00 00 00 00 00 00 00 00 00 00 \
1629"], [0], [dnl
1630OFPST_PORT reply (xid=0x1): 4 ports
1631 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1632 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1633 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1634 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1635 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1636 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1637 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1638 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1639])
1640AT_CLEANUP
1641
f8e4867e
SH
1642AT_SETUP([OFPST_PORT reply - OF1.2])
1643AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1644AT_CHECK([ovs-ofctl ofp-print "\
164503 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
164600 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
164700 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
164800 00 00 00 00 00 2c f8 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 \
165100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
165200 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
165300 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
165400 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
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 00 00 00 00 \
165900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
166000 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
166100 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
166200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166500 00 00 00 00 00 00 00 \
1666"], [0], [dnl
1667OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1668 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1669 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1670 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1671 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1672 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1673 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1674])
1675AT_CLEANUP
1676
65e0be10
BP
1677AT_SETUP([OFPST_PORT reply - OF1.3])
1678AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1679AT_CHECK([ovs-ofctl ofp-print "\
168004 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
168100 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
168200 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
168300 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
168400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168700 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1688ff ff ff fe 00 00 00 00 \
168900 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
169000 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
169100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
169200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
169300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
169400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1695ff ff ff ff ff ff ff ff \
169600 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
169700 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
169800 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
169900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170200 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1703"], [0], [dnl
1704OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1705 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1706 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1707 duration=1.001s
1708 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1709 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1710 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1711 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1712 duration=0.123s
1713])
1714AT_CLEANUP
1715
5469537b
BP
1716AT_SETUP([OFPST_PORT reply - OF1.4])
1717AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1718AT_CHECK([ovs-ofctl ofp-print "\
171905 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
172000 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
172100 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
172200 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
172300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172500 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
172600 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
172700 00 00 00 00 00 00 ff \
1728"], [0], [dnl
1729OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1730 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1731 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1732 duration=1.001s
1733])
1734AT_CLEANUP
1735
64626975 1736AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1737AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1738AT_CHECK([ovs-ofctl ofp-print "\
173901 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1740ff ff ff ff \
1741"], [0], [dnl
7f05e7ab 1742OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1743])
1744AT_CLEANUP
1745
64626975
SH
1746AT_SETUP([OFPST_QUEUE request - OF1.1])
1747AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1748AT_CHECK([ovs-ofctl ofp-print "\
174902 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1750ff ff ff ff ff ff ff ff \
64626975 1751"], [0], [dnl
7f05e7ab 1752OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1753])
1754AT_CLEANUP
1755
1756AT_SETUP([OFPST_QUEUE request - OF1.2])
1757AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1758AT_CHECK([ovs-ofctl ofp-print "\
175903 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1760ff ff ff ff ff ff ff ff \
64626975 1761"], [0], [dnl
7f05e7ab 1762OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1763])
1764AT_CLEANUP
1765
2e1ae200
JR
1766AT_SETUP([OFPST_QUEUE request - OF1.3])
1767AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1768AT_CHECK([ovs-ofctl ofp-print "\
176904 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1770ff ff ff ff ff ff ff ff \
1771"], [0], [dnl
1772OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1773])
1774AT_CLEANUP
1775
64626975 1776AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1777AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1778AT_CHECK([ovs-ofctl ofp-print "\
177901 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
178000 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
178100 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
178200 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
178300 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
178400 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
178500 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
178600 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
178700 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
178800 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
178900 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
179000 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
179100 00 00 00 00 00 00 00 00 00 00 00 \
1792"], [0], [dnl
1793OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1794 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1795 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1796 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1797 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1798 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1799 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1800])
1801AT_CLEANUP
1802
64626975
SH
1803AT_SETUP([OFPST_QUEUE reply - OF1.1])
1804AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1805AT_CHECK([ovs-ofctl ofp-print "\
180602 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
180700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
180800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
180900 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
181000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181100 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
181200 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
181300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
181400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
181600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
181800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1819"], [0], [dnl
1820OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1821 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1822 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1823 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1824 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1825 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1826 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1827])
1828AT_CLEANUP
1829
1830AT_SETUP([OFPST_QUEUE reply - OF1.2])
1831AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1832AT_CHECK([ovs-ofctl ofp-print "\
183303 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
183400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
183500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
183600 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
183700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183800 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
183900 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
184000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
184100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
184300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
184400 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
184500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1846"], [0], [dnl
1847OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1848 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1849 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1850 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1851 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1852 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1853 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1854])
1855AT_CLEANUP
be0c30df
BP
1856
1857AT_SETUP([OFPST_QUEUE reply - OF1.3])
1858AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1859AT_CHECK([ovs-ofctl ofp-print "\
186004 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
186100 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
186200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
186300 00 00 64 1d cd 65 00 \
186400 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
186500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186600 00 00 64 1d cd 65 00 \
186700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
186800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
186900 00 00 64 1d cd 65 00 \
187000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
187100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
187200 00 00 64 1d cd 65 00 \
187300 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
187400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
187500 00 00 64 1d cd 65 00 \
187600 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
187700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1878ff ff ff ff ff ff ff ff \
1879"], [0], [dnl
1880OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1881 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1882 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1883 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1884 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1885 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1886 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1887])
1888AT_CLEANUP
1889
1bb2cdbe
BP
1890AT_SETUP([OFPST_QUEUE reply - OF1.4])
1891AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1892AT_CHECK([ovs-ofctl ofp-print "\
189305 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
189400 30 00 00 00 00 00 00 \
189500 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
189600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
189700 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
189800 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
189900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
190000 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
190100 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
190200 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
190300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
190400 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
190500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
190600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
190700 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
190800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
190900 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191000 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
191100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1912ff ff ff ff ff ff ff ff \
1913"], [0], [dnl
1914OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
1915 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1916 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1917 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1918 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1919 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
1920 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1921])
1922AT_CLEANUP
1923
7395c052
NZ
1924AT_SETUP([OFPST_GROUP request])
1925AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1926AT_CHECK([ovs-ofctl ofp-print "\
192702 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1928ff ff ff ff 00 00 00 00 \
1929"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1930])
1931AT_CLEANUP
1932
1933AT_SETUP([OFPST_GROUP reply - OF1.1])
1934AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1935AT_CHECK([ovs-ofctl ofp-print "\
193602 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
193700 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
193800 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
193900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
194000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
194100 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
194200 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
194300 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
194400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
194500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1946"], [0], [dnl
1947OFPST_GROUP reply (OF1.1) (xid=0x2):
1948 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
1949 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
1950])
1951AT_CLEANUP
1952
1953AT_SETUP([OFPST_GROUP reply - OF1.3])
1954AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1955AT_CHECK([ovs-ofctl ofp-print "\
195604 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
195700 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
195800 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
195900 00 00 12 1d cd 65 00 \
196000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
196100 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
196200 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
196300 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
196400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
196500 00 00 10 1d cd 65 00 \
196600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
196700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1968"], [0], [dnl
1969OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1970 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
1971 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
1972])
1973AT_CLEANUP
1974
19187a71 1975AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
1976AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1977AT_CHECK([ovs-ofctl ofp-print "\
197802 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
1979"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
1980])
1981AT_CLEANUP
1982
1983AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
1984AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1985AT_CHECK([ovs-ofctl ofp-print "\
198606 12 00 14 00 00 00 02 00 07 00 00 00 00 00 00 \
198700 00 00 01
1988"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
1989])
1990AT_CLEANUP
1991
76c41209 1992AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
7395c052
NZ
1993AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1994AT_CHECK([ovs-ofctl ofp-print "\
199502 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
199600 68 01 00 00 00 20 00 \
199700 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
199800 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
199900 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
200000 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
200100 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
200200 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2003"], [0], [dnl
2004OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2005 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
2006])
2007AT_CLEANUP
2008
76c41209
SH
2009AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2010AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2011AT_CHECK([ovs-ofctl ofp-print "\
201206 13 00 98 00 00 00 02 00 07 00 00 00 00 00 00 \
201300 88 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
201400 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
201500 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
201600 01 00 08 00 00 00 01 \
201700 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
201800 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
201900 01 00 08 00 00 00 02 \
202000 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
202100 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
202200 01 00 08 00 00 00 03 \
2023"], [0], [dnl
2024OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
2025 group_id=8192,type=select,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2026])
2027AT_CLEANUP
2028
7395c052
NZ
2029AT_SETUP([OFPST_GROUP_FEATURES request])
2030AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2031AT_CHECK([ovs-ofctl ofp-print "\
203203 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2033"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2034])
2035AT_CLEANUP
2036
2037AT_SETUP([OFPST_GROUP_FEATURES reply])
2038AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2039AT_CHECK([ovs-ofctl ofp-print "\
204003 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
204100 00 00 0f 00 00 00 0f \
204200 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 204300 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
2044"], [0], [dnl
2045OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2046 Group table:
2047 Types: 0xf
2048 Capabilities: 0xf
08d1e234
BP
2049 all group:
2050 max_groups=0x1
2051 actions: output
2052 select group:
2053 max_groups=0x2
2054 actions: output push_vlan
2055 indirect group:
2056 max_groups=0x3
2057 actions: output strip_vlan push_vlan
2058 fast failover group:
2059 max_groups=0x4
2060 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
2061])
2062AT_CLEANUP
2063
2064AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2065AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2066AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2067OFPST_PORT_DESC request (xid=0x1): port=ANY
2068])
2069AT_CLEANUP
2070
2071AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2072AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2073AT_CHECK([ovs-ofctl ofp-print "\
207406 12 00 14 00 00 00 02 00 0d 00 00 00 00 00 00 \
207500 00 00 05"], [0], [dnl
2076OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2077])
2078AT_CLEANUP
2079
2be393ed
JP
2080AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2081AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2082AT_CHECK([ovs-ofctl ofp-print "\
208301 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
208400 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
208500 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
208600 00 02 8f 00 00 02 8f 00 00 00 00 \
2087"], [0], [dnl
2088OFPST_PORT_DESC reply (xid=0x0):
2089 3(eth0): addr:50:54:00:00:00:01
2090 config: PORT_DOWN
2091 state: LINK_DOWN
2092 current: 100MB-FD AUTO_NEG
2093 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2094 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2095 speed: 100 Mbps now, 100 Mbps max
2096])
2097AT_CLEANUP
2098
8c3cc785
BP
2099AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2100AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2101AT_CHECK([ovs-ofctl ofp-print "\
210205 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
210300 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
210465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
210500 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
210600 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
210700 01 86 a0 00 01 86 a0 \
2108"], [0], [dnl
2109OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2110 3(eth0): addr:50:54:00:00:00:01
2111 config: 0
2112 state: 0
2113 current: 100MB-FD AUTO_NEG
2114 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2115 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2116 speed: 100 Mbps now, 100 Mbps max
2117])
2118AT_CLEANUP
2119
638a19b0
JR
2120AT_SETUP([OFPT_METER_MOD request - OF1.3])
2121AT_KEYWORDS([ofp-print])
2122AT_CHECK([ovs-ofctl ofp-print "\
212304 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
212400 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2125"], [0], [dnl
2126OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2127type=drop rate=1024 burst_size=128
2128])
2129AT_CLEANUP
2130
f99d6aa0
BP
2131AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2132AT_KEYWORDS([ofp-print])
2133AT_CHECK([ovs-ofctl ofp-print "\
213404 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
213500 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2136"], [0], [dnl
2137OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2138])
2139AT_CLEANUP
2140
142cdb01
BP
2141AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2142AT_KEYWORDS([ofp-print])
2143AT_CHECK([ovs-ofctl ofp-print "\
214404 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2145"], [0], [dnl
2146OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2147])
2148AT_CLEANUP
2149
13b1febe
BP
2150AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2151AT_KEYWORDS([ofp-print])
2152AT_CHECK([ovs-ofctl ofp-print "\
215304 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
215400 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2155"], [0], [dnl
2156OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2157])
2158AT_CLEANUP
2159
638a19b0
JR
2160AT_SETUP([OFPST_METER request - OF1.3])
2161AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2162AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2163OFPST_METER request (OF1.3) (xid=0x2): meter=1
2164])
2165AT_CLEANUP
2166
2167AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2168AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2169AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2170OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2171])
2172AT_CLEANUP
2173
2174AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2175AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2176AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2177OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2178])
2179AT_CLEANUP
2180
2181AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2182AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2183AT_CHECK([ovs-ofctl ofp-print "\
218404 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 218500 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2186"], [0], [dnl
2187OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2188max_meter:65536 max_bands:16 max_color:2
2189band_types: drop dscp_remark
2190capabilities: kbps pktps burst stats
2191])
2192AT_CLEANUP
2193
2194AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2195AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2196AT_CHECK([ovs-ofctl ofp-print "\
219704 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
219800 28 00 05 00 00 00 01 \
219900 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
220000 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
220100 18 00 09 00 00 00 02 \
220200 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2203"], [0], [dnl
2204OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2205meter=1 kbps burst bands=
2206type=drop rate=65536 burst_size=1280
2207type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2208
2209meter=2 kbps stats bands=
2210type=drop rate=131072
2211])
2212AT_CLEANUP
2213
2214AT_SETUP([OFPST_METER reply - OF1.3])
2215AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2216AT_CHECK([ovs-ofctl ofp-print "\
221704 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
221800 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
221900 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 222000 00 01 8a 0a 6e 23 44 \
638a19b0
JR
222100 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
222200 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
222300 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
222400 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 222500 00 01 87 0a 23 6e 44 \
638a19b0
JR
222600 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2227"], [0], [dnl
2228OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2229meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
22300: packet_count:126 byte_count:13363
22311: packet_count:231 byte_count:37934
2232
0445637d 2233meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
22340: packet_count:42 byte_count:1075
2235])
2236AT_CLEANUP
2237
5deff5aa
AW
2238AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2239AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2240AT_CHECK([ovs-ofctl ofp-print "\
224104 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
224209 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
224300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
224400 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2245ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
224600 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
224700 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
224800 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
224900 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
225000 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
225100 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
225200 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
22530d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
22541d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
22552d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
22563d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
22574d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
22585d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
22596d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
22607d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
22618d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
22629d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2263ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2264bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2265cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2266dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2267ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2268fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
226905 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
227015 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
227125 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
227235 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
227345 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
227455 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
227565 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
227675 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
227785 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
227895 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2279a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2280b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2281c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2282d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2283e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2284f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
228500 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
228600 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
228700 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
228800 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
228900 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
229000 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
229100 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
229200 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
229300 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
229400 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
229500 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
229600 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
229700 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
229800 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
229900 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
230000 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
230100 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
230200 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
230300 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
230400 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
230500 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
230600 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
230700 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
230800 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
230900 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
231000 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
231100 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
231200 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
231300 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
231400 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
231500 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
231600 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
231700 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
231800 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
231900 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
232080 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
232100 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
232200 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
232380 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
232480 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
232580 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
232680 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
232780 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
232880 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
232980 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
233080 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
233180 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
233280 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
233300 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
233480 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
233500 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
233600 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
233780 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
233880 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
233980 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
234080 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
234180 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
234280 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
234380 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
234480 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
234580 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
234680 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
234700 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
234880 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
234900 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
235000 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
235180 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
235280 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
235380 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
235480 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
235580 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
235680 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
235780 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
235800 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
235980 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
236000 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
236100 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
236200 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
236380 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
236480 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
236500 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
236680 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
236780 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
236800 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
236980 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
237000 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
237100 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
237280 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
237380 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
237480 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
237580 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
237680 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
237780 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
237880 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
237900 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
238080 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
238100 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
238200 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
238300 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
238480 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
238580 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
238600 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
238780 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
238880 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2389"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
3c1bb396 2390 table 0 ("table0"):
5deff5aa 2391 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2392 max_entries=1000000
2393 instructions (table miss and others):
2394 next tables: 1-253
2395 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2396 Write-Actions and Apply-Actions features:
08d1e234 2397 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 2398 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
2399 matching:
2400 tun_id: exact match or wildcard
2401 tun_src: exact match or wildcard
2402 tun_dst: exact match or wildcard
2403 metadata: exact match or wildcard
2404 in_port: exact match or wildcard
2405 in_port_oxm: exact match or wildcard
2406 pkt_mark: exact match or wildcard
2407 reg0: exact match or wildcard
2408 reg1: exact match or wildcard
2409 reg2: exact match or wildcard
2410 reg3: exact match or wildcard
2411 reg4: exact match or wildcard
2412 reg5: exact match or wildcard
2413 reg6: exact match or wildcard
2414 reg7: exact match or wildcard
2415 eth_src: exact match or wildcard
2416 eth_dst: exact match or wildcard
2417 eth_type: exact match or wildcard
2418 vlan_tci: exact match or wildcard
2419 vlan_vid: exact match or wildcard
2420 vlan_pcp: exact match or wildcard
2421 mpls_label: exact match or wildcard
2422 mpls_tc: exact match or wildcard
2423 mpls_bos: exact match or wildcard
2424 ip_src: exact match or wildcard
2425 ip_dst: exact match or wildcard
2426 ipv6_src: exact match or wildcard
2427 ipv6_dst: exact match or wildcard
2428 ipv6_label: exact match or wildcard
2429 nw_proto: exact match or wildcard
2430 nw_tos: exact match or wildcard
2431 ip_dscp: exact match or wildcard
2432 nw_ecn: exact match or wildcard
2433 nw_ttl: exact match or wildcard
2434 ip_frag: exact match or wildcard
2435 arp_op: exact match or wildcard
2436 arp_spa: exact match or wildcard
2437 arp_tpa: exact match or wildcard
2438 arp_sha: exact match or wildcard
2439 arp_tha: exact match or wildcard
2440 tcp_src: exact match or wildcard
2441 tcp_dst: exact match or wildcard
2442 tcp_flags: exact match or wildcard
2443 udp_src: exact match or wildcard
2444 udp_dst: exact match or wildcard
2445 sctp_src: exact match or wildcard
2446 sctp_dst: exact match or wildcard
2447 icmp_type: exact match or wildcard
2448 icmp_code: exact match or wildcard
2449 icmpv6_type: exact match or wildcard
2450 icmpv6_code: exact match or wildcard
2451 nd_target: exact match or wildcard
2452 nd_sll: exact match or wildcard
2453 nd_tll: exact match or wildcard
2454])
2455AT_CLEANUP
2456
58cf43df 2457AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2458AT_KEYWORDS([ofp-print])
2459AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2460OFPT_BARRIER_REQUEST (xid=0x1):
2461])
2462AT_CLEANUP
2463
58cf43df
SH
2464AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2465AT_KEYWORDS([ofp-print])
2466AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2467OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2468])
2469AT_CLEANUP
2470
2471AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2472AT_KEYWORDS([ofp-print])
2473AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2474OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2475])
2476AT_CLEANUP
2477
2e1ae200
JR
2478AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2479AT_KEYWORDS([ofp-print])
2480AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2481OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2482])
2483AT_CLEANUP
2484
58cf43df 2485AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2486AT_KEYWORDS([ofp-print])
2487AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2488OFPT_BARRIER_REPLY (xid=0x1):
2489])
2490AT_CLEANUP
2491
2e1ae200 2492AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2493AT_KEYWORDS([ofp-print])
2494AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2495OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2496])
2497AT_CLEANUP
2498
2e1ae200 2499AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2500AT_KEYWORDS([ofp-print])
2501AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2502OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2503])
2504AT_CLEANUP
2505
2e1ae200
JR
2506AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2507AT_KEYWORDS([ofp-print])
2508AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2509OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2510])
2511AT_CLEANUP
2512
e8f9a7bb
VG
2513AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2514AT_KEYWORDS([ofp-print])
2ffc8767 2515AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2516OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2517])
2518AT_CLEANUP
2519
2520AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2521AT_KEYWORDS([ofp-print])
2522AT_CHECK([ovs-ofctl ofp-print "\
252303 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2524OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2525])
2526AT_CLEANUP
2527
2528AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2529AT_KEYWORDS([ofp-print])
2ffc8767 2530AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
253100 01 00 00 00 00 00 00 \
253200 00 55 55 00 28 00 00 \
253300 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
253400 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
253500 00 44 44 00 08 00 00 \
2536"], [0], [dnl
2537OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2538queue 21845: min_rate:50.0% max_rate:75.0%
2539queue 17476:
2540])
2541AT_CLEANUP
2542
2543AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2544AT_KEYWORDS([ofp-print])
2545AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
254600 00 00 01 00 00 00 00 \
254700 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
254800 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
254900 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
255000 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2551"], [0], [dnl
2552OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2553queue 21845: min_rate:50.0% max_rate:75.0%
2554queue 17476:
2555])
2556AT_CLEANUP
2e1ae200
JR
2557
2558AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2559AT_KEYWORDS([ofp-print])
2560AT_CHECK([ovs-ofctl ofp-print "\
256104 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
256200 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2563"], [0], [dnl
2564OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2565 master:
2566 PACKET_IN: no_match invalid_ttl 12
2567 PORT_STATUS: add delete
2568 FLOW_REMOVED: (off)
2569
2570 slave:
2571 PACKET_IN: no_match action invalid_ttl 12
2572 PORT_STATUS: add delete modify
2573 FLOW_REMOVED: idle hard
2574])
2575AT_CLEANUP
2576
6ea4776b
JR
2577AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2578AT_KEYWORDS([ofp-print])
2579AT_CHECK([ovs-ofctl ofp-print "\
258003 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
258100 00 00 00 00 00 00 03 \
2582"], [0], [dnl
2583OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2584])
2585AT_CLEANUP
2586
2587AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2588AT_KEYWORDS([ofp-print])
2589AT_CHECK([ovs-ofctl ofp-print "\
259003 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
259100 00 00 00 00 00 00 00 \
2592"], [0], [dnl
2593OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2594])
2595AT_CLEANUP
2596
fec00620
BP
2597AT_SETUP([NXT_ROLE_REQUEST])
2598AT_KEYWORDS([ofp-print])
2599AT_CHECK([ovs-ofctl ofp-print "\
260001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
260100 00 00 01 \
2602"], [0], [dnl
2603NXT_ROLE_REQUEST (xid=0x2): role=master
2604])
2605AT_CLEANUP
2606
6ea4776b
JR
2607AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2608AT_KEYWORDS([ofp-print])
2609AT_CHECK([ovs-ofctl ofp-print "\
261003 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 261112 34 56 78 ab cd ef 90 \
6ea4776b 2612"], [0], [dnl
147cc9d3 2613OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2614])
2615AT_CLEANUP
2616
fec00620
BP
2617AT_SETUP([NXT_ROLE_REPLY])
2618AT_KEYWORDS([ofp-print])
2619AT_CHECK([ovs-ofctl ofp-print "\
262001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
262100 00 00 02 \
2622"], [0], [dnl
2623NXT_ROLE_REPLY (xid=0x2): role=slave
2624])
2625AT_CLEANUP
2626
00467f73
AC
2627AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2628AT_KEYWORDS([ofp-print])
2629AT_CHECK([ovs-ofctl ofp-print "\
263005 1e 00 18 00 00 00 0a \
263100 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2632"], [0], [dnl
9620f50c 2633OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2634])
2635AT_CLEANUP
2636
2637AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2638AT_KEYWORDS([ofp-print])
2639AT_CHECK([ovs-ofctl ofp-print "\
264005 1e 00 18 00 00 00 0a \
264100 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2642"], [0], [dnl
9620f50c 2643OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2644])
2645AT_CLEANUP
2646
2647AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2648AT_KEYWORDS([ofp-print])
2649AT_CHECK([ovs-ofctl ofp-print "\
265005 1e 00 18 00 00 00 0a \
265100 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2652"], [0], [dnl
9620f50c 2653OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2654])
2655AT_CLEANUP
2656
54834960
EJ
2657AT_SETUP([NXT_SET_PACKET_IN])
2658AT_KEYWORDS([ofp-print])
2659AT_CHECK([ovs-ofctl ofp-print "\
266001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
266100 00 00 01 \
2662"], [0], [dnl
2663NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2664])
2665AT_CLEANUP
2666
2667AT_SETUP([NXT_PACKET_IN])
2668AT_KEYWORDS([ofp-print])
2669AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 267001 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2671ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 267200 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
267320 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
267400 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
267500 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 267600 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2677ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
267880 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
267900 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 268000 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
268131 6d 00 00 00 00 00 00 00 00 \
2682"], [0], [dnl
42edbe39 2683NXT_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)
78c9486d 2684tcp,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
2685])
2686AT_CLEANUP
2687
b4ccee75
SH
2688AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2689AT_KEYWORDS([ofp-print])
2690AT_CHECK([ovs-ofctl ofp-print "\
269101 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2692ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
269300 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
269420 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
269500 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
269600 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
269700 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2698ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
269980 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
270000 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 270100 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
270231 6d 00 00 00 00 00 00 00 00 \
2703" 3], [0], [dnl
2704NXT_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)
78c9486d 2705tcp,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
270600000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
270700000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
270800000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 270900000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2710])
2711AT_CLEANUP
2712
80d5aefd
BP
2713AT_SETUP([NXT_SET_ASYNC_CONFIG])
2714AT_KEYWORDS([ofp-print])
2715AT_CHECK([ovs-ofctl ofp-print "\
271601 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
271700 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
271800 00 00 00 00 00 00 03 \
2719"], [0], [dnl
2720NXT_SET_ASYNC_CONFIG (xid=0x0):
2721 master:
2722 PACKET_IN: no_match invalid_ttl 12
2723 PORT_STATUS: add delete
2724 FLOW_REMOVED: (off)
2725
2726 slave:
2727 PACKET_IN: no_match action invalid_ttl 12
2728 PORT_STATUS: add delete modify
2729 FLOW_REMOVED: idle hard
2730])
2731AT_CLEANUP
2732
a7349929
BP
2733AT_SETUP([NXT_SET_CONTROLLER_ID])
2734AT_KEYWORDS([ofp-print])
2735AT_CHECK([ovs-ofctl ofp-print "\
273601 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
273700 00 00 00 00 00 00 7b \
2738"], [0], [dnl
2739NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2740])
2741AT_CLEANUP
2742
2b07c8b1
BP
2743AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2744AT_KEYWORDS([ofp-print])
2745AT_CHECK([ovs-ofctl ofp-print "\
274601 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
274701 02 30 40 \
2748"], [0], [dnl
2749NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2750])
2751AT_CLEANUP
2752
2753AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2754AT_KEYWORDS([ofp-print])
2755AT_CHECK([ovs-ofctl ofp-print "\
275601 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2757"], [0], [dnl
2758NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2759])
2760AT_CLEANUP
2761
2762AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2763AT_KEYWORDS([ofp-print])
2764AT_CHECK([ovs-ofctl ofp-print "\
276501 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2766"], [0], [dnl
2767NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2768])
2769AT_CLEANUP
2770
fec00620
BP
2771AT_SETUP([NXT_SET_FLOW_FORMAT])
2772AT_KEYWORDS([ofp-print])
2773AT_CHECK([ovs-ofctl ofp-print "\
277401 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
277500 00 00 02 \
2776"], [0], [dnl
2777NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2778])
2779AT_CLEANUP
2780
2781# The flow is formatted with cls_rule_format() for the low-verbosity case.
2782AT_SETUP([NXT_FLOW_MOD, low verbosity])
2783AT_KEYWORDS([ofp-print])
2784AT_CHECK([ovs-ofctl ofp-print "\
278501 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
278600 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2787ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
278800 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
278900 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
279000 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2791" 2], [0], [dnl
de0f16bc 2792NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2793])
2794AT_CLEANUP
2795
eec25dc1
BP
2796# The flow is formatted with ofp10_match_to_string() for the
2797# low-verbosity case.
fec00620
BP
2798AT_SETUP([NXT_FLOW_MOD, high verbosity])
2799AT_KEYWORDS([ofp-print])
2800AT_CHECK([ovs-ofctl ofp-print "\
280101 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
280200 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2803ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
280400 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
280500 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
280600 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2807" 3], [0], [dnl
de0f16bc 2808NXT_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
2809])
2810AT_CLEANUP
2811
76c41209 2812AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
2813AT_KEYWORDS([ofp-print])
2814AT_CHECK([ovs-ofctl ofp-print "\
281502 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
281600 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
281700 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
281800 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
281900 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
282000 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
282100 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2822"], [0], [dnl
2823OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2824 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
2825])
2826AT_CLEANUP
2827
76c41209
SH
2828AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
2829AT_KEYWORDS([ofp-print])
2830AT_CHECK([ovs-ofctl ofp-print "\
283106 0f 00 90 11 22 33 44 00 00 01 00 87 65 43 21 \
283200 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
283300 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
283400 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
283500 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
283600 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
283700 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
283800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
283900 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
2840"], [0], [dnl
2841OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
2842 ADD group_id=2271560481,type=select,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2843])
2844AT_CLEANUP
2845
2846AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
2847AT_KEYWORDS([ofp-print])
2848AT_CHECK([ovs-ofctl ofp-print "\
284906 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
285000 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
285100 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
285200 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
285300 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
285400 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
285500 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
285600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
285700 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
2858"], [0], [dnl
2859OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
2860 INSERT_BUCKET command_bucket_id:first,group_id=2271560481,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2861])
2862AT_CLEANUP
2863
fec00620
BP
2864AT_SETUP([NXT_FLOW_REMOVED])
2865AT_KEYWORDS([ofp-print])
2866AT_CHECK([ovs-ofctl ofp-print "\
286701 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 286800 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
286901 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
287000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
287102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
287200 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
28731e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2874c0 a8 00 02 00 00 00 00 \
2875"], [0], [dnl
745bfd5e 2876NXT_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
2877])
2878AT_CLEANUP
2879
a1a7d333
BP
2880AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2881AT_KEYWORDS([ofp-print])
2882AT_CHECK([ovs-ofctl ofp-print "\
288301 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
288401 00 00 00 00 00 00 00 \
2885"], [0], [dnl
2886NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2887])
2888AT_CLEANUP
2889
fec00620
BP
2890AT_SETUP([NXST_FLOW request])
2891AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2892AT_CHECK([ovs-ofctl ofp-print "\
289301 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
289400 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2895"], [0], [dnl
54ae6fa8 2896NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2897])
2898AT_CLEANUP
2899
2900AT_SETUP([NXST_FLOW reply])
2901AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2902AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 290301 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
290400 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
290502 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
290600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
290700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
290802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
290900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29100a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2911a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
291214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
291300 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 291400 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
291500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
291600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
291700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
291800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2919a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
292000 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
292100 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 292233 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
292300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
292400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
292502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
292600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29270a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2928a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
292914 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
293000 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 293100 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
293200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
293300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
293400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
293500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2936a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
293700 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
293800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 293934 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
294000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
294100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
294202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
294300 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29440a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2945a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
294614 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
294700 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
294800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
294900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
295000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
295100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
295200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2953a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
295400 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
295500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
295602 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
295700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
295800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
295902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
296000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29610a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2962a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
296314 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
296400 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
296500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
296600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
296700 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
296800 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
296900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2970a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
297100 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
297200 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
297327 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
297400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
297500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
297602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
297700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29780a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2979a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
298014 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
298100 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
298200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
298300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
298400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
298500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
298600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2987a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
298800 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
298900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
29900a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
299100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
299200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
299302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
299400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29950a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2996a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
299714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
299800 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
299900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
300000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
300100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
300200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
300300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3004a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
300500 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
300600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
300704 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
300800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
300900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
301002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
301100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30120a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3013a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
301414 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
301500 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
301600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
301700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
301800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
301900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
302000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3021a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
302200 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
302300 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
30242e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
302500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
302600 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
302700 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3028ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
302900 00 00 00 00 00 00 05 \
05b8f1c2
BP
303000 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
303100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
303200 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3033"], [0],
3034[[NXST_FLOW reply (xid=0x4):
b9718b7b 3035 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 3036 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
3037 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
3038 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 3039 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 3040 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 3041 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
3042 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
3043 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
3044 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
3045 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
3046 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
3047 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
3048 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
3049 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 3050 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3051]])
3052AT_CLEANUP
3053
3054AT_SETUP([NXST_AGGREGATE request])
3055AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3056AT_CHECK([ovs-ofctl ofp-print "\
305701 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
305800 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3059"], [0], [dnl
54ae6fa8 3060NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
3061])
3062AT_CLEANUP
3063
3064AT_SETUP([NXST_AGGREGATE reply])
3065AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3066AT_CHECK([ovs-ofctl ofp-print "\
306701 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
306800 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
306900 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3070"], [0], [dnl
3071NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3072])
3073AT_CLEANUP
2b07c8b1
BP
3074
3075AT_SETUP([NXST_FLOW_MONITOR request])
3076AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3077AT_CHECK([ovs-ofctl ofp-print "\
307801 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
307900 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
308000 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3081"], [0], [dnl
3082NXST_FLOW_MONITOR request (xid=0x4):
3083 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3084 id=8192 flags=delete table=2 in_port=1
3085])
3086AT_CLEANUP
3087
3088AT_SETUP([NXST_FLOW_MONITOR reply])
3089AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3090AT_CHECK([ovs-ofctl ofp-print "\
309101 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 309200 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
309300 00 00 02 00 01 00 00 \
309400 08 00 03 00 01 86 a0 \
3095"], [0], [dnl
3096NXST_FLOW_MONITOR reply (xid=0x4):
3097 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3098 event=ABBREV xid=0x186a0
3099])
3100AT_CLEANUP
777af88d
AC
3101
3102
3103AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3104AT_KEYWORDS([ofp-print])
3105AT_CHECK([ovs-ofctl ofp-print "\
310605 21 00 10 00 00 00 00 \
310700 00 00 01 00 00 00 01 \
3108"], [0], [dnl
3109OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3110 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3111])
3112AT_CLEANUP
3113
3114AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3115AT_KEYWORDS([ofp-print])
3116AT_CHECK([ovs-ofctl ofp-print "\
311705 21 00 10 00 00 00 00 \
311800 00 00 01 00 00 00 02 \
3119"], [0], [dnl
3120OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3121 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3122])
3123AT_CLEANUP
3124
3125AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3126AT_KEYWORDS([ofp-print])
3127AT_CHECK([ovs-ofctl ofp-print "\
312805 21 00 10 00 00 00 00 \
312900 00 00 01 00 00 00 03 \
3130"], [0], [dnl
3131OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3132 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3133])
3134AT_CLEANUP
3135
3136AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
3137AT_KEYWORDS([ofp-print])
3138AT_CHECK([ovs-ofctl ofp-print "\
313905 21 00 10 00 00 00 00 \
314000 00 00 01 00 01 00 01 \
3141"], [0], [dnl
3142OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3143 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3144])
3145AT_CLEANUP
3146
3147AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
3148AT_KEYWORDS([ofp-print])
3149AT_CHECK([ovs-ofctl ofp-print "\
315005 21 00 10 00 00 00 00 \
315100 00 00 01 00 02 00 01 \
3152"], [0], [dnl
3153OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3154 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3155])
3156AT_CLEANUP
3157
3158AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3159AT_KEYWORDS([ofp-print])
3160AT_CHECK([ovs-ofctl ofp-print "\
316105 21 00 10 00 00 00 00 \
316200 00 00 01 00 03 00 01 \
3163"], [0], [dnl
3164OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3165 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3166])
3167AT_CLEANUP
3168
3169AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3170AT_KEYWORDS([ofp-print])
3171AT_CHECK([ovs-ofctl ofp-print "\
317205 21 00 10 00 00 00 00 \
317300 00 00 01 00 04 00 01 \
3174"], [0], [dnl
3175OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3176 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3177])
3178AT_CLEANUP
3179
3180AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3181AT_KEYWORDS([ofp-print])
3182AT_CHECK([ovs-ofctl ofp-print "\
318305 21 00 10 00 00 00 00 \
318400 00 00 01 00 05 00 01 \
3185"], [0], [dnl
3186OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3187 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3188])
3189AT_CLEANUP
3190
3191AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3192AT_KEYWORDS([ofp-print])
3193AT_CHECK([ovs-ofctl ofp-print "\
319405 21 00 10 00 00 00 00 \
319500 00 00 01 00 06 00 01 \
3196"], [0], [dnl
3197OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3198 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3199])
3200AT_CLEANUP
3201
3202AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3203AT_KEYWORDS([ofp-print])
3204AT_CHECK([ovs-ofctl ofp-print "\
320505 21 00 10 00 00 00 00 \
320600 00 00 01 00 07 00 01 \
3207"], [0], [dnl
3208OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3209 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3210])
3211AT_CLEANUP
3212
3213AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - OFPT_HELLO])
3214AT_KEYWORDS([ofp-print])
3215AT_CHECK([ovs-ofctl ofp-print "\
321605 22 00 20 00 00 00 00 \
321700 00 00 01 00 01 00 01 02 00 00 08 00 00 00 00 \
321800 00 00 00 00 00 00 00 \
3219"], [0], [dnl
3220OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0):
3221 bundle_id=0x1 flags=atomic
3222OFPT_HELLO (OF1.1) (xid=0x0):
3223 version bitmap: 0x01, 0x02
3224])
3225AT_CLEANUP