]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
pinsched: Remove obsolete ofpbuf_trim().
[mirror_ovs.git] / tests / ofp-print.at
CommitLineData
fec00620
BP
1AT_BANNER([ofp-print])
2
3AT_SETUP([empty])
4AT_KEYWORDS([ofp-print])
5AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6])
7AT_CLEANUP
8
9AT_SETUP([too short])
10AT_KEYWORDS([ofp-print])
11AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12OpenFlow packet too short (only 2 bytes):
1300000000 aa bb |.. |
14])
15AT_CLEANUP
16
17AT_SETUP([wrong OpenFlow version])
18AT_KEYWORDS([ofp-print])
90bf1e07
BP
19AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20 [0], [dnl
21***decode error: OFPBRC_BAD_TYPE***
2200000000 00 bb 00 08 ee ff 00 11- |........ |
982697a4 23], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187)
fec00620
BP
24])
25AT_CLEANUP
26
27AT_SETUP([truncated message])
28AT_KEYWORDS([ofp-print])
f25b4a81 29AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl
fec00620 30(***truncated to 8 bytes from 52445***)
f25b4a81 3100000000 01 10 cc dd ee ff 00 11- |........ |
fec00620
BP
32])
33AT_CLEANUP
34
35AT_SETUP([message only uses part of buffer])
36AT_KEYWORDS([ofp-print])
f25b4a81 37AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl
fec00620 38(***only uses 9 bytes out of 10***)
f25b4a81 3900000000 01 10 00 09 ee ff 00 11-22 33 |........"3 |
fec00620
BP
40])
41# "
42AT_CLEANUP
43
44AT_SETUP([OFPT_HELLO - ordinary])
45AT_KEYWORDS([ofp-print])
46AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47OFPT_HELLO (xid=0x0):
de6c85b0 48 version bitmap: 0x01
fec00620
BP
49])
50AT_CLEANUP
51
52AT_SETUP([OFPT_HELLO with extra data])
53AT_KEYWORDS([ofp-print])
54AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
55[dnl
56OFPT_HELLO (xid=0x0):
de6c85b0
SH
57 version bitmap: 0x01
58 unknown data in hello:
5900000000 01 00 00 13 00 00 00 00-65 78 74 72 61 20 64 61 |........extra da|
6000000010 74 61 0a |ta. |
61])
62AT_CLEANUP
63
64AT_SETUP([OFPT_HELLO with version bitmap])
65AT_KEYWORDS([ofp-print])
66AT_CHECK([ovs-ofctl ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f0"], [0],
67[dnl
68OFPT_HELLO (xid=0x0):
69 version bitmap: 0x04, 0x05, 0x06, 0x07
70])
71AT_CLEANUP
72
73AT_SETUP([OFPT_HELLO with version bitmap and extra data])
74AT_KEYWORDS([ofp-print])
75AT_CHECK([ovs-ofctl ofp-print "\
7601 00 00 1b 00 00 00 00 ff ff 00 06 01 02 00 00 \
7700 01 00 08 00 00 00 f0 61 62 63"], [0],
78[dnl
79OFPT_HELLO (xid=0x0):
80 version bitmap: 0x04, 0x05, 0x06, 0x07
81 unknown data in hello:
8200000000 01 00 00 1b 00 00 00 00-ff ff 00 06 01 02 00 00 |................|
8300000010 00 01 00 08 00 00 00 f0-61 62 63 |........abc |
fec00620
BP
84])
85AT_CLEANUP
86
681ea7a0
BP
87AT_SETUP([OFPT_HELLO with higher than supported version])
88AT_KEYWORDS([ofp-print])
89AT_CHECK([ovs-ofctl ofp-print "0f 00 00 08 00 00 00 00"], [0],
90[dnl
91OFPT_HELLO (OF 0x0f) (xid=0x0):
92 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
93])
94AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0],
95[dnl
96OFPT_HELLO (OF 0x40) (xid=0x0):
97 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
98])
99AT_CHECK([ovs-ofctl ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c aa aa aa aa aa aa aa aa 00 00 00 00"], [0],
100[dnl
101OFPT_HELLO (OF 0x3f) (xid=0x0):
102 version bitmap: 0x01, 0x03, 0x05, 0x07, 0x09, 0x0b, 0x0d, 0x0f, 0x11, 0x13, 0x15, 0x17, 0x19, 0x1b, 0x1d, 0x1f
103])
104AT_CLEANUP
105
106AT_SETUP([OFPT_HELLO with contradictory version bitmaps])
107AT_KEYWORDS([ofp-print])
108dnl Bitmap claims support for no versions at all.
109AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 00"], [0],
110[OFPT_HELLO (xid=0x0):
111 version bitmap: 0x01
112 unknown data in hello:
11300000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................|
114], [dnl
115ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
116])
117dnl Bitmap claims support for only versions above 0x1f.
118AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c 00 00 00 00 aa aa aa aa 00 00 00 00"], [0],
119[OFPT_HELLO (OF 0x3f) (xid=0x0):
120 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
121 unknown data in hello:
12200000000 3f 00 00 18 00 00 00 00-00 01 00 0c 00 00 00 00 |?...............|
12300000010 aa aa aa aa 00 00 00 00- |........ |
124], [dnl
125ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
126])
127dnl Bitmap claims support for nonexistent version 0x00.
128AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f1"], [0], [dnl
129OFPT_HELLO (xid=0x0):
130 version bitmap: 0x04, 0x05, 0x06, 0x07
131], [dnl
132ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
133])
134dnl Bitmap claims support for only nonexistent version 0x00.
135AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 01"], [0], [dnl
136OFPT_HELLO (xid=0x0):
137 version bitmap: 0x01
138 unknown data in hello:
13900000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................|
140], [dnl
141ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
142ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
143])
144AT_CLEANUP
145
2e0525bc 146dnl OFPT_ERROR tests are in ofp-errors.at.
90bf1e07 147
fec00620
BP
148AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
149AT_KEYWORDS([ofp-print])
150AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
151OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
152])
153AT_CLEANUP
154
155AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
156AT_KEYWORDS([ofp-print])
157AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
158OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
15900000000 25 53 54 1a 9d |%ST.. |
160])
161AT_CLEANUP
162
163AT_SETUP([OFPT_ECHO_REPLY, empty payload])
164AT_KEYWORDS([ofp-print])
165AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
166OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
167])
168AT_CLEANUP
169
170AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
171AT_KEYWORDS([ofp-print])
172AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
173OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
17400000000 a3 30 ef af 9e |.0... |
175])
176AT_CLEANUP
177
178AT_SETUP([OFPT_FEATURES_REQUEST])
179AT_KEYWORDS([ofp-print])
180AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
181OFPT_FEATURES_REQUEST (xid=0x1):
182])
183AT_CLEANUP
184
9e1fd49b 185AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
fec00620
BP
186AT_KEYWORDS([ofp-print])
187AT_CHECK([ovs-ofctl ofp-print "\
18801 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
18900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
190ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
19100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
19200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
19400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
19700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
20000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
20100 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
202"], [0], [dnl
9e1fd49b 203OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
fec00620 204n_tables:2, n_buffers:256
9e1fd49b 205capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
08d1e234 206actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
0ab14c8e
BP
207 1(eth1): addr:50:54:00:00:00:02
208 config: 0
209 state: 0
210 current: 100MB-FD AUTO_NEG
211 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
212 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 213 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
214 2(eth2): addr:50:54:00:00:00:03
215 config: 0
216 state: 0
217 current: 100MB-FD AUTO_NEG
218 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
219 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 220 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
221 3(eth0): addr:50:54:00:00:00:01
222 config: 0
223 state: 0
224 current: 100MB-FD AUTO_NEG
225 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
226 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 227 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
228 LOCAL(br0): addr:50:54:00:00:00:01
229 config: PORT_DOWN
230 state: LINK_DOWN
d02a5f8e 231 speed: 0 Mbps now, 0 Mbps max
fec00620
BP
232])
233AT_CLEANUP
234
9e1fd49b 235AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
fec00620
BP
236AT_KEYWORDS([ofp-print])
237AT_CHECK([ovs-ofctl ofp-print "\
23801 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
23900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
240ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
24100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
24200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
24400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
24700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
25000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
25100 00 02 08 00 00 02 8f 00 00 02 8f \
252"], [0], [dnl
90bf1e07 253***decode error: OFPBRC_BAD_LEN***
fec00620
BP
25400000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
25500000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
25600000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
25700000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
25800000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
25900000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
26000000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
26100000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
26200000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
26300000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
264000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
265000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
266000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
267000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
268], [stderr])
269AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
5a020ef3 270received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
fec00620
BP
271])
272AT_CLEANUP
273
9e1fd49b
BP
274AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
275AT_KEYWORDS([ofp-print])
276AT_CHECK([ovs-ofctl ofp-print "\
27702 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 27800 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
279ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
28062 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
28100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
28200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
28300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
28465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
28500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
28600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
287"], [0], [dnl
288OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
289n_tables:2, n_buffers:256
290capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
9e1fd49b
BP
291 3(eth0): addr:50:54:00:00:00:01
292 config: 0
293 state: 0
294 current: 100MB-FD AUTO_NEG
295 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
296 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
297 speed: 100 Mbps now, 100 Mbps max
298 LOCAL(br0): addr:50:54:00:00:00:01
299 config: PORT_DOWN
300 state: LINK_DOWN
301 speed: 100 Mbps now, 100 Mbps max
302])
303AT_CLEANUP
304
305AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
306AT_KEYWORDS([ofp-print])
307AT_CHECK([ovs-ofctl ofp-print "\
30802 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 30900 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
310ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
31162 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
31200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
31300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
31400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
31565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
31600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
317"], [0], [dnl
318***decode error: OFPBRC_BAD_LEN***
31900000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 32000000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 00 00 |................|
9e1fd49b
BP
32100000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32200000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
32300000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
32400000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
32500000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32600000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
32700000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
328], [stderr])
329AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
330received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
331])
332AT_CLEANUP
333
60202987
SH
334AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
335AT_KEYWORDS([ofp-print])
336AT_CHECK([ovs-ofctl ofp-print "\
33703 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 33800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
339ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
34062 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
34100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
34200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
34300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
34465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
34500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
34600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
347"], [0], [dnl
348OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
349n_tables:255, n_buffers:256
350capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
351 3(eth0): addr:50:54:00:00:00:01
352 config: 0
353 state: 0
354 current: 100MB-FD AUTO_NEG
355 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
356 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
357 speed: 100 Mbps now, 100 Mbps max
358 LOCAL(br0): addr:50:54:00:00:00:01
359 config: PORT_DOWN
360 state: LINK_DOWN
361 speed: 100 Mbps now, 100 Mbps max
362])
363AT_CLEANUP
364
365AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
366AT_KEYWORDS([ofp-print])
367AT_CHECK([ovs-ofctl ofp-print "\
36803 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 36900 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
370ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
37162 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
37200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
37300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
37400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
37565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
37600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
377"], [0], [dnl
378OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
379(***truncated to 144 bytes from 160***)
38000000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 38100000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 00 00 |...........w....|
60202987
SH
38200000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38300000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
38400000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
38500000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
38600000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38700000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
38800000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
389], [stderr])
390AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
391])
392AT_CLEANUP
393
2e1ae200
JR
394AT_SETUP([OFPT_FEATURES_REPLY - OF1.3])
395AT_KEYWORDS([ofp-print])
396AT_CHECK([ovs-ofctl ofp-print "\
39704 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
39800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
399"], [0], [dnl
400OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
401n_tables:255, n_buffers:256
402capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
403])
404AT_CLEANUP
405
406AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
407AT_KEYWORDS([ofp-print])
408AT_CHECK([ovs-ofctl ofp-print "\
40904 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
41000 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
411"], [0], [dnl
412OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
413n_tables:255, n_buffers:256, auxiliary_id:1
414capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
415])
416AT_CLEANUP
417
fec00620
BP
418AT_SETUP([OFPT_GET_CONFIG_REQUEST])
419AT_KEYWORDS([ofp-print])
420AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
421OFPT_GET_CONFIG_REQUEST (xid=0x1):
422])
423AT_CLEANUP
424
425AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
426AT_KEYWORDS([ofp-print])
427AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
428OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
429])
430AT_CLEANUP
431
432
433AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
434AT_KEYWORDS([ofp-print])
435AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
436OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
437])
438AT_CLEANUP
439
7cfb9651 440AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 441AT_KEYWORDS([ofp-print])
fec00620
BP
442AT_CHECK([ovs-ofctl ofp-print "\
44301 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
44400 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
44545 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
446c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 44750 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 448"], [0], [dnl
f0fd1a17 449OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
e6d9ab56 450tcp,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
e6d9ab56 464tcp,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
e6d9ab56 483tcp,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
e6d9ab56 497rarp,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
e6d9ab56 511rarp,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
e6d9ab56 529rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
b6a3dd9c
JT
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
e6d9ab56 544rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
b6a3dd9c
JT
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
e6d9ab56 559rarp,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
e6d9ab56 574rarp,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
e6d9ab56 699tcp,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
e6d9ab56 714tcp,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
e6d9ab56 745tcp,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
e60e935b
SRCSA
937AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field nd_target, nd_sll])
938AT_KEYWORDS([ofp-print])
939AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
94003 0e 00 78 00 00 00 02 00 00 00 00 00 00 00 00 \
94100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
942ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
94300 01 00 14 80 00 0a 02 86 dd 80 00 14 01 3a 80 \
94400 3a 01 87 00 00 00 00 00 04 00 30 00 00 00 00 \
94500 19 00 18 80 00 3e 10 00 00 00 00 00 00 00 00 \
94600 00 00 00 00 00 00 01 00 19 00 10 80 00 40 06 \
947aa aa aa aa aa aa 00 00
948" 2], [0], [dnl
949OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD priority=255,icmp6,icmp_type=135 actions=set_field:::1->nd_target,set_field:aa:aa:aa:aa:aa:aa->nd_sll
950], [dnl
951])
952AT_CLEANUP
953
b2a27ddc
BP
954dnl This triggered a buggy "instructions out of order" message earlier.
955AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
956AT_KEYWORDS([ofp-print])
957AT_CHECK([ovs-ofctl ofp-print "\
95804 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
95900 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
960ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
96100 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
962OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
963])
964AT_CLEANUP
965
d55b18c8
IY
966AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
967AT_KEYWORDS([ofp-print])
968AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
96903 13 00 68 52 33 45 04 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 16 04 \
975c0 a8 03 5c 00 00 00 00 \
976" 2], [0], [dnl
977OFPST_FLOW reply (OF1.2) (xid=0x52334504):
978 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
979], [dnl
980])
981AT_CLEANUP
982
983AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
984AT_KEYWORDS([ofp-print])
985AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
98603 13 00 68 52 33 45 09 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 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
99100 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
992c0 a8 4a 7a 00 00 00 00 \
993" 2], [0], [dnl
994OFPST_FLOW reply (OF1.2) (xid=0x52334509):
995 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
996], [dnl
997])
998AT_CLEANUP
999
0d56eaf2
JS
1000AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
1001AT_KEYWORDS([ofp-print])
1002AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
100303 13 00 68 52 33 45 04 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 22 02 \
10090d 06 00 00 00 00 00 00 \
1010" 2], [0], [dnl
1011OFPST_FLOW reply (OF1.2) (xid=0x52334504):
1012 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
1013], [dnl
1014])
1015AT_CLEANUP
1016
1017AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
1018AT_KEYWORDS([ofp-print])
1019AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
102003 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
102100 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
102200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
102300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
102400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
102500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
102611 5d 00 00 00 00 00 00 \
1027" 2], [0], [dnl
1028OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1029 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
1030], [dnl
1031])
1032AT_CLEANUP
1033
9e1fd49b 1034AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
1035AT_KEYWORDS([ofp-print])
1036AT_CHECK([ovs-ofctl ofp-print "\
103701 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
103800 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1039" 3], [0], [dnl
9e1fd49b
BP
1040OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
1041 config: PORT_DOWN
1042 mask: PORT_DOWN
1043 advertise: UNCHANGED
1044])
1045AT_CLEANUP
1046
1047AT_SETUP([OFPT_PORT_MOD - OF1.1])
1048AT_KEYWORDS([ofp-print])
1049AT_CHECK([ovs-ofctl ofp-print "\
105002 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
105150 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
105200 00 00 00 00 00 00 00 \
1053" 3], [0], [dnl
1054OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1055 config: PORT_DOWN
1056 mask: PORT_DOWN
fec00620
BP
1057 advertise: UNCHANGED
1058])
1059AT_CLEANUP
1060
bb2bc3c1
SH
1061AT_SETUP([OFPT_PORT_MOD - OF1.2])
1062AT_KEYWORDS([ofp-print])
1063AT_CHECK([ovs-ofctl ofp-print "\
106403 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
106550 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
106600 00 00 00 00 00 00 00 \
1067" 3], [0], [dnl
1068OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1069 config: PORT_DOWN
1070 mask: PORT_DOWN
1071 advertise: UNCHANGED
1072])
1073AT_CLEANUP
1074
2e1ae200
JR
1075AT_SETUP([OFPT_PORT_MOD - OF1.3])
1076AT_KEYWORDS([ofp-print])
1077AT_CHECK([ovs-ofctl ofp-print "\
107804 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
107950 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
108000 00 00 00 00 00 00 00 \
1081" 3], [0], [dnl
1082OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1083 config: PORT_DOWN
1084 mask: PORT_DOWN
1085 advertise: UNCHANGED
1086])
1087AT_CLEANUP
1088
18cc69d9
BP
1089AT_SETUP([OFPT_PORT_MOD - OF1.4])
1090AT_KEYWORDS([ofp-print])
1091AT_CHECK([ovs-ofctl ofp-print "\
109205 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
109350 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
109400 00 00 08 00 00 00 01
1095" 3], [0], [dnl
1096OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1097 config: PORT_DOWN
1098 mask: PORT_DOWN
1099 advertise: 10MB-HD
1100])
1101AT_CLEANUP
1102
918f2b82
AZ
1103AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1104AT_KEYWORDS([ofp-print])
1105AT_CHECK([ovs-ofctl ofp-print "\
110602 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1107" 3], [0], [dnl
1108OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1109])
1110AT_CLEANUP
1111
1112AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1113AT_KEYWORDS([ofp-print])
1114AT_CHECK([ovs-ofctl ofp-print "\
111503 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1116" 3], [0], [dnl
1117OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1118])
1119AT_CLEANUP
1120
1121AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1122AT_KEYWORDS([ofp-print])
1123AT_CHECK([ovs-ofctl ofp-print "\
112404 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1125" 3], [0], [dnl
3c1bb396 1126OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2
918f2b82
AZ
1127])
1128AT_CLEANUP
1129
37ab26e8
BP
1130AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1131AT_KEYWORDS([ofp-print])
1132AT_CHECK([ovs-ofctl ofp-print "\
113305 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1134" 3], [0], [dnl
de7d3c07 1135OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, eviction=off, vacancy=off
37ab26e8
BP
1136])
1137AT_CLEANUP
1138
fec00620
BP
1139AT_SETUP([OFPST_DESC request])
1140AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1141AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1142OFPST_DESC request (xid=0x1):
1143])
1144AT_CLEANUP
1145
1146AT_SETUP([OFPST_DESC reply])
1147AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1148AT_CHECK([ovs-ofctl ofp-print "\
114901 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
115072 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
115100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
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 00 00 00 00 \
116500 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
116620 76 53 77 69 74 63 68 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 00 00 00 00 \
118100 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
118230 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
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 4e 6f 6e 65 \
119800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119900 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
120000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121300 00 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 00 00 00 00 00 00 00 00 \
1216"], [0], [dnl
1217OFPST_DESC reply (xid=0x1):
e0edde6f 1218Manufacturer: Nicira, Inc.
fec00620
BP
1219Hardware: Open vSwitch
1220Software: 1.1.0pre2
1221Serial Num: None
1222DP Description: None
1223])
1224AT_CLEANUP
1225
0157ad3a 1226AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1227AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1228AT_CHECK([ovs-ofctl ofp-print "\
122901 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1230ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123200 00 00 00 ff 00 ff ff \
1233"], [0], [dnl
54ae6fa8 1234OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1235])
1236AT_CLEANUP
1237
0157ad3a
SH
1238AT_SETUP([OFPST_FLOW request - OF1.2])
1239AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1240AT_CHECK([ovs-ofctl ofp-print "\
124103 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1242ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
124300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
124400 01 00 04 00 00 00 00 \
1245"], [0], [dnl
1246OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1247])
1248AT_CLEANUP
1249
2e1ae200
JR
1250AT_SETUP([OFPST_FLOW request - OF1.3])
1251AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1252AT_CHECK([ovs-ofctl ofp-print "\
125304 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1254ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
125500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
125600 01 00 04 00 00 00 00 \
1257"], [0], [dnl
1258OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1259])
1260AT_CLEANUP
1261
6ec5f0c5 1262AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1263AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1264AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 126501 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
126600 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
126700 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1268c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1269ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
127000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
127100 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
127200 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
127300 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1274c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1275ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
127600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
127700 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
127800 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
127900 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1280c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1281ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
128200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
128300 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 128400 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
128500 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1286c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 128780 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
128800 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
128900 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
129000 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
129100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129300 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
129400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129500 00 00 00 00 00 00 00 \
fec00620
BP
1296"], [0], [dnl
1297OFPST_FLOW reply (xid=0x4):
b1634591
BP
1298 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
1299 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
1300 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 1301 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 1302 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1303])
1304AT_CLEANUP
1305
6ec5f0c5
SH
1306AT_SETUP([OFPST_FLOW reply - OF1.2])
1307AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1308AT_CHECK([ovs-ofctl ofp-print "\
130903 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
131000 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
131100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
131300 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1314ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
131500 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
131600 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
131705 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
131820 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
131900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
132000 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
132100 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
13220a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
132300 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
132400 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
132500 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
132600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
132800 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
132952 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
133000 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
133100 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
133205 dc 00 00 00 00 00 00 \
1333"], [0], [dnl
1334OFPST_FLOW reply (OF1.2) (xid=0x2):
1335 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
1336 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
1337 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
1338])
1339AT_CLEANUP
1340
617da9cd 1341AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1342AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1343AT_CHECK([ovs-ofctl ofp-print "\
134401 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1345ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134700 00 00 00 ff 00 ff ff \
1348"], [0], [dnl
54ae6fa8 1349OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1350])
1351AT_CLEANUP
1352
617da9cd
SH
1353AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1354AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1355AT_CHECK([ovs-ofctl ofp-print "\
135603 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1357ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
135800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
135900 01 00 04 00 00 00 00 \
1360"], [0], [dnl
1361OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1362])
1363AT_CLEANUP
1364
2e1ae200
JR
1365AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1366AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1367AT_CHECK([ovs-ofctl ofp-print "\
136804 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1369ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
137000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137100 01 00 04 00 00 00 00 \
1372"], [0], [dnl
1373OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1374])
1375AT_CLEANUP
1376
617da9cd 1377AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1378AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1379AT_CHECK([ovs-ofctl ofp-print "\
138001 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
138100 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
138200 00 00 00 \
1383"], [0], [dnl
1384OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1385])
1386AT_CLEANUP
1387
617da9cd
SH
1388AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1389AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1390AT_CHECK([ovs-ofctl ofp-print "\
139103 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
139200 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
139300 00 00 03 00 00 00 00 \
1394"], [0], [dnl
1395OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1396])
1397AT_CLEANUP
1398
2e1ae200
JR
1399AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1400AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1401AT_CHECK([ovs-ofctl ofp-print "\
140204 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
140300 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
140400 00 00 03 00 00 00 00 \
1405"], [0], [dnl
1406OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1407])
1408AT_CLEANUP
1409
307975da 1410AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1411AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1412AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1413OFPST_TABLE request (xid=0x1):
1414])
1415AT_CLEANUP
1416
307975da
SH
1417AT_SETUP([OFPST_TABLE request - OF1.1])
1418AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1419AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1420OFPST_TABLE request (OF1.1) (xid=0x2):
1421])
1422AT_CLEANUP
1423
1424AT_SETUP([OFPST_TABLE request - OF1.2])
1425AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1426AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1427OFPST_TABLE request (OF1.2) (xid=0x2):
1428])
1429AT_CLEANUP
1430
2e1ae200
JR
1431AT_SETUP([OFPST_TABLE request - OF1.3])
1432AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1433AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1434OFPST_TABLE request (OF1.3) (xid=0x2):
1435])
1436AT_CLEANUP
1437
26df8b3e 1438AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1439AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1440AT_CHECK([ovs-ofctl ofp-print "\
144101 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
144263 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
144300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
144400 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
144500 00 00 00 00 00 00 00 00 00 00 00 \
1446"], [0], [dnl
3c1bb396
BP
1447OFPST_TABLE reply (xid=0x1):
1448 table 0 ("classifier"):
1449 active=11, lookup=0, matched=0
1450 max_entries=1048576
1451 matching:
1452 in_port: exact match or wildcard
1453 eth_src: exact match or wildcard
1454 eth_dst: exact match or wildcard
1455 eth_type: exact match or wildcard
1456 vlan_vid: exact match or wildcard
1457 vlan_pcp: exact match or wildcard
1458 ip_src: exact match or wildcard
1459 ip_dst: exact match or wildcard
1460 nw_proto: exact match or wildcard
1461 nw_tos: exact match or wildcard
1462 tcp_src: exact match or wildcard
1463 tcp_dst: exact match or wildcard
fec00620
BP
1464])
1465AT_CLEANUP
1466
26df8b3e
SH
1467AT_SETUP([OFPST_TABLE reply - OF1.2])
1468AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
8811fc0a
BP
1469(echo 'OFPST_TABLE reply (OF1.2) (xid=0x2):
1470 table 0 ("classifier"):
1471 active=1, lookup=74614, matched=106024
3c1bb396
BP
1472 config=controller
1473 max_entries=1000000
1474 instructions (table miss and others):
1475 instructions: write_metadata,goto_table
1476 Write-Actions and Apply-Actions features:
1477 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
1478 matching:
1479 metadata: exact match or wildcard
1480 in_port_oxm: exact match or wildcard
1481 eth_src: exact match or wildcard
1482 eth_dst: exact match or wildcard
1483 eth_type: exact match or wildcard
1484 vlan_vid: exact match or wildcard
1485 vlan_pcp: exact match or wildcard
1486 mpls_label: exact match or wildcard
1487 mpls_tc: exact match or wildcard
1488 ip_src: exact match or wildcard
1489 ip_dst: exact match or wildcard
1490 ipv6_src: exact match or wildcard
1491 ipv6_dst: exact match or wildcard
1492 ipv6_label: exact match or wildcard
1493 nw_proto: exact match or wildcard
1494 ip_dscp: exact match or wildcard
1495 nw_ecn: exact match or wildcard
1496 arp_op: exact match or wildcard
1497 arp_spa: exact match or wildcard
1498 arp_tpa: exact match or wildcard
1499 arp_sha: exact match or wildcard
1500 arp_tha: exact match or wildcard
1501 tcp_src: exact match or wildcard
1502 tcp_dst: exact match or wildcard
1503 udp_src: exact match or wildcard
1504 udp_dst: exact match or wildcard
1505 sctp_src: exact match or wildcard
1506 sctp_dst: exact match or wildcard
1507 icmp_type: exact match or wildcard
1508 icmp_code: exact match or wildcard
1509 icmpv6_type: exact match or wildcard
1510 icmpv6_code: exact match or wildcard
1511 nd_target: exact match or wildcard
1512 nd_sll: exact match or wildcard
8811fc0a
BP
1513 nd_tll: exact match or wildcard
1514
1515 table 1 ("table1"):
1516 active=0, lookup=0, matched=0
1517 (same features)
1518'
1519 for i in `seq 2 253`; do
1520 printf ' table %d ("table%d"): ditto\n' $i $i
26df8b3e 1521 done
8811fc0a
BP
1522 echo ' table 254 ("table254"):
1523 active=2, lookup=0, matched=0
1524 (same features)') > expout
26df8b3e
SH
1525
1526(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"
1527 pad7="00 00 00 00 00 00 00 "
1528 mid="00 00 00 0f ff ff ff ff \
152900 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
153000 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
153100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153200 00 00 07 00 00 00 00 00 0f 42 40 "
1533 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1534
1535 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1536
1537 x=0
1538 printf "%02x $pad7" $x
1539 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1540 echo -n "$mid 00 00 00 01 "
1541 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1542
1543 x=1
1544 while test $x -lt 254; do
1545 printf "%02x $pad7" $x
1546 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1547 echo -n "$mid 00 00 00 00 $tail "
1548 x=`expr $x + 1`
1549 done
1550
1551 x=254
1552 printf "%02x $pad7" $x
1553 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1554 echo -n "$mid 00 00 00 02 $tail") > in
8b227701 1555AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1556AT_CLEANUP
1557
2e1ae200
JR
1558AT_SETUP([OFPST_TABLE reply - OF1.3])
1559AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1560AT_CHECK([ovs-ofctl ofp-print "\
156104 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
156200 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
156300 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
156400 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1565"], [0], [dnl
3c1bb396
BP
1566OFPST_TABLE reply (OF1.3) (xid=0x1):
1567 table 0:
1568 active=11, lookup=512, matched=256
1569
1570 table 1:
1571 active=12, lookup=513, matched=257
2e1ae200
JR
1572])
1573AT_CLEANUP
1574
f8e4867e 1575AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1576AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1577AT_CHECK([ovs-ofctl ofp-print "\
157801 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
157900 00 00 00 \
1580"], [0], [dnl
e1db42d6 1581OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1582])
1583AT_CLEANUP
1584
f8e4867e
SH
1585AT_SETUP([OFPST_PORT request - 1.1])
1586AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1587AT_CHECK([ovs-ofctl ofp-print "\
158802 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1589ff ff ff ff 00 00 00 00 \
1590"], [0], [dnl
e1db42d6 1591OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1592])
1593AT_CLEANUP
1594
1595AT_SETUP([OFPST_PORT request - 1.2])
1596AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1597AT_CHECK([ovs-ofctl ofp-print "\
159803 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1599ff ff ff ff 00 00 00 00 \
1600"], [0], [dnl
e1db42d6 1601OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1602])
1603AT_CLEANUP
1604
2e1ae200
JR
1605AT_SETUP([OFPST_PORT request - 1.3])
1606AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1607AT_CHECK([ovs-ofctl ofp-print "\
160804 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1609ff ff ff ff 00 00 00 00 \
1610"], [0], [dnl
e1db42d6 1611OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1612])
1613AT_CLEANUP
1614
f8e4867e 1615AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1616AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1617AT_CHECK([ovs-ofctl ofp-print "\
161801 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
161900 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
162000 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
162100 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
162200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162500 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
162600 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
162700 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
162800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163100 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
163200 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
163300 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
163400 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
163500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163800 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
163900 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
164000 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
164100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164400 00 00 00 00 00 00 00 00 00 00 00 \
1645"], [0], [dnl
1646OFPST_PORT reply (xid=0x1): 4 ports
1647 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1648 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1649 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1650 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1651 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1652 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1653 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1654 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1655])
1656AT_CLEANUP
1657
f8e4867e
SH
1658AT_SETUP([OFPST_PORT reply - OF1.2])
1659AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1660AT_CHECK([ovs-ofctl ofp-print "\
166103 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
166200 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
166300 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
166400 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
166500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166800 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
166900 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
167000 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
167100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167500 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
167600 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
167700 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
167800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168100 00 00 00 00 00 00 00 \
1682"], [0], [dnl
1683OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1684 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1685 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1686 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1687 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1688 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1689 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1690])
1691AT_CLEANUP
1692
65e0be10
BP
1693AT_SETUP([OFPST_PORT reply - OF1.3])
1694AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1695AT_CHECK([ovs-ofctl ofp-print "\
169604 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
169700 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
169800 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
169900 00 00 00 00 00 2c f8 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 00 00 00 00 \
170300 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1704ff ff ff fe 00 00 00 00 \
170500 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
170600 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
170700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1711ff ff ff ff ff ff ff ff \
171200 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
171300 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
171400 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
171500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171800 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1719"], [0], [dnl
1720OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1721 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1722 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1723 duration=1.001s
1724 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1725 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1726 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1727 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1728 duration=0.123s
1729])
1730AT_CLEANUP
1731
5469537b
BP
1732AT_SETUP([OFPST_PORT reply - OF1.4])
1733AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1734AT_CHECK([ovs-ofctl ofp-print "\
173505 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
173600 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
173700 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
173800 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
173900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174100 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
174200 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
174300 00 00 00 00 00 00 ff \
1744"], [0], [dnl
1745OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1746 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1747 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1748 duration=1.001s
1749])
1750AT_CLEANUP
1751
64626975 1752AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1753AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1754AT_CHECK([ovs-ofctl ofp-print "\
175501 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1756ff ff ff ff \
1757"], [0], [dnl
7f05e7ab 1758OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1759])
1760AT_CLEANUP
1761
64626975
SH
1762AT_SETUP([OFPST_QUEUE request - OF1.1])
1763AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1764AT_CHECK([ovs-ofctl ofp-print "\
176502 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1766ff ff ff ff ff ff ff ff \
64626975 1767"], [0], [dnl
7f05e7ab 1768OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1769])
1770AT_CLEANUP
1771
1772AT_SETUP([OFPST_QUEUE request - OF1.2])
1773AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1774AT_CHECK([ovs-ofctl ofp-print "\
177503 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1776ff ff ff ff ff ff ff ff \
64626975 1777"], [0], [dnl
7f05e7ab 1778OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1779])
1780AT_CLEANUP
1781
2e1ae200
JR
1782AT_SETUP([OFPST_QUEUE request - OF1.3])
1783AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1784AT_CHECK([ovs-ofctl ofp-print "\
178504 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1786ff ff ff ff ff ff ff ff \
1787"], [0], [dnl
1788OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1789])
1790AT_CLEANUP
1791
64626975 1792AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1793AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1794AT_CHECK([ovs-ofctl ofp-print "\
179501 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
179600 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
179700 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
179800 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
179900 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
180000 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
180100 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
180200 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180300 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
180400 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
180500 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
180600 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180700 00 00 00 00 00 00 00 00 00 00 00 \
1808"], [0], [dnl
1809OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1810 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1811 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1812 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1813 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1814 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1815 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1816])
1817AT_CLEANUP
1818
64626975
SH
1819AT_SETUP([OFPST_QUEUE reply - OF1.1])
1820AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1821AT_CHECK([ovs-ofctl ofp-print "\
182202 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
182300 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
182400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
182500 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
182600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
182800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
182900 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
183000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
183200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
183400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1835"], [0], [dnl
1836OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1837 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1838 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1839 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1840 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1841 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1842 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1843])
1844AT_CLEANUP
1845
1846AT_SETUP([OFPST_QUEUE reply - OF1.2])
1847AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1848AT_CHECK([ovs-ofctl ofp-print "\
184903 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
185000 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
185100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
185200 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
185300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
185500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
185600 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
185700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185800 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
185900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186000 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
186100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1862"], [0], [dnl
1863OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1864 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1865 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1866 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1867 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1868 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1869 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1870])
1871AT_CLEANUP
be0c30df
BP
1872
1873AT_SETUP([OFPST_QUEUE reply - OF1.3])
1874AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1875AT_CHECK([ovs-ofctl ofp-print "\
187604 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
187700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
187800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
187900 00 00 64 1d cd 65 00 \
188000 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
188100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188200 00 00 64 1d cd 65 00 \
188300 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
188400 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
188500 00 00 64 1d cd 65 00 \
188600 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
188700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188800 00 00 64 1d cd 65 00 \
188900 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
189000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
189100 00 00 64 1d cd 65 00 \
189200 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
189300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1894ff ff ff ff ff ff ff ff \
1895"], [0], [dnl
1896OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1897 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1898 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1899 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1900 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1901 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1902 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1903])
1904AT_CLEANUP
1905
1bb2cdbe
BP
1906AT_SETUP([OFPST_QUEUE reply - OF1.4])
1907AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1908AT_CHECK([ovs-ofctl ofp-print "\
190905 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
191000 30 00 00 00 00 00 00 \
191100 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
191200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
191300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191400 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
191500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
191600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
191800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
191900 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
192100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
192200 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192300 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
192400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
192500 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192600 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
192700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1928ff ff ff ff ff ff ff ff \
1929"], [0], [dnl
1930OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
1931 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1932 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1933 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1934 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1935 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
1936 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1937])
1938AT_CLEANUP
1939
7395c052
NZ
1940AT_SETUP([OFPST_GROUP request])
1941AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1942AT_CHECK([ovs-ofctl ofp-print "\
194302 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1944ff ff ff ff 00 00 00 00 \
1945"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1946])
1947AT_CLEANUP
1948
1949AT_SETUP([OFPST_GROUP reply - OF1.1])
1950AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1951AT_CHECK([ovs-ofctl ofp-print "\
195202 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
195300 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
195400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
195500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
195600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
195700 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
195800 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
195900 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
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 \
1962"], [0], [dnl
1963OFPST_GROUP reply (OF1.1) (xid=0x2):
1964 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
1965 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
1966])
1967AT_CLEANUP
1968
1969AT_SETUP([OFPST_GROUP reply - OF1.3])
1970AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1971AT_CHECK([ovs-ofctl ofp-print "\
197204 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
197300 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
197400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
197500 00 00 12 1d cd 65 00 \
197600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
197700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
197800 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
197900 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
198000 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
198100 00 00 10 1d cd 65 00 \
198200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
198300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1984"], [0], [dnl
1985OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1986 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
1987 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
1988])
1989AT_CLEANUP
1990
19187a71 1991AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
1992AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1993AT_CHECK([ovs-ofctl ofp-print "\
199402 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
1995"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
1996])
1997AT_CLEANUP
1998
1999AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
2000AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2001AT_CHECK([ovs-ofctl ofp-print "\
d4d3f33e
MT
200206 12 00 18 00 00 00 02 00 07 00 00 00 00 00 00 \
200300 00 00 01 00 00 00 00
19187a71 2004"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
2005])
2006AT_CLEANUP
2007
76c41209 2008AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
7395c052
NZ
2009AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2010AT_CHECK([ovs-ofctl ofp-print "\
201102 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
201200 68 01 00 00 00 20 00 \
201300 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
201400 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
201500 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
201600 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
201700 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
201800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2019"], [0], [dnl
2020OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2021 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
2022])
2023AT_CLEANUP
2024
76c41209
SH
2025AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2026AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2027AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 202806 13 00 d8 00 00 00 02 00 07 00 00 00 00 00 00 \
3986cae6 202900 c8 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
76c41209
SH
203000 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
203100 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
203200 01 00 08 00 00 00 01 \
203300 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
203400 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
203500 01 00 08 00 00 00 02 \
203600 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
203700 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
203800 01 00 08 00 00 00 03 \
0c4b9393
SH
2039ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
204068 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
204100 00 00 00 00 00 00 00 \
204280 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
204314 01 ff 00 00 00 00 00 \
76c41209
SH
2044"], [0], [dnl
2045OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
68dfc25b 2046 group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
76c41209
SH
2047])
2048AT_CLEANUP
2049
7395c052
NZ
2050AT_SETUP([OFPST_GROUP_FEATURES request])
2051AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2052AT_CHECK([ovs-ofctl ofp-print "\
205303 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2054"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2055])
2056AT_CLEANUP
2057
2058AT_SETUP([OFPST_GROUP_FEATURES reply])
2059AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2060AT_CHECK([ovs-ofctl ofp-print "\
206103 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
206200 00 00 0f 00 00 00 0f \
206300 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 206400 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
2065"], [0], [dnl
2066OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2067 Group table:
2068 Types: 0xf
2069 Capabilities: 0xf
08d1e234
BP
2070 all group:
2071 max_groups=0x1
2072 actions: output
2073 select group:
2074 max_groups=0x2
2075 actions: output push_vlan
2076 indirect group:
2077 max_groups=0x3
2078 actions: output strip_vlan push_vlan
2079 fast failover group:
2080 max_groups=0x4
2081 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
2082])
2083AT_CLEANUP
2084
2085AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2086AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2087AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2088OFPST_PORT_DESC request (xid=0x1): port=ANY
2089])
2090AT_CLEANUP
2091
2092AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2093AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2094AT_CHECK([ovs-ofctl ofp-print "\
7448d548
MT
209506 12 00 18 00 00 00 02 00 0d 00 00 00 00 00 00 \
209600 00 00 05 00 00 00 00"], [0], [dnl
70ae4f93 2097OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2098])
2099AT_CLEANUP
2100
2be393ed
JP
2101AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2102AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2103AT_CHECK([ovs-ofctl ofp-print "\
210401 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
210500 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
210600 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
210700 00 02 8f 00 00 02 8f 00 00 00 00 \
2108"], [0], [dnl
2109OFPST_PORT_DESC reply (xid=0x0):
2110 3(eth0): addr:50:54:00:00:00:01
2111 config: PORT_DOWN
2112 state: LINK_DOWN
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
8c3cc785
BP
2120AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2121AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2122AT_CHECK([ovs-ofctl ofp-print "\
212305 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
212400 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
212565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
212600 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
212700 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
212800 01 86 a0 00 01 86 a0 \
2129"], [0], [dnl
2130OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2131 3(eth0): addr:50:54:00:00:00:01
2132 config: 0
2133 state: 0
2134 current: 100MB-FD AUTO_NEG
2135 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2136 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2137 speed: 100 Mbps now, 100 Mbps max
2138])
2139AT_CLEANUP
2140
638a19b0
JR
2141AT_SETUP([OFPT_METER_MOD request - OF1.3])
2142AT_KEYWORDS([ofp-print])
2143AT_CHECK([ovs-ofctl ofp-print "\
214404 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
214500 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2146"], [0], [dnl
2147OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2148type=drop rate=1024 burst_size=128
2149])
2150AT_CLEANUP
2151
f99d6aa0
BP
2152AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2153AT_KEYWORDS([ofp-print])
2154AT_CHECK([ovs-ofctl ofp-print "\
215504 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
215600 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2157"], [0], [dnl
2158OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2159])
2160AT_CLEANUP
2161
142cdb01
BP
2162AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2163AT_KEYWORDS([ofp-print])
2164AT_CHECK([ovs-ofctl ofp-print "\
216504 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2166"], [0], [dnl
2167OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2168])
2169AT_CLEANUP
2170
13b1febe
BP
2171AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2172AT_KEYWORDS([ofp-print])
2173AT_CHECK([ovs-ofctl ofp-print "\
217404 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
217500 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2176"], [0], [dnl
2177OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2178])
2179AT_CLEANUP
2180
638a19b0
JR
2181AT_SETUP([OFPST_METER request - OF1.3])
2182AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2183AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2184OFPST_METER request (OF1.3) (xid=0x2): meter=1
2185])
2186AT_CLEANUP
2187
2188AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2189AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2190AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2191OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2192])
2193AT_CLEANUP
2194
2195AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2196AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2197AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2198OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2199])
2200AT_CLEANUP
2201
2202AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2203AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2204AT_CHECK([ovs-ofctl ofp-print "\
220504 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 220600 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2207"], [0], [dnl
2208OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2209max_meter:65536 max_bands:16 max_color:2
2210band_types: drop dscp_remark
2211capabilities: kbps pktps burst stats
2212])
2213AT_CLEANUP
2214
2215AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2216AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2217AT_CHECK([ovs-ofctl ofp-print "\
221804 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
221900 28 00 05 00 00 00 01 \
222000 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
222100 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
222200 18 00 09 00 00 00 02 \
222300 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2224"], [0], [dnl
2225OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2226meter=1 kbps burst bands=
2227type=drop rate=65536 burst_size=1280
2228type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2229
2230meter=2 kbps stats bands=
2231type=drop rate=131072
2232])
2233AT_CLEANUP
2234
2235AT_SETUP([OFPST_METER reply - OF1.3])
2236AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2237AT_CHECK([ovs-ofctl ofp-print "\
223804 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
223900 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
224000 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 224100 00 01 8a 0a 6e 23 44 \
638a19b0
JR
224200 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
224300 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
224400 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
224500 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 224600 00 01 87 0a 23 6e 44 \
638a19b0
JR
224700 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2248"], [0], [dnl
2249OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2250meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
22510: packet_count:126 byte_count:13363
22521: packet_count:231 byte_count:37934
2253
0445637d 2254meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
22550: packet_count:42 byte_count:1075
2256])
2257AT_CLEANUP
2258
5deff5aa
AW
2259AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2260AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2261AT_CHECK([ovs-ofctl ofp-print "\
226204 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
226309 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
226400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
226500 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2266ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
226700 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
226800 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
226900 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
227000 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
227100 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
227200 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
227300 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
22740d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
22751d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
22762d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
22773d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
22784d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
22795d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
22806d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
22817d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
22828d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
22839d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2284ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2285bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2286cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2287dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2288ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2289fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
229005 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
229115 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
229225 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
229335 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
229445 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
229555 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
229665 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
229775 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
229885 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
229995 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2300a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2301b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2302c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2303d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2304e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2305f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
230600 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
230700 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
230800 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
230900 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
231000 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
231100 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
231200 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
231300 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
231400 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
231500 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
231600 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
231700 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
231800 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
231900 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
232000 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
232100 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
232200 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
232300 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
232400 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
232500 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
232600 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
232700 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
232800 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
232900 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
233000 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
233100 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
233200 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
233300 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
233400 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
233500 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
233600 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
233700 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
233800 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
233900 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
234000 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
234180 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
234200 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
234300 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
234480 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
234580 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
234680 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
234780 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
234880 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
234980 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
235080 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
235180 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
235280 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
235380 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
235400 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
235580 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
235600 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
235700 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
235880 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
235980 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
236080 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
236180 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
236280 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
236380 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
236480 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
236580 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
236680 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
236780 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
236800 0c 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 0d 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 \
238900 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
239080 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
239100 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
239200 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
239380 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
239480 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
239580 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
239680 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
239780 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
239880 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
239980 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
240000 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
240180 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
240200 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
240300 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
240400 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
240580 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
240680 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
240700 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
240880 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
240980 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2410"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
3c1bb396 2411 table 0 ("table0"):
5deff5aa 2412 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2413 max_entries=1000000
2414 instructions (table miss and others):
2415 next tables: 1-253
2416 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2417 Write-Actions and Apply-Actions features:
08d1e234 2418 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 2419 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
2420 matching:
2421 tun_id: exact match or wildcard
2422 tun_src: exact match or wildcard
2423 tun_dst: exact match or wildcard
2424 metadata: exact match or wildcard
2425 in_port: exact match or wildcard
2426 in_port_oxm: exact match or wildcard
2427 pkt_mark: exact match or wildcard
2428 reg0: exact match or wildcard
2429 reg1: exact match or wildcard
2430 reg2: exact match or wildcard
2431 reg3: exact match or wildcard
2432 reg4: exact match or wildcard
2433 reg5: exact match or wildcard
2434 reg6: exact match or wildcard
2435 reg7: exact match or wildcard
2436 eth_src: exact match or wildcard
2437 eth_dst: exact match or wildcard
2438 eth_type: exact match or wildcard
2439 vlan_tci: exact match or wildcard
2440 vlan_vid: exact match or wildcard
2441 vlan_pcp: exact match or wildcard
2442 mpls_label: exact match or wildcard
2443 mpls_tc: exact match or wildcard
2444 mpls_bos: exact match or wildcard
2445 ip_src: exact match or wildcard
2446 ip_dst: exact match or wildcard
2447 ipv6_src: exact match or wildcard
2448 ipv6_dst: exact match or wildcard
2449 ipv6_label: exact match or wildcard
2450 nw_proto: exact match or wildcard
2451 nw_tos: exact match or wildcard
2452 ip_dscp: exact match or wildcard
2453 nw_ecn: exact match or wildcard
2454 nw_ttl: exact match or wildcard
2455 ip_frag: exact match or wildcard
2456 arp_op: exact match or wildcard
2457 arp_spa: exact match or wildcard
2458 arp_tpa: exact match or wildcard
2459 arp_sha: exact match or wildcard
2460 arp_tha: exact match or wildcard
2461 tcp_src: exact match or wildcard
2462 tcp_dst: exact match or wildcard
2463 tcp_flags: exact match or wildcard
2464 udp_src: exact match or wildcard
2465 udp_dst: exact match or wildcard
2466 sctp_src: exact match or wildcard
2467 sctp_dst: exact match or wildcard
2468 icmp_type: exact match or wildcard
2469 icmp_code: exact match or wildcard
2470 icmpv6_type: exact match or wildcard
2471 icmpv6_code: exact match or wildcard
2472 nd_target: exact match or wildcard
2473 nd_sll: exact match or wildcard
2474 nd_tll: exact match or wildcard
2475])
2476AT_CLEANUP
2477
58cf43df 2478AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2479AT_KEYWORDS([ofp-print])
2480AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2481OFPT_BARRIER_REQUEST (xid=0x1):
2482])
2483AT_CLEANUP
2484
58cf43df
SH
2485AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2486AT_KEYWORDS([ofp-print])
2487AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2488OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2489])
2490AT_CLEANUP
2491
2492AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2493AT_KEYWORDS([ofp-print])
2494AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2495OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2496])
2497AT_CLEANUP
2498
2e1ae200
JR
2499AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2500AT_KEYWORDS([ofp-print])
2501AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2502OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2503])
2504AT_CLEANUP
2505
58cf43df 2506AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2507AT_KEYWORDS([ofp-print])
2508AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2509OFPT_BARRIER_REPLY (xid=0x1):
2510])
2511AT_CLEANUP
2512
2e1ae200 2513AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2514AT_KEYWORDS([ofp-print])
2515AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2516OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2517])
2518AT_CLEANUP
2519
2e1ae200 2520AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2521AT_KEYWORDS([ofp-print])
2522AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2523OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2524])
2525AT_CLEANUP
2526
2e1ae200
JR
2527AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2528AT_KEYWORDS([ofp-print])
2529AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2530OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2531])
2532AT_CLEANUP
2533
e8f9a7bb
VG
2534AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2535AT_KEYWORDS([ofp-print])
2ffc8767 2536AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2537OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2538])
2539AT_CLEANUP
2540
2541AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2542AT_KEYWORDS([ofp-print])
2543AT_CHECK([ovs-ofctl ofp-print "\
254403 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2545OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2546])
2547AT_CLEANUP
2548
2549AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2550AT_KEYWORDS([ofp-print])
2ffc8767 2551AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
255200 01 00 00 00 00 00 00 \
255300 00 55 55 00 28 00 00 \
255400 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
255500 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
255600 00 44 44 00 08 00 00 \
2557"], [0], [dnl
2558OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2559queue 21845: min_rate:50.0% max_rate:75.0%
2560queue 17476:
2561])
2562AT_CLEANUP
2563
2564AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2565AT_KEYWORDS([ofp-print])
2566AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
256700 00 00 01 00 00 00 00 \
256800 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
256900 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
257000 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
257100 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2572"], [0], [dnl
2573OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2574queue 21845: min_rate:50.0% max_rate:75.0%
2575queue 17476:
2576])
2577AT_CLEANUP
2e1ae200
JR
2578
2579AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2580AT_KEYWORDS([ofp-print])
2581AT_CHECK([ovs-ofctl ofp-print "\
258204 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
258300 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2584"], [0], [dnl
2585OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2586 master:
2587 PACKET_IN: no_match invalid_ttl 12
2588 PORT_STATUS: add delete
2589 FLOW_REMOVED: (off)
2590
2591 slave:
2592 PACKET_IN: no_match action invalid_ttl 12
2593 PORT_STATUS: add delete modify
2594 FLOW_REMOVED: idle hard
2595])
2596AT_CLEANUP
2597
6ea4776b
JR
2598AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2599AT_KEYWORDS([ofp-print])
2600AT_CHECK([ovs-ofctl ofp-print "\
260103 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
260200 00 00 00 00 00 00 03 \
2603"], [0], [dnl
2604OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2605])
2606AT_CLEANUP
2607
2608AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2609AT_KEYWORDS([ofp-print])
2610AT_CHECK([ovs-ofctl ofp-print "\
261103 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
261200 00 00 00 00 00 00 00 \
2613"], [0], [dnl
2614OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2615])
2616AT_CLEANUP
2617
fec00620
BP
2618AT_SETUP([NXT_ROLE_REQUEST])
2619AT_KEYWORDS([ofp-print])
2620AT_CHECK([ovs-ofctl ofp-print "\
262101 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
262200 00 00 01 \
2623"], [0], [dnl
2624NXT_ROLE_REQUEST (xid=0x2): role=master
2625])
2626AT_CLEANUP
2627
6ea4776b
JR
2628AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2629AT_KEYWORDS([ofp-print])
2630AT_CHECK([ovs-ofctl ofp-print "\
263103 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 263212 34 56 78 ab cd ef 90 \
6ea4776b 2633"], [0], [dnl
147cc9d3 2634OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2635])
2636AT_CLEANUP
2637
fec00620
BP
2638AT_SETUP([NXT_ROLE_REPLY])
2639AT_KEYWORDS([ofp-print])
2640AT_CHECK([ovs-ofctl ofp-print "\
264101 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
264200 00 00 02 \
2643"], [0], [dnl
2644NXT_ROLE_REPLY (xid=0x2): role=slave
2645])
2646AT_CLEANUP
2647
00467f73
AC
2648AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2649AT_KEYWORDS([ofp-print])
2650AT_CHECK([ovs-ofctl ofp-print "\
265105 1e 00 18 00 00 00 0a \
265200 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2653"], [0], [dnl
9620f50c 2654OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2655])
2656AT_CLEANUP
2657
2658AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2659AT_KEYWORDS([ofp-print])
2660AT_CHECK([ovs-ofctl ofp-print "\
266105 1e 00 18 00 00 00 0a \
266200 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2663"], [0], [dnl
9620f50c 2664OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2665])
2666AT_CLEANUP
2667
2668AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2669AT_KEYWORDS([ofp-print])
2670AT_CHECK([ovs-ofctl ofp-print "\
267105 1e 00 18 00 00 00 0a \
267200 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2673"], [0], [dnl
9620f50c 2674OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2675])
2676AT_CLEANUP
2677
3c35db62
NR
2678AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2679AT_KEYWORDS([ofp-print])
2680AT_CHECK([ovs-ofctl ofp-print "\
268105 20 00 18 00 00 00 02 \
268205 0f 00 10 02 00 00 00 \
268300 00 00 00 00 00 00 01 \
2684"], [0], [dnl
2685OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2686 ADD group_id=1,type=all
2687])
2688AT_CLEANUP
2689
2690AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2691AT_KEYWORDS([ofp-print])
2692AT_CHECK([ovs-ofctl ofp-print "\
269305 20 00 18 00 00 00 02 \
269405 0f 00 10 02 00 00 00 \
269500 01 01 00 00 00 00 01 \
2696"], [0], [dnl
2697OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod
2698 MOD group_id=1,type=select
2699])
2700AT_CLEANUP
2701
2702AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2703AT_KEYWORDS([ofp-print])
2704AT_CHECK([ovs-ofctl ofp-print "\
270505 20 00 18 00 00 00 02 \
270605 1d 00 10 02 00 00 00 \
270700 00 00 00 00 00 00 01 \
2708"], [0], [dnl
2709OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod ADD meter=1 bands=
2710])
2711AT_CLEANUP
2712
2713AT_SETUP([OFP_REQUESTFORWARD - OF1.4])
2714AT_KEYWORDS([ofp-print])
2715AT_CHECK([ovs-ofctl ofp-print "\
271605 20 00 18 00 00 00 02 \
271705 1d 00 10 02 00 00 00 \
271800 01 01 00 00 00 00 01 \
2719"], [0], [dnl
2720OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod MOD meter=1 flags:0x100 bands=
2721])
2722AT_CLEANUP
2723
54834960
EJ
2724AT_SETUP([NXT_SET_PACKET_IN])
2725AT_KEYWORDS([ofp-print])
2726AT_CHECK([ovs-ofctl ofp-print "\
272701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
272800 00 00 01 \
2729"], [0], [dnl
2730NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2731])
2732AT_CLEANUP
2733
2734AT_SETUP([NXT_PACKET_IN])
2735AT_KEYWORDS([ofp-print])
2736AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 273701 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2738ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 273900 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
274020 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
274100 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
274200 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 274300 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2744ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
274580 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
274600 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 274700 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
274831 6d 00 00 00 00 00 00 00 00 \
2749"], [0], [dnl
50dcbd8e 2750NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered)
e6d9ab56 2751tcp,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
2752])
2753AT_CLEANUP
2754
b4ccee75
SH
2755AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2756AT_KEYWORDS([ofp-print])
2757AT_CHECK([ovs-ofctl ofp-print "\
275801 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2759ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
276000 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
276120 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
276200 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
276300 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
276400 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2765ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
276680 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
276700 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 276800 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
276931 6d 00 00 00 00 00 00 00 00 \
2770" 3], [0], [dnl
50dcbd8e 2771NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered)
e6d9ab56 2772tcp,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
277300000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
277400000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
277500000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 277600000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2777])
2778AT_CLEANUP
2779
80d5aefd
BP
2780AT_SETUP([NXT_SET_ASYNC_CONFIG])
2781AT_KEYWORDS([ofp-print])
2782AT_CHECK([ovs-ofctl ofp-print "\
278301 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
278400 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
278500 00 00 00 00 00 00 03 \
2786"], [0], [dnl
2787NXT_SET_ASYNC_CONFIG (xid=0x0):
2788 master:
2789 PACKET_IN: no_match invalid_ttl 12
2790 PORT_STATUS: add delete
2791 FLOW_REMOVED: (off)
2792
2793 slave:
2794 PACKET_IN: no_match action invalid_ttl 12
2795 PORT_STATUS: add delete modify
2796 FLOW_REMOVED: idle hard
2797])
2798AT_CLEANUP
2799
98090482
NR
2800AT_SETUP([OFPT_SET_ASYNC_CONFIG])
2801AT_KEYWORDS([ofp-print])
2802AT_CHECK([ovs-ofctl ofp-print "\
280305 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
280400 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
280500 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
280600 05 00 08 00 00 00 05 \
2807"], [0], [dnl
2808OFPT_SET_ASYNC (OF1.4) (xid=0x2):
2809 master:
2810 PACKET_IN: action
2811 PORT_STATUS: add modify
2812 FLOW_REMOVED: idle delete
2813 ROLE_STATUS: (off)
2814 TABLE_STATUS: (off)
2815 REQUESTFORWARD: (off)
2816
2817 slave:
2818 PACKET_IN: no_match invalid_ttl
2819 PORT_STATUS: delete
2820 FLOW_REMOVED: delete group_delete meter_delete
2821 ROLE_STATUS: (off)
2822 TABLE_STATUS: (off)
2823 REQUESTFORWARD: (off)
2824])
2825AT_CLEANUP
2826
d18cc1ee
AA
2827AT_SETUP([OFPT_SET_ASYNC_CONFIG - invalid mask - OF1.4])
2828AT_KEYWORDS([ofp-print])
2829AT_CHECK([ovs-ofctl ofp-print "\
283005 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 40 \
283100 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
283200 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
283300 05 00 08 00 00 00 05 \
2834"], [0], [dnl
2835OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_INVALID***
2836])
2837AT_CLEANUP
2838
2839AT_SETUP([OFPT_SET_ASYNC_CONFIG - unsupported configuration - OF1.4])
2840AT_KEYWORDS([ofp-print])
2841AT_CHECK([ovs-ofctl ofp-print "\
284205 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \
284300 11 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \
284400 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \
284500 05 00 08 00 00 00 05\
2846"], [0], [dnl
2847OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_UNSUPPORTED***
2848])
2849AT_CLEANUP
2850
a7349929
BP
2851AT_SETUP([NXT_SET_CONTROLLER_ID])
2852AT_KEYWORDS([ofp-print])
2853AT_CHECK([ovs-ofctl ofp-print "\
285401 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
285500 00 00 00 00 00 00 7b \
2856"], [0], [dnl
2857NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2858])
2859AT_CLEANUP
2860
2b07c8b1
BP
2861AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2862AT_KEYWORDS([ofp-print])
2863AT_CHECK([ovs-ofctl ofp-print "\
286401 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
286501 02 30 40 \
2866"], [0], [dnl
2867NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2868])
2869AT_CLEANUP
2870
2871AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2872AT_KEYWORDS([ofp-print])
2873AT_CHECK([ovs-ofctl ofp-print "\
287401 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2875"], [0], [dnl
2876NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2877])
2878AT_CLEANUP
2879
2880AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2881AT_KEYWORDS([ofp-print])
2882AT_CHECK([ovs-ofctl ofp-print "\
288301 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2884"], [0], [dnl
2885NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2886])
2887AT_CLEANUP
2888
fec00620
BP
2889AT_SETUP([NXT_SET_FLOW_FORMAT])
2890AT_KEYWORDS([ofp-print])
2891AT_CHECK([ovs-ofctl ofp-print "\
289201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
289300 00 00 02 \
2894"], [0], [dnl
2895NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2896])
2897AT_CLEANUP
2898
2899# The flow is formatted with cls_rule_format() for the low-verbosity case.
2900AT_SETUP([NXT_FLOW_MOD, low verbosity])
2901AT_KEYWORDS([ofp-print])
2902AT_CHECK([ovs-ofctl ofp-print "\
290301 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
290400 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2905ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
290600 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
290700 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
290800 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2909" 2], [0], [dnl
de0f16bc 2910NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2911])
2912AT_CLEANUP
2913
eec25dc1
BP
2914# The flow is formatted with ofp10_match_to_string() for the
2915# low-verbosity case.
fec00620
BP
2916AT_SETUP([NXT_FLOW_MOD, high verbosity])
2917AT_KEYWORDS([ofp-print])
2918AT_CHECK([ovs-ofctl ofp-print "\
291901 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
292000 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2921ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
292200 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
292300 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
292400 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2925" 3], [0], [dnl
de0f16bc 2926NXT_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
2927])
2928AT_CLEANUP
2929
76c41209 2930AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
2931AT_KEYWORDS([ofp-print])
2932AT_CHECK([ovs-ofctl ofp-print "\
293302 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
293400 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
293500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
293600 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
293700 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
293800 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
293900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2940"], [0], [dnl
2941OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2942 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
2943])
2944AT_CLEANUP
2945
76c41209
SH
2946AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
2947AT_KEYWORDS([ofp-print])
2948AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 294906 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \
76c41209
SH
295000 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
295100 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
295200 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
295300 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
295400 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
295500 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
295600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
295700 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
0c4b9393
SH
2958ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
295968 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
296000 00 00 00 00 00 00 07 \
76c41209
SH
2961"], [0], [dnl
2962OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
0c4b9393 2963 ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
76c41209
SH
2964])
2965AT_CLEANUP
2966
2967AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
2968AT_KEYWORDS([ofp-print])
2969AT_CHECK([ovs-ofctl ofp-print "\
297006 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
297100 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
297200 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
297300 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
297400 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
297500 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
297600 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
297700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
297800 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
2979"], [0], [dnl
2980OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
2981 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
2982])
2983AT_CLEANUP
2984
fec00620
BP
2985AT_SETUP([NXT_FLOW_REMOVED])
2986AT_KEYWORDS([ofp-print])
2987AT_CHECK([ovs-ofctl ofp-print "\
298801 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 298900 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
299001 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
299100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
299202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
299300 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
29941e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2995c0 a8 00 02 00 00 00 00 \
2996"], [0], [dnl
745bfd5e 2997NXT_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
2998])
2999AT_CLEANUP
3000
a1a7d333
BP
3001AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
3002AT_KEYWORDS([ofp-print])
3003AT_CHECK([ovs-ofctl ofp-print "\
300401 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
300501 00 00 00 00 00 00 00 \
3006"], [0], [dnl
3007NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
3008])
3009AT_CLEANUP
3010
fec00620
BP
3011AT_SETUP([NXST_FLOW request])
3012AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3013AT_CHECK([ovs-ofctl ofp-print "\
301401 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
301500 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3016"], [0], [dnl
54ae6fa8 3017NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
3018])
3019AT_CLEANUP
3020
3021AT_SETUP([NXST_FLOW reply])
3022AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3023AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 302401 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
302500 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
302602 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
302700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
302800 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
302902 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
303000 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30310a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3032a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
303314 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
303400 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 303500 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
303600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
303700 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
303800 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
303900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3040a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
304100 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
304200 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 304333 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
304400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
304500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
304602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
304700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30480a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3049a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
305014 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
305100 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 305200 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
305300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
305400 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
305500 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
305600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3057a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
305800 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
305900 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 306034 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
306100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
306200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
306302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
306400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30650a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3066a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
306714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
306800 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
306900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
307000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
307100 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
307200 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
307300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3074a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
307500 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
307600 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
307702 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
307800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
307900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
308002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
308100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30820a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3083a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
308414 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
308500 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
308600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
308700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
308800 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
308900 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
309000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3091a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
309200 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
309300 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
309427 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
309500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
309600 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
309702 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
309800 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30990a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3100a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
310114 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
310200 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
310300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
310400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
310500 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
310600 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
310700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3108a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
310900 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
311000 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
31110a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
311200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
311300 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
311402 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
311500 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
31160a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3117a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
311814 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
311900 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
312000 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
312100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
312200 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
312300 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
312400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3125a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
312600 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
312700 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
312804 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
312900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
313000 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
313102 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
313200 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
31330a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3134a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
313514 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
313600 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
313700 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
313800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
313900 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
314000 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
314100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3142a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
314300 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
314400 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
31452e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
314600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
314700 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
314800 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3149ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
315000 00 00 00 00 00 00 05 \
05b8f1c2
BP
315100 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
315200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
315300 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3154"], [0],
3155[[NXST_FLOW reply (xid=0x4):
b9718b7b 3156 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 3157 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
3158 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
3159 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 3160 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 3161 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 3162 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
3163 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
3164 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
3165 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
3166 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
3167 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
3168 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
3169 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
3170 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 3171 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3172]])
3173AT_CLEANUP
3174
3175AT_SETUP([NXST_AGGREGATE request])
3176AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3177AT_CHECK([ovs-ofctl ofp-print "\
317801 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
317900 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3180"], [0], [dnl
54ae6fa8 3181NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
3182])
3183AT_CLEANUP
3184
3185AT_SETUP([NXST_AGGREGATE reply])
3186AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3187AT_CHECK([ovs-ofctl ofp-print "\
318801 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
318900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
319000 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3191"], [0], [dnl
3192NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3193])
3194AT_CLEANUP
2b07c8b1
BP
3195
3196AT_SETUP([NXST_FLOW_MONITOR request])
3197AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3198AT_CHECK([ovs-ofctl ofp-print "\
319901 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
320000 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
320100 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3202"], [0], [dnl
3203NXST_FLOW_MONITOR request (xid=0x4):
3204 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3205 id=8192 flags=delete table=2 in_port=1
3206])
3207AT_CLEANUP
3208
3209AT_SETUP([NXST_FLOW_MONITOR reply])
3210AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3211AT_CHECK([ovs-ofctl ofp-print "\
321201 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 321300 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
321400 00 00 02 00 01 00 00 \
321500 08 00 03 00 01 86 a0 \
3216"], [0], [dnl
3217NXST_FLOW_MONITOR reply (xid=0x4):
3218 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3219 event=ABBREV xid=0x186a0
3220])
3221AT_CLEANUP
777af88d
AC
3222
3223
3224AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3225AT_KEYWORDS([ofp-print])
3226AT_CHECK([ovs-ofctl ofp-print "\
322705 21 00 10 00 00 00 00 \
322800 00 00 01 00 00 00 01 \
3229"], [0], [dnl
3230OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3231 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3232])
3233AT_CLEANUP
3234
3235AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3236AT_KEYWORDS([ofp-print])
3237AT_CHECK([ovs-ofctl ofp-print "\
323805 21 00 10 00 00 00 00 \
323900 00 00 01 00 00 00 02 \
3240"], [0], [dnl
3241OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3242 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3243])
3244AT_CLEANUP
3245
3246AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3247AT_KEYWORDS([ofp-print])
3248AT_CHECK([ovs-ofctl ofp-print "\
324905 21 00 10 00 00 00 00 \
325000 00 00 01 00 00 00 03 \
3251"], [0], [dnl
3252OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3253 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3254])
3255AT_CLEANUP
3256
3257AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
3258AT_KEYWORDS([ofp-print])
3259AT_CHECK([ovs-ofctl ofp-print "\
326005 21 00 10 00 00 00 00 \
326100 00 00 01 00 01 00 01 \
3262"], [0], [dnl
3263OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3264 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3265])
3266AT_CLEANUP
3267
3268AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
3269AT_KEYWORDS([ofp-print])
3270AT_CHECK([ovs-ofctl ofp-print "\
327105 21 00 10 00 00 00 00 \
327200 00 00 01 00 02 00 01 \
3273"], [0], [dnl
3274OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3275 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3276])
3277AT_CLEANUP
3278
3279AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3280AT_KEYWORDS([ofp-print])
3281AT_CHECK([ovs-ofctl ofp-print "\
328205 21 00 10 00 00 00 00 \
328300 00 00 01 00 03 00 01 \
3284"], [0], [dnl
3285OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3286 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3287])
3288AT_CLEANUP
3289
3290AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3291AT_KEYWORDS([ofp-print])
3292AT_CHECK([ovs-ofctl ofp-print "\
329305 21 00 10 00 00 00 00 \
329400 00 00 01 00 04 00 01 \
3295"], [0], [dnl
3296OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3297 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3298])
3299AT_CLEANUP
3300
3301AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3302AT_KEYWORDS([ofp-print])
3303AT_CHECK([ovs-ofctl ofp-print "\
330405 21 00 10 00 00 00 00 \
330500 00 00 01 00 05 00 01 \
3306"], [0], [dnl
3307OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3308 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3309])
3310AT_CLEANUP
3311
3312AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3313AT_KEYWORDS([ofp-print])
3314AT_CHECK([ovs-ofctl ofp-print "\
331505 21 00 10 00 00 00 00 \
331600 00 00 01 00 06 00 01 \
3317"], [0], [dnl
3318OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3319 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3320])
3321AT_CLEANUP
3322
3323AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3324AT_KEYWORDS([ofp-print])
3325AT_CHECK([ovs-ofctl ofp-print "\
332605 21 00 10 00 00 00 00 \
332700 00 00 01 00 07 00 01 \
3328"], [0], [dnl
3329OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3330 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3331])
3332AT_CLEANUP
3333
be6f6393
JR
3334AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
3335AT_KEYWORDS([ofp-print])
3336AT_CHECK([ovs-ofctl ofp-print "\
333705 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 333805 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
be6f6393
JR
3339"], [0], [dnl
3340OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
3341])
3342AT_CLEANUP
3343
c25ce22d 3344AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
777af88d 3345AT_KEYWORDS([ofp-print])
44648b0f 3346AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
c25ce22d 334705 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 334805 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
c25ce22d
JR
3349"], [0], [dnl
3350OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
44648b0f
BP
3351], [dnl
3352ofp_util|WARN|OFPT_HELLO message not allowed inside OFPT14_BUNDLE_ADD_MESSAGE
c25ce22d
JR
3353])
3354AT_CLEANUP
3355
3356AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
3357AT_KEYWORDS([ofp-print])
3358AT_CHECK([ovs-ofctl ofp-print "\
335905 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
46be7132 336005 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
c25ce22d
JR
336100 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3362ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
336300 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
336450 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
336580 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
336600 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
336700 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
336800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3369"], [0], [dnl
3370OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3371 bundle_id=0x1 flags=atomic
46be7132 3372OFPT_FLOW_MOD (OF1.4) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
c25ce22d
JR
3373])
3374AT_CLEANUP
3375
3376AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
3377AT_KEYWORDS([ofp-print])
3378AT_CHECK([ovs-ofctl ofp-print "\
337905 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
338005 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
338150 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
338200 00 00 08 00 00 00 01
777af88d 3383"], [0], [dnl
c25ce22d 3384OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
777af88d 3385 bundle_id=0x1 flags=atomic
c25ce22d
JR
3386OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
3387 config: PORT_DOWN
3388 mask: PORT_DOWN
3389 advertise: 10MB-HD
777af88d
AC
3390])
3391AT_CLEANUP