]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ofp-util: Require inner and outer message in bundle add to be same version.
[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
82c22d34 1135OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, eviction=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])
3c1bb396
BP
1469(tail="
1470 config=controller
1471 max_entries=1000000
1472 instructions (table miss and others):
1473 instructions: write_metadata,goto_table
1474 Write-Actions and Apply-Actions features:
1475 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
1476 matching:
1477 metadata: exact match or wildcard
1478 in_port_oxm: exact match or wildcard
1479 eth_src: exact match or wildcard
1480 eth_dst: exact match or wildcard
1481 eth_type: exact match or wildcard
1482 vlan_vid: exact match or wildcard
1483 vlan_pcp: exact match or wildcard
1484 mpls_label: exact match or wildcard
1485 mpls_tc: exact match or wildcard
1486 ip_src: exact match or wildcard
1487 ip_dst: exact match or wildcard
1488 ipv6_src: exact match or wildcard
1489 ipv6_dst: exact match or wildcard
1490 ipv6_label: exact match or wildcard
1491 nw_proto: exact match or wildcard
1492 ip_dscp: exact match or wildcard
1493 nw_ecn: exact match or wildcard
1494 arp_op: exact match or wildcard
1495 arp_spa: exact match or wildcard
1496 arp_tpa: exact match or wildcard
1497 arp_sha: exact match or wildcard
1498 arp_tha: exact match or wildcard
1499 tcp_src: exact match or wildcard
1500 tcp_dst: exact match or wildcard
1501 udp_src: exact match or wildcard
1502 udp_dst: exact match or wildcard
1503 sctp_src: exact match or wildcard
1504 sctp_dst: exact match or wildcard
1505 icmp_type: exact match or wildcard
1506 icmp_code: exact match or wildcard
1507 icmpv6_type: exact match or wildcard
1508 icmpv6_code: exact match or wildcard
1509 nd_target: exact match or wildcard
1510 nd_sll: exact match or wildcard
1511 nd_tll: exact match or wildcard"
1512 echo "OFPST_TABLE reply (OF1.2) (xid=0x2):
1513 table 0 (\"classifier\"):
1514 active=1, lookup=74614, matched=106024$tail"
26df8b3e
SH
1515 x=1
1516 while test $x -lt 254; do
3c1bb396
BP
1517 printf "
1518 table %d (\"%s\"):
1519 active=0, lookup=0, matched=0$tail
26df8b3e
SH
1520" $x table$x
1521 x=`expr $x + 1`
1522 done
3c1bb396
BP
1523 echo "
1524 table 254 (\"table254\"):
1525 active=2, lookup=0, matched=0$tail") > expout
26df8b3e
SH
1526
1527(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"
1528 pad7="00 00 00 00 00 00 00 "
1529 mid="00 00 00 0f ff ff ff ff \
153000 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
153100 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
153200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153300 00 00 07 00 00 00 00 00 0f 42 40 "
1534 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1535
1536 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1537
1538 x=0
1539 printf "%02x $pad7" $x
1540 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1541 echo -n "$mid 00 00 00 01 "
1542 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1543
1544 x=1
1545 while test $x -lt 254; do
1546 printf "%02x $pad7" $x
1547 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1548 echo -n "$mid 00 00 00 00 $tail "
1549 x=`expr $x + 1`
1550 done
1551
1552 x=254
1553 printf "%02x $pad7" $x
1554 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1555 echo -n "$mid 00 00 00 02 $tail") > in
8b227701 1556AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1557AT_CLEANUP
1558
2e1ae200
JR
1559AT_SETUP([OFPST_TABLE reply - OF1.3])
1560AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1561AT_CHECK([ovs-ofctl ofp-print "\
156204 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
156300 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
156400 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
156500 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1566"], [0], [dnl
3c1bb396
BP
1567OFPST_TABLE reply (OF1.3) (xid=0x1):
1568 table 0:
1569 active=11, lookup=512, matched=256
1570
1571 table 1:
1572 active=12, lookup=513, matched=257
2e1ae200
JR
1573])
1574AT_CLEANUP
1575
f8e4867e 1576AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1577AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1578AT_CHECK([ovs-ofctl ofp-print "\
157901 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
158000 00 00 00 \
1581"], [0], [dnl
e1db42d6 1582OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1583])
1584AT_CLEANUP
1585
f8e4867e
SH
1586AT_SETUP([OFPST_PORT request - 1.1])
1587AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1588AT_CHECK([ovs-ofctl ofp-print "\
158902 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1590ff ff ff ff 00 00 00 00 \
1591"], [0], [dnl
e1db42d6 1592OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1593])
1594AT_CLEANUP
1595
1596AT_SETUP([OFPST_PORT request - 1.2])
1597AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1598AT_CHECK([ovs-ofctl ofp-print "\
159903 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1600ff ff ff ff 00 00 00 00 \
1601"], [0], [dnl
e1db42d6 1602OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1603])
1604AT_CLEANUP
1605
2e1ae200
JR
1606AT_SETUP([OFPST_PORT request - 1.3])
1607AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1608AT_CHECK([ovs-ofctl ofp-print "\
160904 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1610ff ff ff ff 00 00 00 00 \
1611"], [0], [dnl
e1db42d6 1612OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1613])
1614AT_CLEANUP
1615
f8e4867e 1616AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1617AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1618AT_CHECK([ovs-ofctl ofp-print "\
161901 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
162000 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
162100 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
162200 05 71 bc 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 00 00 00 00 00 00 00 00 00 00 00 00 \
162600 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
162700 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
162800 01 0c 8c 00 00 00 00 00 00 db 1c 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 00 00 00 \
163200 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
163300 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
163400 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
163500 02 23 d4 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 00 00 00 00 00 00 00 00 00 00 00 \
163900 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
164000 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
164100 04 a2 54 00 00 00 00 00 05 8a 1e 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 00 00 00 00 \
164500 00 00 00 00 00 00 00 00 00 00 00 \
1646"], [0], [dnl
1647OFPST_PORT reply (xid=0x1): 4 ports
1648 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1649 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1650 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1651 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1652 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1653 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1654 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1655 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1656])
1657AT_CLEANUP
1658
f8e4867e
SH
1659AT_SETUP([OFPST_PORT reply - OF1.2])
1660AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1661AT_CHECK([ovs-ofctl ofp-print "\
166203 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
166300 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
166400 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
166500 00 00 00 00 00 2c f8 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 00 00 00 00 00 00 00 00 \
166900 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
167000 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
167100 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
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 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167600 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
167700 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
167800 00 00 00 01 1e 36 44 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 00 00 00 00 00 00 00 00 \
168200 00 00 00 00 00 00 00 \
1683"], [0], [dnl
1684OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1685 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1686 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1687 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1688 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1689 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1690 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1691])
1692AT_CLEANUP
1693
65e0be10
BP
1694AT_SETUP([OFPST_PORT reply - OF1.3])
1695AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1696AT_CHECK([ovs-ofctl ofp-print "\
169704 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
169800 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
169900 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
170000 00 00 00 00 00 2c f8 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 00 00 00 00 00 \
170400 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1705ff ff ff fe 00 00 00 00 \
170600 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
170700 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
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 \
171100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1712ff ff ff ff ff ff ff ff \
171300 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
171400 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
171500 00 00 00 01 1e 36 44 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 00 00 00 00 \
171900 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1720"], [0], [dnl
1721OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1722 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1723 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1724 duration=1.001s
1725 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1726 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1727 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1728 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1729 duration=0.123s
1730])
1731AT_CLEANUP
1732
5469537b
BP
1733AT_SETUP([OFPST_PORT reply - OF1.4])
1734AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1735AT_CHECK([ovs-ofctl ofp-print "\
173605 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
173700 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
173800 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
173900 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
174000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174200 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
174300 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
174400 00 00 00 00 00 00 ff \
1745"], [0], [dnl
1746OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1747 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1748 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1749 duration=1.001s
1750])
1751AT_CLEANUP
1752
64626975 1753AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1754AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1755AT_CHECK([ovs-ofctl ofp-print "\
175601 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1757ff ff ff ff \
1758"], [0], [dnl
7f05e7ab 1759OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1760])
1761AT_CLEANUP
1762
64626975
SH
1763AT_SETUP([OFPST_QUEUE request - OF1.1])
1764AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1765AT_CHECK([ovs-ofctl ofp-print "\
176602 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1767ff ff ff ff ff ff ff ff \
64626975 1768"], [0], [dnl
7f05e7ab 1769OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1770])
1771AT_CLEANUP
1772
1773AT_SETUP([OFPST_QUEUE request - OF1.2])
1774AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1775AT_CHECK([ovs-ofctl ofp-print "\
177603 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1777ff ff ff ff ff ff ff ff \
64626975 1778"], [0], [dnl
7f05e7ab 1779OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1780])
1781AT_CLEANUP
1782
2e1ae200
JR
1783AT_SETUP([OFPST_QUEUE request - OF1.3])
1784AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1785AT_CHECK([ovs-ofctl ofp-print "\
178604 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1787ff ff ff ff ff ff ff ff \
1788"], [0], [dnl
1789OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1790])
1791AT_CLEANUP
1792
64626975 1793AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1794AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1795AT_CHECK([ovs-ofctl ofp-print "\
179601 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
179700 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
179800 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
179900 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180000 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
180100 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
180200 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
180300 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180400 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
180500 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
180600 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
180700 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180800 00 00 00 00 00 00 00 00 00 00 00 \
1809"], [0], [dnl
1810OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1811 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1812 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1813 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1814 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1815 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1816 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1817])
1818AT_CLEANUP
1819
64626975
SH
1820AT_SETUP([OFPST_QUEUE reply - OF1.1])
1821AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1822AT_CHECK([ovs-ofctl ofp-print "\
182302 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
182400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
182500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
182600 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
182700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182800 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
182900 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
183000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
183100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
183300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183400 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
183500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1836"], [0], [dnl
1837OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1838 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1839 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1840 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1841 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1842 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1843 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1844])
1845AT_CLEANUP
1846
1847AT_SETUP([OFPST_QUEUE reply - OF1.2])
1848AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1849AT_CHECK([ovs-ofctl ofp-print "\
185003 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
185100 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
185200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
185300 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
185400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185500 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
185600 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
185700 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
185800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185900 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
186000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186100 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
186200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1863"], [0], [dnl
1864OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1865 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1866 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1867 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1868 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1869 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1870 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1871])
1872AT_CLEANUP
be0c30df
BP
1873
1874AT_SETUP([OFPST_QUEUE reply - OF1.3])
1875AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1876AT_CHECK([ovs-ofctl ofp-print "\
187704 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
187800 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
187900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
188000 00 00 64 1d cd 65 00 \
188100 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
188200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188300 00 00 64 1d cd 65 00 \
188400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
188500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
188600 00 00 64 1d cd 65 00 \
188700 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
188800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188900 00 00 64 1d cd 65 00 \
189000 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
189100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
189200 00 00 64 1d cd 65 00 \
189300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
189400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1895ff ff ff ff ff ff ff ff \
1896"], [0], [dnl
1897OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1898 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1899 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1900 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1901 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1902 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1903 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1904])
1905AT_CLEANUP
1906
1bb2cdbe
BP
1907AT_SETUP([OFPST_QUEUE reply - OF1.4])
1908AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1909AT_CHECK([ovs-ofctl ofp-print "\
191005 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
191100 30 00 00 00 00 00 00 \
191200 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
191300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
191400 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191500 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
191600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
191700 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191800 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
191900 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
192000 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192100 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
192200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
192300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192400 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
192500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
192600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
192800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1929ff ff ff ff ff ff ff ff \
1930"], [0], [dnl
1931OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
1932 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1933 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1934 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1935 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1936 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
1937 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1938])
1939AT_CLEANUP
1940
7395c052
NZ
1941AT_SETUP([OFPST_GROUP request])
1942AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1943AT_CHECK([ovs-ofctl ofp-print "\
194402 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1945ff ff ff ff 00 00 00 00 \
1946"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1947])
1948AT_CLEANUP
1949
1950AT_SETUP([OFPST_GROUP reply - OF1.1])
1951AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1952AT_CHECK([ovs-ofctl ofp-print "\
195302 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
195400 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
195500 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
195600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
195700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
195800 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
195900 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
196000 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
196100 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
196200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1963"], [0], [dnl
1964OFPST_GROUP reply (OF1.1) (xid=0x2):
1965 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
1966 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
1967])
1968AT_CLEANUP
1969
1970AT_SETUP([OFPST_GROUP reply - OF1.3])
1971AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1972AT_CHECK([ovs-ofctl ofp-print "\
197304 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
197400 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
197500 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
197600 00 00 12 1d cd 65 00 \
197700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
197800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
197900 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
198000 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
198100 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
198200 00 00 10 1d cd 65 00 \
198300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
198400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1985"], [0], [dnl
1986OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1987 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
1988 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
1989])
1990AT_CLEANUP
1991
19187a71 1992AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
1993AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1994AT_CHECK([ovs-ofctl ofp-print "\
199502 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
1996"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
1997])
1998AT_CLEANUP
1999
2000AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
2001AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2002AT_CHECK([ovs-ofctl ofp-print "\
200306 12 00 14 00 00 00 02 00 07 00 00 00 00 00 00 \
200400 00 00 01
2005"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
2006])
2007AT_CLEANUP
2008
76c41209 2009AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
7395c052
NZ
2010AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2011AT_CHECK([ovs-ofctl ofp-print "\
201202 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
201300 68 01 00 00 00 20 00 \
201400 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
201500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
201600 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
201700 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
201800 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
201900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2020"], [0], [dnl
2021OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2022 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
2023])
2024AT_CLEANUP
2025
76c41209
SH
2026AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2027AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2028AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 202906 13 00 d8 00 00 00 02 00 07 00 00 00 00 00 00 \
76c41209
SH
203000 88 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
203100 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
203200 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
203300 01 00 08 00 00 00 01 \
203400 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
203500 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
203600 01 00 08 00 00 00 02 \
203700 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
203800 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
203900 01 00 08 00 00 00 03 \
0c4b9393
SH
2040ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \
204168 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
204200 00 00 00 00 00 00 00 \
204380 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \
204414 01 ff 00 00 00 00 00 \
76c41209
SH
2045"], [0], [dnl
2046OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
0c4b9393 2047 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
2048])
2049AT_CLEANUP
2050
7395c052
NZ
2051AT_SETUP([OFPST_GROUP_FEATURES request])
2052AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2053AT_CHECK([ovs-ofctl ofp-print "\
205403 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2055"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2056])
2057AT_CLEANUP
2058
2059AT_SETUP([OFPST_GROUP_FEATURES reply])
2060AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2061AT_CHECK([ovs-ofctl ofp-print "\
206203 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
206300 00 00 0f 00 00 00 0f \
206400 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 206500 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
2066"], [0], [dnl
2067OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2068 Group table:
2069 Types: 0xf
2070 Capabilities: 0xf
08d1e234
BP
2071 all group:
2072 max_groups=0x1
2073 actions: output
2074 select group:
2075 max_groups=0x2
2076 actions: output push_vlan
2077 indirect group:
2078 max_groups=0x3
2079 actions: output strip_vlan push_vlan
2080 fast failover group:
2081 max_groups=0x4
2082 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
2083])
2084AT_CLEANUP
2085
2086AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2087AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2088AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2089OFPST_PORT_DESC request (xid=0x1): port=ANY
2090])
2091AT_CLEANUP
2092
2093AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2094AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2095AT_CHECK([ovs-ofctl ofp-print "\
209606 12 00 14 00 00 00 02 00 0d 00 00 00 00 00 00 \
209700 00 00 05"], [0], [dnl
2098OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2099])
2100AT_CLEANUP
2101
2be393ed
JP
2102AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2103AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2104AT_CHECK([ovs-ofctl ofp-print "\
210501 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
210600 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
210700 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
210800 00 02 8f 00 00 02 8f 00 00 00 00 \
2109"], [0], [dnl
2110OFPST_PORT_DESC reply (xid=0x0):
2111 3(eth0): addr:50:54:00:00:00:01
2112 config: PORT_DOWN
2113 state: LINK_DOWN
2114 current: 100MB-FD AUTO_NEG
2115 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2116 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2117 speed: 100 Mbps now, 100 Mbps max
2118])
2119AT_CLEANUP
2120
8c3cc785
BP
2121AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2122AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2123AT_CHECK([ovs-ofctl ofp-print "\
212405 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
212500 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
212665 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
212700 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
212800 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
212900 01 86 a0 00 01 86 a0 \
2130"], [0], [dnl
2131OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2132 3(eth0): addr:50:54:00:00:00:01
2133 config: 0
2134 state: 0
2135 current: 100MB-FD AUTO_NEG
2136 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2137 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2138 speed: 100 Mbps now, 100 Mbps max
2139])
2140AT_CLEANUP
2141
638a19b0
JR
2142AT_SETUP([OFPT_METER_MOD request - OF1.3])
2143AT_KEYWORDS([ofp-print])
2144AT_CHECK([ovs-ofctl ofp-print "\
214504 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
214600 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2147"], [0], [dnl
2148OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2149type=drop rate=1024 burst_size=128
2150])
2151AT_CLEANUP
2152
f99d6aa0
BP
2153AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2154AT_KEYWORDS([ofp-print])
2155AT_CHECK([ovs-ofctl ofp-print "\
215604 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
215700 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2158"], [0], [dnl
2159OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2160])
2161AT_CLEANUP
2162
142cdb01
BP
2163AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2164AT_KEYWORDS([ofp-print])
2165AT_CHECK([ovs-ofctl ofp-print "\
216604 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2167"], [0], [dnl
2168OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2169])
2170AT_CLEANUP
2171
13b1febe
BP
2172AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2173AT_KEYWORDS([ofp-print])
2174AT_CHECK([ovs-ofctl ofp-print "\
217504 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
217600 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2177"], [0], [dnl
2178OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2179])
2180AT_CLEANUP
2181
638a19b0
JR
2182AT_SETUP([OFPST_METER request - OF1.3])
2183AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2184AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2185OFPST_METER request (OF1.3) (xid=0x2): meter=1
2186])
2187AT_CLEANUP
2188
2189AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2190AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2191AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2192OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2193])
2194AT_CLEANUP
2195
2196AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2197AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2198AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2199OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2200])
2201AT_CLEANUP
2202
2203AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2204AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2205AT_CHECK([ovs-ofctl ofp-print "\
220604 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 220700 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2208"], [0], [dnl
2209OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2210max_meter:65536 max_bands:16 max_color:2
2211band_types: drop dscp_remark
2212capabilities: kbps pktps burst stats
2213])
2214AT_CLEANUP
2215
2216AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2217AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2218AT_CHECK([ovs-ofctl ofp-print "\
221904 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
222000 28 00 05 00 00 00 01 \
222100 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
222200 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
222300 18 00 09 00 00 00 02 \
222400 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2225"], [0], [dnl
2226OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2227meter=1 kbps burst bands=
2228type=drop rate=65536 burst_size=1280
2229type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2230
2231meter=2 kbps stats bands=
2232type=drop rate=131072
2233])
2234AT_CLEANUP
2235
2236AT_SETUP([OFPST_METER reply - OF1.3])
2237AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2238AT_CHECK([ovs-ofctl ofp-print "\
223904 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
224000 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
224100 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 224200 00 01 8a 0a 6e 23 44 \
638a19b0
JR
224300 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
224400 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
224500 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
224600 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 224700 00 01 87 0a 23 6e 44 \
638a19b0
JR
224800 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2249"], [0], [dnl
2250OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2251meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
22520: packet_count:126 byte_count:13363
22531: packet_count:231 byte_count:37934
2254
0445637d 2255meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
22560: packet_count:42 byte_count:1075
2257])
2258AT_CLEANUP
2259
5deff5aa
AW
2260AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2261AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2262AT_CHECK([ovs-ofctl ofp-print "\
226304 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
226409 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
226500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
226600 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2267ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
226800 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
226900 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
227000 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
227100 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
227200 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
227300 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
227400 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
22750d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
22761d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
22772d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
22783d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
22794d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
22805d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
22816d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
22827d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
22838d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
22849d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2285ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2286bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2287cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2288dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2289ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2290fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
229105 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
229215 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
229325 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
229435 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
229545 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
229655 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
229765 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
229875 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
229985 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
230095 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2301a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2302b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2303c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2304d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2305e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2306f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
230700 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
230800 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
230900 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
231000 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
231100 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
231200 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
231300 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
231400 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
231500 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
231600 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
231700 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
231800 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
231900 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
232000 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
232100 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
232200 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
232300 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
232400 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
232500 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
232600 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
232700 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
232800 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
232900 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
233000 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
233100 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
233200 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
233300 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
233400 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
233500 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
233600 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
233700 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
233800 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
233900 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
234000 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
234100 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
234280 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
234300 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
234400 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
234580 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
234680 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
234780 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
234880 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
234980 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
235080 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
235180 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
235280 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
235380 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
235480 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
235500 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
235680 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
235700 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
235800 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
235980 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
236080 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
236180 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
236280 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
236380 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
236480 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
236580 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
236680 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
236780 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
236880 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
236900 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
237080 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
237100 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
237200 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
237380 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
237480 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
237580 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
237680 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
237780 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
237880 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
237980 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
238000 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
238180 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
238200 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
238300 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
238400 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
238580 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
238680 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
238700 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
238880 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
238980 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
239000 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
239180 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
239200 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
239300 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
239480 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
239580 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
239680 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
239780 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
239880 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
239980 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
240080 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
240100 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
240280 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
240300 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
240400 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
240500 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
240680 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
240780 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
240800 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
240980 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
241080 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2411"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
3c1bb396 2412 table 0 ("table0"):
5deff5aa 2413 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2414 max_entries=1000000
2415 instructions (table miss and others):
2416 next tables: 1-253
2417 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2418 Write-Actions and Apply-Actions features:
08d1e234 2419 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 2420 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
2421 matching:
2422 tun_id: exact match or wildcard
2423 tun_src: exact match or wildcard
2424 tun_dst: exact match or wildcard
2425 metadata: exact match or wildcard
2426 in_port: exact match or wildcard
2427 in_port_oxm: exact match or wildcard
2428 pkt_mark: exact match or wildcard
2429 reg0: exact match or wildcard
2430 reg1: exact match or wildcard
2431 reg2: exact match or wildcard
2432 reg3: exact match or wildcard
2433 reg4: exact match or wildcard
2434 reg5: exact match or wildcard
2435 reg6: exact match or wildcard
2436 reg7: exact match or wildcard
2437 eth_src: exact match or wildcard
2438 eth_dst: exact match or wildcard
2439 eth_type: exact match or wildcard
2440 vlan_tci: exact match or wildcard
2441 vlan_vid: exact match or wildcard
2442 vlan_pcp: exact match or wildcard
2443 mpls_label: exact match or wildcard
2444 mpls_tc: exact match or wildcard
2445 mpls_bos: exact match or wildcard
2446 ip_src: exact match or wildcard
2447 ip_dst: exact match or wildcard
2448 ipv6_src: exact match or wildcard
2449 ipv6_dst: exact match or wildcard
2450 ipv6_label: exact match or wildcard
2451 nw_proto: exact match or wildcard
2452 nw_tos: exact match or wildcard
2453 ip_dscp: exact match or wildcard
2454 nw_ecn: exact match or wildcard
2455 nw_ttl: exact match or wildcard
2456 ip_frag: exact match or wildcard
2457 arp_op: exact match or wildcard
2458 arp_spa: exact match or wildcard
2459 arp_tpa: exact match or wildcard
2460 arp_sha: exact match or wildcard
2461 arp_tha: exact match or wildcard
2462 tcp_src: exact match or wildcard
2463 tcp_dst: exact match or wildcard
2464 tcp_flags: exact match or wildcard
2465 udp_src: exact match or wildcard
2466 udp_dst: exact match or wildcard
2467 sctp_src: exact match or wildcard
2468 sctp_dst: exact match or wildcard
2469 icmp_type: exact match or wildcard
2470 icmp_code: exact match or wildcard
2471 icmpv6_type: exact match or wildcard
2472 icmpv6_code: exact match or wildcard
2473 nd_target: exact match or wildcard
2474 nd_sll: exact match or wildcard
2475 nd_tll: exact match or wildcard
2476])
2477AT_CLEANUP
2478
58cf43df 2479AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2480AT_KEYWORDS([ofp-print])
2481AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2482OFPT_BARRIER_REQUEST (xid=0x1):
2483])
2484AT_CLEANUP
2485
58cf43df
SH
2486AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2487AT_KEYWORDS([ofp-print])
2488AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2489OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2490])
2491AT_CLEANUP
2492
2493AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2494AT_KEYWORDS([ofp-print])
2495AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2496OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2497])
2498AT_CLEANUP
2499
2e1ae200
JR
2500AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2501AT_KEYWORDS([ofp-print])
2502AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2503OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2504])
2505AT_CLEANUP
2506
58cf43df 2507AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2508AT_KEYWORDS([ofp-print])
2509AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2510OFPT_BARRIER_REPLY (xid=0x1):
2511])
2512AT_CLEANUP
2513
2e1ae200 2514AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2515AT_KEYWORDS([ofp-print])
2516AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2517OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2518])
2519AT_CLEANUP
2520
2e1ae200 2521AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2522AT_KEYWORDS([ofp-print])
2523AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2524OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2525])
2526AT_CLEANUP
2527
2e1ae200
JR
2528AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2529AT_KEYWORDS([ofp-print])
2530AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2531OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2532])
2533AT_CLEANUP
2534
e8f9a7bb
VG
2535AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2536AT_KEYWORDS([ofp-print])
2ffc8767 2537AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2538OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2539])
2540AT_CLEANUP
2541
2542AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2543AT_KEYWORDS([ofp-print])
2544AT_CHECK([ovs-ofctl ofp-print "\
254503 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2546OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2547])
2548AT_CLEANUP
2549
2550AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2551AT_KEYWORDS([ofp-print])
2ffc8767 2552AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
255300 01 00 00 00 00 00 00 \
255400 00 55 55 00 28 00 00 \
255500 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
255600 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
255700 00 44 44 00 08 00 00 \
2558"], [0], [dnl
2559OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2560queue 21845: min_rate:50.0% max_rate:75.0%
2561queue 17476:
2562])
2563AT_CLEANUP
2564
2565AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2566AT_KEYWORDS([ofp-print])
2567AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
256800 00 00 01 00 00 00 00 \
256900 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
257000 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
257100 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
257200 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2573"], [0], [dnl
2574OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2575queue 21845: min_rate:50.0% max_rate:75.0%
2576queue 17476:
2577])
2578AT_CLEANUP
2e1ae200
JR
2579
2580AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2581AT_KEYWORDS([ofp-print])
2582AT_CHECK([ovs-ofctl ofp-print "\
258304 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
258400 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2585"], [0], [dnl
2586OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2587 master:
2588 PACKET_IN: no_match invalid_ttl 12
2589 PORT_STATUS: add delete
2590 FLOW_REMOVED: (off)
2591
2592 slave:
2593 PACKET_IN: no_match action invalid_ttl 12
2594 PORT_STATUS: add delete modify
2595 FLOW_REMOVED: idle hard
2596])
2597AT_CLEANUP
2598
6ea4776b
JR
2599AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2600AT_KEYWORDS([ofp-print])
2601AT_CHECK([ovs-ofctl ofp-print "\
260203 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
260300 00 00 00 00 00 00 03 \
2604"], [0], [dnl
2605OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2606])
2607AT_CLEANUP
2608
2609AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2610AT_KEYWORDS([ofp-print])
2611AT_CHECK([ovs-ofctl ofp-print "\
261203 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
261300 00 00 00 00 00 00 00 \
2614"], [0], [dnl
2615OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2616])
2617AT_CLEANUP
2618
fec00620
BP
2619AT_SETUP([NXT_ROLE_REQUEST])
2620AT_KEYWORDS([ofp-print])
2621AT_CHECK([ovs-ofctl ofp-print "\
262201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
262300 00 00 01 \
2624"], [0], [dnl
2625NXT_ROLE_REQUEST (xid=0x2): role=master
2626])
2627AT_CLEANUP
2628
6ea4776b
JR
2629AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2630AT_KEYWORDS([ofp-print])
2631AT_CHECK([ovs-ofctl ofp-print "\
263203 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 263312 34 56 78 ab cd ef 90 \
6ea4776b 2634"], [0], [dnl
147cc9d3 2635OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2636])
2637AT_CLEANUP
2638
fec00620
BP
2639AT_SETUP([NXT_ROLE_REPLY])
2640AT_KEYWORDS([ofp-print])
2641AT_CHECK([ovs-ofctl ofp-print "\
264201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
264300 00 00 02 \
2644"], [0], [dnl
2645NXT_ROLE_REPLY (xid=0x2): role=slave
2646])
2647AT_CLEANUP
2648
00467f73
AC
2649AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2650AT_KEYWORDS([ofp-print])
2651AT_CHECK([ovs-ofctl ofp-print "\
265205 1e 00 18 00 00 00 0a \
265300 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2654"], [0], [dnl
9620f50c 2655OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2656])
2657AT_CLEANUP
2658
2659AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2660AT_KEYWORDS([ofp-print])
2661AT_CHECK([ovs-ofctl ofp-print "\
266205 1e 00 18 00 00 00 0a \
266300 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2664"], [0], [dnl
9620f50c 2665OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2666])
2667AT_CLEANUP
2668
2669AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2670AT_KEYWORDS([ofp-print])
2671AT_CHECK([ovs-ofctl ofp-print "\
267205 1e 00 18 00 00 00 0a \
267300 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2674"], [0], [dnl
9620f50c 2675OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2676])
2677AT_CLEANUP
2678
54834960
EJ
2679AT_SETUP([NXT_SET_PACKET_IN])
2680AT_KEYWORDS([ofp-print])
2681AT_CHECK([ovs-ofctl ofp-print "\
268201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
268300 00 00 01 \
2684"], [0], [dnl
2685NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2686])
2687AT_CLEANUP
2688
2689AT_SETUP([NXT_PACKET_IN])
2690AT_KEYWORDS([ofp-print])
2691AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 269201 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2693ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 269400 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
269520 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
269600 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
269700 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 269800 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2699ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
270080 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
270100 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 270200 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
270331 6d 00 00 00 00 00 00 00 00 \
2704"], [0], [dnl
50dcbd8e 2705NXT_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 2706tcp,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
2707])
2708AT_CLEANUP
2709
b4ccee75
SH
2710AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2711AT_KEYWORDS([ofp-print])
2712AT_CHECK([ovs-ofctl ofp-print "\
271301 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2714ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
271500 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
271620 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
271700 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
271800 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
271900 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2720ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
272180 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
272200 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 272300 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
272431 6d 00 00 00 00 00 00 00 00 \
2725" 3], [0], [dnl
50dcbd8e 2726NXT_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 2727tcp,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
272800000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
272900000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
273000000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 273100000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2732])
2733AT_CLEANUP
2734
80d5aefd
BP
2735AT_SETUP([NXT_SET_ASYNC_CONFIG])
2736AT_KEYWORDS([ofp-print])
2737AT_CHECK([ovs-ofctl ofp-print "\
273801 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
273900 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
274000 00 00 00 00 00 00 03 \
2741"], [0], [dnl
2742NXT_SET_ASYNC_CONFIG (xid=0x0):
2743 master:
2744 PACKET_IN: no_match invalid_ttl 12
2745 PORT_STATUS: add delete
2746 FLOW_REMOVED: (off)
2747
2748 slave:
2749 PACKET_IN: no_match action invalid_ttl 12
2750 PORT_STATUS: add delete modify
2751 FLOW_REMOVED: idle hard
2752])
2753AT_CLEANUP
2754
a7349929
BP
2755AT_SETUP([NXT_SET_CONTROLLER_ID])
2756AT_KEYWORDS([ofp-print])
2757AT_CHECK([ovs-ofctl ofp-print "\
275801 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
275900 00 00 00 00 00 00 7b \
2760"], [0], [dnl
2761NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2762])
2763AT_CLEANUP
2764
2b07c8b1
BP
2765AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2766AT_KEYWORDS([ofp-print])
2767AT_CHECK([ovs-ofctl ofp-print "\
276801 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
276901 02 30 40 \
2770"], [0], [dnl
2771NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2772])
2773AT_CLEANUP
2774
2775AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2776AT_KEYWORDS([ofp-print])
2777AT_CHECK([ovs-ofctl ofp-print "\
277801 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2779"], [0], [dnl
2780NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2781])
2782AT_CLEANUP
2783
2784AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2785AT_KEYWORDS([ofp-print])
2786AT_CHECK([ovs-ofctl ofp-print "\
278701 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2788"], [0], [dnl
2789NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2790])
2791AT_CLEANUP
2792
fec00620
BP
2793AT_SETUP([NXT_SET_FLOW_FORMAT])
2794AT_KEYWORDS([ofp-print])
2795AT_CHECK([ovs-ofctl ofp-print "\
279601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
279700 00 00 02 \
2798"], [0], [dnl
2799NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2800])
2801AT_CLEANUP
2802
2803# The flow is formatted with cls_rule_format() for the low-verbosity case.
2804AT_SETUP([NXT_FLOW_MOD, low verbosity])
2805AT_KEYWORDS([ofp-print])
2806AT_CHECK([ovs-ofctl ofp-print "\
280701 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
280800 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2809ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
281000 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
281100 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
281200 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2813" 2], [0], [dnl
de0f16bc 2814NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2815])
2816AT_CLEANUP
2817
eec25dc1
BP
2818# The flow is formatted with ofp10_match_to_string() for the
2819# low-verbosity case.
fec00620
BP
2820AT_SETUP([NXT_FLOW_MOD, high verbosity])
2821AT_KEYWORDS([ofp-print])
2822AT_CHECK([ovs-ofctl ofp-print "\
282301 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
282400 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2825ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
282600 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
282700 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
282800 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2829" 3], [0], [dnl
de0f16bc 2830NXT_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
2831])
2832AT_CLEANUP
2833
76c41209 2834AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
2835AT_KEYWORDS([ofp-print])
2836AT_CHECK([ovs-ofctl ofp-print "\
283702 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
283800 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
283900 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
284000 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
284100 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
284200 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
284300 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2844"], [0], [dnl
2845OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2846 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
2847])
2848AT_CLEANUP
2849
76c41209
SH
2850AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
2851AT_KEYWORDS([ofp-print])
2852AT_CHECK([ovs-ofctl ofp-print "\
0c4b9393 285306 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \
76c41209
SH
285400 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
285500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
285600 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
285700 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
285800 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
285900 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
286000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
286100 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
0c4b9393
SH
2862ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \
286368 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \
286400 00 00 00 00 00 00 07 \
76c41209
SH
2865"], [0], [dnl
2866OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
0c4b9393 2867 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
2868])
2869AT_CLEANUP
2870
2871AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
2872AT_KEYWORDS([ofp-print])
2873AT_CHECK([ovs-ofctl ofp-print "\
287406 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
287500 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
287600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
287700 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
287800 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
287900 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
288000 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
288100 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
288200 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
2883"], [0], [dnl
2884OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
2885 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
2886])
2887AT_CLEANUP
2888
fec00620
BP
2889AT_SETUP([NXT_FLOW_REMOVED])
2890AT_KEYWORDS([ofp-print])
2891AT_CHECK([ovs-ofctl ofp-print "\
289201 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 289300 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
289401 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
289500 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
289602 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
289700 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
28981e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2899c0 a8 00 02 00 00 00 00 \
2900"], [0], [dnl
745bfd5e 2901NXT_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
2902])
2903AT_CLEANUP
2904
a1a7d333
BP
2905AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2906AT_KEYWORDS([ofp-print])
2907AT_CHECK([ovs-ofctl ofp-print "\
290801 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
290901 00 00 00 00 00 00 00 \
2910"], [0], [dnl
2911NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2912])
2913AT_CLEANUP
2914
fec00620
BP
2915AT_SETUP([NXST_FLOW request])
2916AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2917AT_CHECK([ovs-ofctl ofp-print "\
291801 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
291900 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2920"], [0], [dnl
54ae6fa8 2921NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2922])
2923AT_CLEANUP
2924
2925AT_SETUP([NXST_FLOW reply])
2926AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2927AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 292801 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
292900 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
293002 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
293100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
293200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
293302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
293400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29350a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2936a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
293714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
293800 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 293900 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
294000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
294100 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
294200 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
294300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2944a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
294500 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
294600 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 294733 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
294800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
294900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
295002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
295100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29520a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2953a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
295414 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
295500 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 295600 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
295700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
295800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
295900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
296000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2961a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
296200 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
296300 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 296434 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
296500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
296600 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
296702 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
296800 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29690a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2970a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
297114 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
297200 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
297300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
297400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
297500 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
297600 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
297700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2978a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
297900 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
298000 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
298102 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
298200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
298300 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
298402 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
298500 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29860a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2987a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
298814 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
298900 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
299000 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
299100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
299200 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
299300 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
299400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2995a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
299600 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
299700 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
299827 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
299900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
300000 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
300102 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
300200 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30030a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3004a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
300514 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
300600 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
300700 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
300800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
300900 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
301000 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
301100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3012a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
301300 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
301400 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
30150a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
301600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
301700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
301802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
301900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30200a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3021a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
302214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
302300 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
302400 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
302500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
302600 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
302700 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
302800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3029a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
303000 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
303100 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
303204 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
303300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
303400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
303502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
303600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30370a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3038a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
303914 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
304000 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
304100 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
304200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
304300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
304400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
304500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3046a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
304700 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
304800 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
30492e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
305000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
305100 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
305200 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3053ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
305400 00 00 00 00 00 00 05 \
05b8f1c2
BP
305500 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
305600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
305700 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3058"], [0],
3059[[NXST_FLOW reply (xid=0x4):
b9718b7b 3060 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 3061 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
3062 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
3063 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 3064 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 3065 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 3066 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
3067 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
3068 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
3069 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
3070 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
3071 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
3072 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
3073 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
3074 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 3075 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3076]])
3077AT_CLEANUP
3078
3079AT_SETUP([NXST_AGGREGATE request])
3080AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3081AT_CHECK([ovs-ofctl ofp-print "\
308201 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
308300 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3084"], [0], [dnl
54ae6fa8 3085NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
3086])
3087AT_CLEANUP
3088
3089AT_SETUP([NXST_AGGREGATE reply])
3090AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3091AT_CHECK([ovs-ofctl ofp-print "\
309201 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
309300 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
309400 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3095"], [0], [dnl
3096NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3097])
3098AT_CLEANUP
2b07c8b1
BP
3099
3100AT_SETUP([NXST_FLOW_MONITOR request])
3101AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3102AT_CHECK([ovs-ofctl ofp-print "\
310301 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
310400 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
310500 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3106"], [0], [dnl
3107NXST_FLOW_MONITOR request (xid=0x4):
3108 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3109 id=8192 flags=delete table=2 in_port=1
3110])
3111AT_CLEANUP
3112
3113AT_SETUP([NXST_FLOW_MONITOR reply])
3114AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3115AT_CHECK([ovs-ofctl ofp-print "\
311601 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 311700 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
311800 00 00 02 00 01 00 00 \
311900 08 00 03 00 01 86 a0 \
3120"], [0], [dnl
3121NXST_FLOW_MONITOR reply (xid=0x4):
3122 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3123 event=ABBREV xid=0x186a0
3124])
3125AT_CLEANUP
777af88d
AC
3126
3127
3128AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3129AT_KEYWORDS([ofp-print])
3130AT_CHECK([ovs-ofctl ofp-print "\
313105 21 00 10 00 00 00 00 \
313200 00 00 01 00 00 00 01 \
3133"], [0], [dnl
3134OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3135 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3136])
3137AT_CLEANUP
3138
3139AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3140AT_KEYWORDS([ofp-print])
3141AT_CHECK([ovs-ofctl ofp-print "\
314205 21 00 10 00 00 00 00 \
314300 00 00 01 00 00 00 02 \
3144"], [0], [dnl
3145OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3146 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3147])
3148AT_CLEANUP
3149
3150AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3151AT_KEYWORDS([ofp-print])
3152AT_CHECK([ovs-ofctl ofp-print "\
315305 21 00 10 00 00 00 00 \
315400 00 00 01 00 00 00 03 \
3155"], [0], [dnl
3156OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3157 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3158])
3159AT_CLEANUP
3160
3161AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
3162AT_KEYWORDS([ofp-print])
3163AT_CHECK([ovs-ofctl ofp-print "\
316405 21 00 10 00 00 00 00 \
316500 00 00 01 00 01 00 01 \
3166"], [0], [dnl
3167OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3168 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3169])
3170AT_CLEANUP
3171
3172AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
3173AT_KEYWORDS([ofp-print])
3174AT_CHECK([ovs-ofctl ofp-print "\
317505 21 00 10 00 00 00 00 \
317600 00 00 01 00 02 00 01 \
3177"], [0], [dnl
3178OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3179 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3180])
3181AT_CLEANUP
3182
3183AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3184AT_KEYWORDS([ofp-print])
3185AT_CHECK([ovs-ofctl ofp-print "\
318605 21 00 10 00 00 00 00 \
318700 00 00 01 00 03 00 01 \
3188"], [0], [dnl
3189OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3190 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3191])
3192AT_CLEANUP
3193
3194AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3195AT_KEYWORDS([ofp-print])
3196AT_CHECK([ovs-ofctl ofp-print "\
319705 21 00 10 00 00 00 00 \
319800 00 00 01 00 04 00 01 \
3199"], [0], [dnl
3200OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3201 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3202])
3203AT_CLEANUP
3204
3205AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3206AT_KEYWORDS([ofp-print])
3207AT_CHECK([ovs-ofctl ofp-print "\
320805 21 00 10 00 00 00 00 \
320900 00 00 01 00 05 00 01 \
3210"], [0], [dnl
3211OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3212 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3213])
3214AT_CLEANUP
3215
3216AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3217AT_KEYWORDS([ofp-print])
3218AT_CHECK([ovs-ofctl ofp-print "\
321905 21 00 10 00 00 00 00 \
322000 00 00 01 00 06 00 01 \
3221"], [0], [dnl
3222OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3223 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3224])
3225AT_CLEANUP
3226
3227AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3228AT_KEYWORDS([ofp-print])
3229AT_CHECK([ovs-ofctl ofp-print "\
323005 21 00 10 00 00 00 00 \
323100 00 00 01 00 07 00 01 \
3232"], [0], [dnl
3233OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3234 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3235])
3236AT_CLEANUP
3237
be6f6393
JR
3238AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
3239AT_KEYWORDS([ofp-print])
3240AT_CHECK([ovs-ofctl ofp-print "\
324105 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 324205 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
be6f6393
JR
3243"], [0], [dnl
3244OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
3245])
3246AT_CLEANUP
3247
c25ce22d 3248AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
777af88d
AC
3249AT_KEYWORDS([ofp-print])
3250AT_CHECK([ovs-ofctl ofp-print "\
c25ce22d 325105 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
46be7132 325205 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
c25ce22d
JR
3253"], [0], [dnl
3254OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
3255])
3256AT_CLEANUP
3257
3258AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
3259AT_KEYWORDS([ofp-print])
3260AT_CHECK([ovs-ofctl ofp-print "\
326105 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
46be7132 326205 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
c25ce22d
JR
326300 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3264ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
326500 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
326650 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
326780 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
326800 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
326900 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
327000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3271"], [0], [dnl
3272OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3273 bundle_id=0x1 flags=atomic
46be7132 3274OFPT_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
3275])
3276AT_CLEANUP
3277
3278AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
3279AT_KEYWORDS([ofp-print])
3280AT_CHECK([ovs-ofctl ofp-print "\
328105 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
328205 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
328350 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
328400 00 00 08 00 00 00 01
777af88d 3285"], [0], [dnl
c25ce22d 3286OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
777af88d 3287 bundle_id=0x1 flags=atomic
c25ce22d
JR
3288OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
3289 config: PORT_DOWN
3290 mask: PORT_DOWN
3291 advertise: 10MB-HD
777af88d
AC
3292])
3293AT_CLEANUP