]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ofproto: Correctly report table miss configuration in table stats.
[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
dc235f7f 450tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=0x002 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
dc235f7f 464tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=0x010 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
483tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=0x002 tcp_csum:26e8
484])
485AT_CLEANUP
486
7cfb9651
SH
487AT_SETUP([OFPT_PACKET_IN - OF1.2])
488AT_KEYWORDS([ofp-print])
489AT_CHECK([ovs-ofctl ofp-print "\
49003 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
49100 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
49200 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
eb19e5f0 49300 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \
7cfb9651
SH
49400 00 00 23 20 83 c1 5f 00 00 00 00 \
495"], [0], [dnl
496OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
eb19e5f0 497rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=1,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
7cfb9651
SH
498])
499AT_CLEANUP
500
b4ccee75
SH
501AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
502AT_KEYWORDS([ofp-print])
503AT_CHECK([ovs-ofctl ofp-print "\
50403 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
50500 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
50600 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
50700 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
50800 00 00 23 20 83 c1 5f 00 00 00 00 \
509" 3], [0], [dnl
510OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
511rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
51200000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
51300000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
51400000020 00 23 20 83 c1 5f 00 00-00 00
515])
516AT_CLEANUP
517
2e1ae200
JR
518AT_SETUP([OFPT_PACKET_IN - OF1.3])
519AT_KEYWORDS([ofp-print])
520AT_CHECK([ovs-ofctl ofp-print "\
52104 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
52201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
523ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
52400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
52500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
52600 00 00 00 \
527"], [0], [dnl
528OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
3f78c3cc 529rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
2e1ae200
JR
530])
531AT_CLEANUP
532
b4ccee75
SH
533AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
534AT_KEYWORDS([ofp-print])
535AT_CHECK([ovs-ofctl ofp-print "\
53604 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
53701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
538ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
53900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
54000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
54100 00 00 00 \
542" 3], [0], [dnl
543OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
544rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
54500000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
54600000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
54700000020 00 23 20 83 c1 5f 00 00-00 00
548])
549AT_CLEANUP
550
eefbf181 551AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
552AT_KEYWORDS([ofp-print])
553AT_CHECK([ovs-ofctl ofp-print "\
55401 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
55500 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
55600 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
55700 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
55830 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
55900 00 00 00 00 00 00 3c \
560"], [0], [dnl
b1634591 561OFPT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.820s idle5 pkts1 bytes60
fec00620
BP
562])
563AT_CLEANUP
564
eefbf181
SH
565AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
566AT_KEYWORDS([ofp-print])
567AT_CHECK([ovs-ofctl ofp-print "\
56803 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
56980 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
57000 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
57100 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 572OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
573])
574AT_CLEANUP
575
2e1ae200
JR
576AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
577AT_KEYWORDS([ofp-print])
578AT_CHECK([ovs-ofctl ofp-print "\
57904 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
58080 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
58100 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
58200 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 583OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
2e1ae200
JR
584])
585AT_CLEANUP
586
9e1fd49b 587AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
588AT_KEYWORDS([ofp-print])
589AT_CHECK([ovs-ofctl ofp-print "\
59001 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
59100 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
59200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
59300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
594"], [0], [dnl
0ab14c8e
BP
595OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
596 config: PORT_DOWN
597 state: LINK_DOWN
598 current: 100MB-FD AUTO_NEG
599 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
600 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
601 speed: 100 Mbps now, 100 Mbps max
602])
603AT_CLEANUP
604
605AT_SETUP([OFPT_PORT_STATUS - OF1.1])
606AT_KEYWORDS([ofp-print])
607AT_CHECK([ovs-ofctl ofp-print "\
60802 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
60900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
61065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
61100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
61200 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
613"], [0], [dnl
614OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
615 config: 0
616 state: 0
617 current: 100MB-FD AUTO_NEG
618 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
619 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
620 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
621])
622AT_CLEANUP
623
8c3cc785
BP
624AT_SETUP([OFPT_PORT_STATUS - OF1.4])
625AT_KEYWORDS([ofp-print])
626AT_CHECK([ovs-ofctl ofp-print "\
62705 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
62800 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
62965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
63000 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
63100 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
63200 01 86 a0 00 01 86 a0 \
633"], [0], [dnl
634OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
635 config: 0
636 state: 0
637 current: 100MB-FD AUTO_NEG
638 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
639 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
640 speed: 100 Mbps now, 100 Mbps max
641])
642AT_CLEANUP
643
eb5ee596 644AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
645AT_KEYWORDS([ofp-print])
646AT_CHECK([ovs-ofctl ofp-print "\
64701 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
64800 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
64900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
650b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
65100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
65200 00 00 00 \
653"], [0], [dnl
c6a93eb7 654OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
655])
656AT_CLEANUP
657
4b2d9d11
SH
658AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
659AT_KEYWORDS([ofp-print])
660AT_CHECK([ovs-ofctl ofp-print "\
66101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
66200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
66300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
664b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
66500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
66600 00 00 00 \
667"], [0], [dnl
668OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
dc235f7f 669tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=0x014 tcp_csum:6d75
4b2d9d11
SH
670])
671AT_CLEANUP
672
b4ccee75
SH
673AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
674AT_KEYWORDS([ofp-print])
675AT_CHECK([ovs-ofctl ofp-print "\
67601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
67700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
67800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
679b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
68000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
68100 00 00 00 \
682" 3], [0], [dnl
683OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
dc235f7f 684tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=0x014 tcp_csum:6d75
b4ccee75
SH
68500000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
68600000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
68700000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
68800000030 00 00 6d 75 00 00 00 00-00 00 00 00
689])
690AT_CLEANUP
691
eb5ee596
SH
692AT_SETUP([OFPT_PACKET_OUT - OF1.1])
693AT_KEYWORDS([ofp-print])
694AT_CHECK([ovs-ofctl ofp-print "\
69503 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
69600 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
69705 dc 00 00 00 00 00 00 \
698"], [0], [dnl
699OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
700])
701AT_CLEANUP
702
4b2d9d11
SH
703AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
704AT_KEYWORDS([ofp-print])
705AT_CHECK([ovs-ofctl ofp-print "\
70603 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
70700 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
70805 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
70900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
710b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
71100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
71200 00 00 00 \
713"], [0], [dnl
714OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
dc235f7f 715tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=0x014 tcp_csum:6d75
4b2d9d11
SH
716])
717AT_CLEANUP
718
fec00620 719# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 720AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 721AT_KEYWORDS([ofp-print])
1c0b7503 722AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
72301 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
72400 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
72500 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
72600 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
72700 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
728" 2], [0], [dnl
666d0863 729OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 idle:5 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
730], [dnl
731ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
732ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
733ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
734])
735AT_CLEANUP
736
75fa58f8
BP
737# The flow is formatted with cls_rule_format() for the low-verbosity case.
738AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
739AT_KEYWORDS([ofp-print])
740AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
741020e 0090 01020304 \
742da1aa3e035d87158 ffffffffffffffff \
74302 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
7440000 \
745\
7460000 0058 00000000 000003f7 \
747000000000000ffffffffffff 000000000000ffffffffffff \
7480000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
74900000000 00 000000 0000000000000000ffffffffffffffff \
750\
7510001 0008 03 000000 \
752" 2], [0], [dnl
753OFPT_FLOW_MOD (OF1.1) (xid=0x1020304): MOD table:2 priority=40000,arp,arp_spa=192.168.128.0/24 cookie:0xda1aa3e035d87158/0xffffffffffffffff idle:60 hard:120 send_flow_rem check_overlap actions=goto_table:3
754])
755AT_CLEANUP
756
1bf6eeb0
SH
757# The flow is formatted with cls_rule_format() for the low-verbosity case.
758AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
759AT_KEYWORDS([ofp-print])
760AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
76103 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 76200 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
763ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
76400 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
76550 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
76680 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
76700 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
76800 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
76900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
770" 2], [0], [dnl
0e197060 771OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
772], [dnl
773])
774AT_CLEANUP
775
eec25dc1
BP
776# The flow is formatted with ofp10_match_to_string() for the
777# high-verbosity case.
1bf6eeb0 778AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 779AT_KEYWORDS([ofp-print])
1c0b7503 780AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
78101 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
78200 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
78300 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
78400 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
78500 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
786" 3], [0], [dnl
de0f16bc 787OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
788], [dnl
789ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
790ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
791ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
792])
793AT_CLEANUP
794
1bf6eeb0
SH
795# The flow is formatted with cls_rule_format() for the low-verbosity case.
796AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
797AT_KEYWORDS([ofp-print])
798AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
79903 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 80000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
801ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
80200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
80350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
80480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
80500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
80600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
80700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
808" 2], [0], [dnl
0e197060 809OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
810], [dnl
811])
812AT_CLEANUP
813
2e1ae200
JR
814# The flow is formatted with cls_rule_format() for the low-verbosity case.
815AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
816AT_KEYWORDS([ofp-print])
817AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
81804 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 81900 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
2e1ae200
JR
820ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
82100 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
82250 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
82380 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
82400 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
82500 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
82600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
827" 2], [0], [dnl
0e197060 828OFPT_FLOW_MOD (OF1.3) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 send_flow_rem check_overlap reset_counts no_packet_counts no_byte_counts actions=output:3
2e1ae200
JR
829], [dnl
830])
831AT_CLEANUP
832
d55b18c8
IY
833AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
834AT_KEYWORDS([ofp-print])
835AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
83603 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
83700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
838ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
83900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
84000 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
841c0 a8 03 5c 00 00 00 00 \
842" 2], [0], [dnl
843OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
844], [dnl
845])
846AT_CLEANUP
847
848AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
849AT_KEYWORDS([ofp-print])
850AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
85103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
85200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
853ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
85400 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
85500 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
856c0 a8 4a 7a 00 00 00 00 \
857" 2], [0], [dnl
858OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
859], [dnl
860])
861AT_CLEANUP
862
0d56eaf2
JS
863AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
864AT_KEYWORDS([ofp-print])
865AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
86603 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
86700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
868ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
86900 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
87000 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
8710d 06 00 00 00 00 00 00 \
872" 2], [0], [dnl
873OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
874], [dnl
875])
876AT_CLEANUP
877
878AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
879AT_KEYWORDS([ofp-print])
880AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
88103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
88200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
883ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
88400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
88500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
88611 5d 00 00 00 00 00 00 \
887" 2], [0], [dnl
888OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
889], [dnl
890])
891AT_CLEANUP
892
b2a27ddc
BP
893dnl This triggered a buggy "instructions out of order" message earlier.
894AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
895AT_KEYWORDS([ofp-print])
896AT_CHECK([ovs-ofctl ofp-print "\
89704 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
89800 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
899ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
90000 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
901OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
902])
903AT_CLEANUP
904
d55b18c8
IY
905AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
906AT_KEYWORDS([ofp-print])
907AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
90803 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
90900 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
91000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91200 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
91300 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
914c0 a8 03 5c 00 00 00 00 \
915" 2], [0], [dnl
916OFPST_FLOW reply (OF1.2) (xid=0x52334504):
917 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
918], [dnl
919])
920AT_CLEANUP
921
922AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
923AT_KEYWORDS([ofp-print])
924AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
92503 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
92600 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
92700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
93000 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
931c0 a8 4a 7a 00 00 00 00 \
932" 2], [0], [dnl
933OFPST_FLOW reply (OF1.2) (xid=0x52334509):
934 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
935], [dnl
936])
937AT_CLEANUP
938
0d56eaf2
JS
939AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
940AT_KEYWORDS([ofp-print])
941AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
94203 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
94300 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
94400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94600 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
94700 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
9480d 06 00 00 00 00 00 00 \
949" 2], [0], [dnl
950OFPST_FLOW reply (OF1.2) (xid=0x52334504):
951 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
952], [dnl
953])
954AT_CLEANUP
955
956AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
957AT_KEYWORDS([ofp-print])
958AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
95903 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
96000 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
96100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96300 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
96400 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
96511 5d 00 00 00 00 00 00 \
966" 2], [0], [dnl
967OFPST_FLOW reply (OF1.2) (xid=0x52334509):
968 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
969], [dnl
970])
971AT_CLEANUP
972
9e1fd49b 973AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
974AT_KEYWORDS([ofp-print])
975AT_CHECK([ovs-ofctl ofp-print "\
97601 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
97700 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
978" 3], [0], [dnl
9e1fd49b
BP
979OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
980 config: PORT_DOWN
981 mask: PORT_DOWN
982 advertise: UNCHANGED
983])
984AT_CLEANUP
985
986AT_SETUP([OFPT_PORT_MOD - OF1.1])
987AT_KEYWORDS([ofp-print])
988AT_CHECK([ovs-ofctl ofp-print "\
98902 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
99050 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
99100 00 00 00 00 00 00 00 \
992" 3], [0], [dnl
993OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
994 config: PORT_DOWN
995 mask: PORT_DOWN
fec00620
BP
996 advertise: UNCHANGED
997])
998AT_CLEANUP
999
bb2bc3c1
SH
1000AT_SETUP([OFPT_PORT_MOD - OF1.2])
1001AT_KEYWORDS([ofp-print])
1002AT_CHECK([ovs-ofctl ofp-print "\
100303 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
100450 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
100500 00 00 00 00 00 00 00 \
1006" 3], [0], [dnl
1007OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1008 config: PORT_DOWN
1009 mask: PORT_DOWN
1010 advertise: UNCHANGED
1011])
1012AT_CLEANUP
1013
2e1ae200
JR
1014AT_SETUP([OFPT_PORT_MOD - OF1.3])
1015AT_KEYWORDS([ofp-print])
1016AT_CHECK([ovs-ofctl ofp-print "\
101704 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
101850 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
101900 00 00 00 00 00 00 00 \
1020" 3], [0], [dnl
1021OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1022 config: PORT_DOWN
1023 mask: PORT_DOWN
1024 advertise: UNCHANGED
1025])
1026AT_CLEANUP
1027
18cc69d9
BP
1028AT_SETUP([OFPT_PORT_MOD - OF1.4])
1029AT_KEYWORDS([ofp-print])
1030AT_CHECK([ovs-ofctl ofp-print "\
103105 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
103250 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
103300 00 00 08 00 00 00 01
1034" 3], [0], [dnl
1035OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1036 config: PORT_DOWN
1037 mask: PORT_DOWN
1038 advertise: 10MB-HD
1039])
1040AT_CLEANUP
1041
918f2b82
AZ
1042AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1043AT_KEYWORDS([ofp-print])
1044AT_CHECK([ovs-ofctl ofp-print "\
104502 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1046" 3], [0], [dnl
1047OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1048])
1049AT_CLEANUP
1050
1051AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1052AT_KEYWORDS([ofp-print])
1053AT_CHECK([ovs-ofctl ofp-print "\
105403 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1055" 3], [0], [dnl
1056OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1057])
1058AT_CLEANUP
1059
307873b7 1060# ofp_table_mod.config is actually "reserved for future use" in OF1.3.
918f2b82
AZ
1061AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1062AT_KEYWORDS([ofp-print])
1063AT_CHECK([ovs-ofctl ofp-print "\
106404 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1065" 3], [0], [dnl
1066OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2, flow_miss_config=controller
1067])
1068AT_CLEANUP
1069
37ab26e8
BP
1070AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1071AT_KEYWORDS([ofp-print])
1072AT_CHECK([ovs-ofctl ofp-print "\
107305 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1074" 3], [0], [dnl
1075OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, flow_miss_config=controller
1076])
1077AT_CLEANUP
1078
fec00620
BP
1079AT_SETUP([OFPST_DESC request])
1080AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1081AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1082OFPST_DESC request (xid=0x1):
1083])
1084AT_CLEANUP
1085
1086AT_SETUP([OFPST_DESC reply])
1087AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1088AT_CHECK([ovs-ofctl ofp-print "\
108901 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
109072 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
109100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
109200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110500 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
110620 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
110700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112100 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
112230 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
112300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113700 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
113800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113900 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
114000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115500 00 00 00 00 00 00 00 00 00 00 00 \
1156"], [0], [dnl
1157OFPST_DESC reply (xid=0x1):
e0edde6f 1158Manufacturer: Nicira, Inc.
fec00620
BP
1159Hardware: Open vSwitch
1160Software: 1.1.0pre2
1161Serial Num: None
1162DP Description: None
1163])
1164AT_CLEANUP
1165
0157ad3a 1166AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1167AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1168AT_CHECK([ovs-ofctl ofp-print "\
116901 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1170ff fe 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 ff 00 ff ff \
1173"], [0], [dnl
54ae6fa8 1174OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1175])
1176AT_CLEANUP
1177
0157ad3a
SH
1178AT_SETUP([OFPST_FLOW request - OF1.2])
1179AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1180AT_CHECK([ovs-ofctl ofp-print "\
118103 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1182ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
118300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118400 01 00 04 00 00 00 00 \
1185"], [0], [dnl
1186OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1187])
1188AT_CLEANUP
1189
2e1ae200
JR
1190AT_SETUP([OFPST_FLOW request - OF1.3])
1191AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1192AT_CHECK([ovs-ofctl ofp-print "\
119304 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1194ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
119500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119600 01 00 04 00 00 00 00 \
1197"], [0], [dnl
1198OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1199])
1200AT_CLEANUP
1201
6ec5f0c5 1202AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1203AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1204AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 120501 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
120600 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
120700 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1208c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1209ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
121000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
121100 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
121200 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
121300 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1214c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1215ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
121600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
121700 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
121800 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
121900 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1220c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1221ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
122200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
122300 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 122400 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
122500 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1226c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 122780 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
122800 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
122900 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
123000 58 02 00 00 3f ff ff 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 00 00 00 00 00 00 00 00 00 00 00 00 \
123300 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
123400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123500 00 00 00 00 00 00 00 \
fec00620
BP
1236"], [0], [dnl
1237OFPST_FLOW reply (xid=0x4):
b1634591
BP
1238 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
1239 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
1240 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 1241 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 1242 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1243])
1244AT_CLEANUP
1245
6ec5f0c5
SH
1246AT_SETUP([OFPST_FLOW reply - OF1.2])
1247AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1248AT_CHECK([ovs-ofctl ofp-print "\
124903 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
125000 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
125100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
125200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
125300 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1254ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
125500 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
125600 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
125705 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
125820 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
125900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
126000 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
126100 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
12620a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
126300 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
126400 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
126500 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
126600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
126800 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
126952 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
127000 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
127100 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
127205 dc 00 00 00 00 00 00 \
1273"], [0], [dnl
1274OFPST_FLOW reply (OF1.2) (xid=0x2):
1275 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
1276 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
1277 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
1278])
1279AT_CLEANUP
1280
617da9cd 1281AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1282AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1283AT_CHECK([ovs-ofctl ofp-print "\
128401 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1285ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128700 00 00 00 ff 00 ff ff \
1288"], [0], [dnl
54ae6fa8 1289OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1290])
1291AT_CLEANUP
1292
617da9cd
SH
1293AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1294AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1295AT_CHECK([ovs-ofctl ofp-print "\
129603 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1297ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
129800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129900 01 00 04 00 00 00 00 \
1300"], [0], [dnl
1301OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1302])
1303AT_CLEANUP
1304
2e1ae200
JR
1305AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1306AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1307AT_CHECK([ovs-ofctl ofp-print "\
130804 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1309ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
131000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131100 01 00 04 00 00 00 00 \
1312"], [0], [dnl
1313OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1314])
1315AT_CLEANUP
1316
617da9cd 1317AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1318AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1319AT_CHECK([ovs-ofctl ofp-print "\
132001 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
132100 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
132200 00 00 00 \
1323"], [0], [dnl
1324OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1325])
1326AT_CLEANUP
1327
617da9cd
SH
1328AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1329AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1330AT_CHECK([ovs-ofctl ofp-print "\
133103 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
133200 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
133300 00 00 03 00 00 00 00 \
1334"], [0], [dnl
1335OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1336])
1337AT_CLEANUP
1338
2e1ae200
JR
1339AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1340AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1341AT_CHECK([ovs-ofctl ofp-print "\
134204 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
134300 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
134400 00 00 03 00 00 00 00 \
1345"], [0], [dnl
1346OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1347])
1348AT_CLEANUP
1349
307975da 1350AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1351AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1352AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1353OFPST_TABLE request (xid=0x1):
1354])
1355AT_CLEANUP
1356
307975da
SH
1357AT_SETUP([OFPST_TABLE request - OF1.1])
1358AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1359AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1360OFPST_TABLE request (OF1.1) (xid=0x2):
1361])
1362AT_CLEANUP
1363
1364AT_SETUP([OFPST_TABLE request - OF1.2])
1365AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1366AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1367OFPST_TABLE request (OF1.2) (xid=0x2):
1368])
1369AT_CLEANUP
1370
2e1ae200
JR
1371AT_SETUP([OFPST_TABLE request - OF1.3])
1372AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1373AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1374OFPST_TABLE request (OF1.3) (xid=0x2):
1375])
1376AT_CLEANUP
1377
26df8b3e 1378AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1379AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1380AT_CHECK([ovs-ofctl ofp-print "\
138101 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
138263 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
138300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138400 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
138500 00 00 00 00 00 00 00 00 00 00 00 \
1386"], [0], [dnl
1387OFPST_TABLE reply (xid=0x1): 1 tables
1388 0: classifier: wild=0x3fffff, max=1048576, active=11
1389 lookup=0, matched=0
1390])
1391AT_CLEANUP
1392
26df8b3e
SH
1393AT_SETUP([OFPST_TABLE reply - OF1.2])
1394AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1395(mid="wild=0xfffffffff, max=1000000,"
1396 tail="
1397 match=0xfffffffff, instructions=0x00000007, config=0x00000000
1398 write_actions=0x00000000, apply_actions=0x00000000
1399 write_setfields=0x0000000fffffffff
1400 apply_setfields=0x0000000fffffffff
1401 metadata_match=0x0000000000000000
1402 metadata_write=0x0000000000000000"
1403 echo "OFPST_TABLE reply (OF1.2) (xid=0x2): 255 tables
1404 0: classifier: $mid active=1
1405 lookup=74614, matched=106024$tail"
1406 x=1
1407 while test $x -lt 254; do
1408 printf " %d: %-8s: $mid active=0
1409 lookup=0, matched=0$tail
1410" $x table$x
1411 x=`expr $x + 1`
1412 done
1413 echo " 254: table254: $mid active=2
1414 lookup=0, matched=0$tail") > expout
1415
1416(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"
1417 pad7="00 00 00 00 00 00 00 "
1418 mid="00 00 00 0f ff ff ff ff \
141900 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
142000 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
142100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
142200 00 00 07 00 00 00 00 00 0f 42 40 "
1423 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1424
1425 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1426
1427 x=0
1428 printf "%02x $pad7" $x
1429 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1430 echo -n "$mid 00 00 00 01 "
1431 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1432
1433 x=1
1434 while test $x -lt 254; do
1435 printf "%02x $pad7" $x
1436 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1437 echo -n "$mid 00 00 00 00 $tail "
1438 x=`expr $x + 1`
1439 done
1440
1441 x=254
1442 printf "%02x $pad7" $x
1443 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1444 echo -n "$mid 00 00 00 02 $tail") > in
8b227701 1445AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1446AT_CLEANUP
1447
2e1ae200
JR
1448AT_SETUP([OFPST_TABLE reply - OF1.3])
1449AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1450AT_CHECK([ovs-ofctl ofp-print "\
145104 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
145200 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
145300 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
145400 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1455"], [0], [dnl
1456OFPST_TABLE reply (OF1.3) (xid=0x1): 2 tables
1457 0: active=11, lookup=512, matched=256
1458 1: active=12, lookup=513, matched=257
1459])
1460AT_CLEANUP
1461
f8e4867e 1462AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1463AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1464AT_CHECK([ovs-ofctl ofp-print "\
146501 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
146600 00 00 00 \
1467"], [0], [dnl
e1db42d6 1468OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1469])
1470AT_CLEANUP
1471
f8e4867e
SH
1472AT_SETUP([OFPST_PORT request - 1.1])
1473AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1474AT_CHECK([ovs-ofctl ofp-print "\
147502 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1476ff ff ff ff 00 00 00 00 \
1477"], [0], [dnl
e1db42d6 1478OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1479])
1480AT_CLEANUP
1481
1482AT_SETUP([OFPST_PORT request - 1.2])
1483AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1484AT_CHECK([ovs-ofctl ofp-print "\
148503 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1486ff ff ff ff 00 00 00 00 \
1487"], [0], [dnl
e1db42d6 1488OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1489])
1490AT_CLEANUP
1491
2e1ae200
JR
1492AT_SETUP([OFPST_PORT request - 1.3])
1493AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1494AT_CHECK([ovs-ofctl ofp-print "\
149504 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1496ff ff ff ff 00 00 00 00 \
1497"], [0], [dnl
e1db42d6 1498OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1499])
1500AT_CLEANUP
1501
f8e4867e 1502AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1503AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1504AT_CHECK([ovs-ofctl ofp-print "\
150501 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
150600 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
150700 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
150800 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
150900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151200 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
151300 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
151400 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
151500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151800 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
151900 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
152000 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
152100 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
152200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152500 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
152600 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
152700 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
152800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153100 00 00 00 00 00 00 00 00 00 00 00 \
1532"], [0], [dnl
1533OFPST_PORT reply (xid=0x1): 4 ports
1534 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1535 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1536 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1537 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1538 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1539 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1540 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1541 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1542])
1543AT_CLEANUP
1544
f8e4867e
SH
1545AT_SETUP([OFPST_PORT reply - OF1.2])
1546AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1547AT_CHECK([ovs-ofctl ofp-print "\
154803 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
154900 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
155000 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
155100 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
155200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155500 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
155600 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
155700 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
155800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156200 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
156300 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
156400 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
156500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156800 00 00 00 00 00 00 00 \
1569"], [0], [dnl
1570OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1571 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1572 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1573 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1574 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1575 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1576 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1577])
1578AT_CLEANUP
1579
65e0be10
BP
1580AT_SETUP([OFPST_PORT reply - OF1.3])
1581AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1582AT_CHECK([ovs-ofctl ofp-print "\
158304 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
158400 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
158500 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
158600 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
158700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159000 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1591ff ff ff fe 00 00 00 00 \
159200 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
159300 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
159400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1598ff ff ff ff ff ff ff ff \
159900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
160000 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
160100 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
160200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160500 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1606"], [0], [dnl
1607OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1608 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1609 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1610 duration=1.001s
1611 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1612 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1613 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1614 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1615 duration=0.123s
1616])
1617AT_CLEANUP
1618
5469537b
BP
1619AT_SETUP([OFPST_PORT reply - OF1.4])
1620AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1621AT_CHECK([ovs-ofctl ofp-print "\
162205 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
162300 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
162400 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
162500 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
162600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162800 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
162900 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
163000 00 00 00 00 00 00 ff \
1631"], [0], [dnl
1632OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1633 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1634 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1635 duration=1.001s
1636])
1637AT_CLEANUP
1638
64626975 1639AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1640AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1641AT_CHECK([ovs-ofctl ofp-print "\
164201 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1643ff ff ff ff \
1644"], [0], [dnl
7f05e7ab 1645OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1646])
1647AT_CLEANUP
1648
64626975
SH
1649AT_SETUP([OFPST_QUEUE request - OF1.1])
1650AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1651AT_CHECK([ovs-ofctl ofp-print "\
165202 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1653ff ff ff ff ff ff ff ff \
64626975 1654"], [0], [dnl
7f05e7ab 1655OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1656])
1657AT_CLEANUP
1658
1659AT_SETUP([OFPST_QUEUE request - OF1.2])
1660AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1661AT_CHECK([ovs-ofctl ofp-print "\
166203 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1663ff ff ff ff ff ff ff ff \
64626975 1664"], [0], [dnl
7f05e7ab 1665OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1666])
1667AT_CLEANUP
1668
2e1ae200
JR
1669AT_SETUP([OFPST_QUEUE request - OF1.3])
1670AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1671AT_CHECK([ovs-ofctl ofp-print "\
167204 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1673ff ff ff ff ff ff ff ff \
1674"], [0], [dnl
1675OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1676])
1677AT_CLEANUP
1678
64626975 1679AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1680AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1681AT_CHECK([ovs-ofctl ofp-print "\
168201 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
168300 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
168400 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
168500 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
168600 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
168700 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
168800 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
168900 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
169000 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
169100 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
169200 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
169300 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
169400 00 00 00 00 00 00 00 00 00 00 00 \
1695"], [0], [dnl
1696OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1697 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1698 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1699 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1700 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1701 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1702 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1703])
1704AT_CLEANUP
1705
64626975
SH
1706AT_SETUP([OFPST_QUEUE reply - OF1.1])
1707AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1708AT_CHECK([ovs-ofctl ofp-print "\
170902 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
171000 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
171100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
171200 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
171300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
171500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
171600 00 00 02 00 00 00 02 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 01 00 00 00 01 00 00 00 00 00 00 00 00 \
171900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172000 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
172100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1722"], [0], [dnl
1723OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1724 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1725 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1726 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1727 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1728 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1729 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1730])
1731AT_CLEANUP
1732
1733AT_SETUP([OFPST_QUEUE reply - OF1.2])
1734AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1735AT_CHECK([ovs-ofctl ofp-print "\
173603 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
173700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
173800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
173900 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
174000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174100 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
174200 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
174300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
174400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
174600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
174800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1749"], [0], [dnl
1750OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1751 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1752 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1753 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1754 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1755 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1756 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1757])
1758AT_CLEANUP
be0c30df
BP
1759
1760AT_SETUP([OFPST_QUEUE reply - OF1.3])
1761AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1762AT_CHECK([ovs-ofctl ofp-print "\
176304 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
176400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
176500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
176600 00 00 64 1d cd 65 00 \
176700 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
176800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
176900 00 00 64 1d cd 65 00 \
177000 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
177100 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
177200 00 00 64 1d cd 65 00 \
177300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
177400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
177500 00 00 64 1d cd 65 00 \
177600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
177700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
177800 00 00 64 1d cd 65 00 \
177900 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
178000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1781ff ff ff ff ff ff ff ff \
1782"], [0], [dnl
1783OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1784 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1785 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1786 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1787 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1788 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1789 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1790])
1791AT_CLEANUP
1792
1bb2cdbe
BP
1793AT_SETUP([OFPST_QUEUE reply - OF1.4])
1794AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1795AT_CHECK([ovs-ofctl ofp-print "\
179605 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
179700 30 00 00 00 00 00 00 \
179800 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
179900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
180000 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
180100 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
180200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
180400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
180500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
180600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
180700 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
180800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
180900 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
181000 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
181100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
181200 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
181300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
181400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1815ff ff ff ff ff ff ff ff \
1816"], [0], [dnl
1817OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
1818 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1819 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1820 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1821 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1822 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
1823 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1824])
1825AT_CLEANUP
1826
7395c052
NZ
1827AT_SETUP([OFPST_GROUP request])
1828AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1829AT_CHECK([ovs-ofctl ofp-print "\
183002 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1831ff ff ff ff 00 00 00 00 \
1832"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1833])
1834AT_CLEANUP
1835
1836AT_SETUP([OFPST_GROUP reply - OF1.1])
1837AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1838AT_CHECK([ovs-ofctl ofp-print "\
183902 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
184000 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
184100 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
184200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
184300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
184400 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
184500 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
184600 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
184700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
184800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1849"], [0], [dnl
1850OFPST_GROUP reply (OF1.1) (xid=0x2):
1851 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
1852 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
1853])
1854AT_CLEANUP
1855
1856AT_SETUP([OFPST_GROUP reply - OF1.3])
1857AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1858AT_CHECK([ovs-ofctl ofp-print "\
185904 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
186000 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
186100 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
186200 00 00 12 1d cd 65 00 \
186300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
186400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
186500 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
186600 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
186700 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
186800 00 00 10 1d cd 65 00 \
186900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
187000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1871"], [0], [dnl
1872OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1873 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
1874 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
1875])
1876AT_CLEANUP
1877
19187a71 1878AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
1879AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1880AT_CHECK([ovs-ofctl ofp-print "\
188102 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
1882"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
1883])
1884AT_CLEANUP
1885
1886AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
1887AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1888AT_CHECK([ovs-ofctl ofp-print "\
188906 12 00 14 00 00 00 02 00 07 00 00 00 00 00 00 \
189000 00 00 01
1891"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
1892])
1893AT_CLEANUP
1894
1895AT_SETUP([OFPST_GROUP_DESC reply])
1896AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1897AT_CHECK([ovs-ofctl ofp-print "\
189802 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
189900 68 01 00 00 00 20 00 \
190000 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
190100 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
190200 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
190300 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
190400 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
190500 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
1906"], [0], [dnl
1907OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
1908 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
1909])
1910AT_CLEANUP
1911
1912AT_SETUP([OFPST_GROUP_FEATURES request])
1913AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1914AT_CHECK([ovs-ofctl ofp-print "\
191503 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
1916"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
1917])
1918AT_CLEANUP
1919
1920AT_SETUP([OFPST_GROUP_FEATURES reply])
1921AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1922AT_CHECK([ovs-ofctl ofp-print "\
192303 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
192400 00 00 0f 00 00 00 0f \
192500 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 192600 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
1927"], [0], [dnl
1928OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
1929 Group table:
1930 Types: 0xf
1931 Capabilities: 0xf
08d1e234
BP
1932 all group:
1933 max_groups=0x1
1934 actions: output
1935 select group:
1936 max_groups=0x2
1937 actions: output push_vlan
1938 indirect group:
1939 max_groups=0x3
1940 actions: output strip_vlan push_vlan
1941 fast failover group:
1942 max_groups=0x4
1943 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
1944])
1945AT_CLEANUP
1946
1947AT_SETUP([OFPST_PORT_DESC request - OF1.0])
1948AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1949AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
1950OFPST_PORT_DESC request (xid=0x1): port=ANY
1951])
1952AT_CLEANUP
1953
1954AT_SETUP([OFPST_PORT_DESC request - OF1.5])
1955AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1956AT_CHECK([ovs-ofctl ofp-print "\
195706 12 00 14 00 00 00 02 00 0d 00 00 00 00 00 00 \
195800 00 00 05"], [0], [dnl
1959OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
1960])
1961AT_CLEANUP
1962
2be393ed
JP
1963AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
1964AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1965AT_CHECK([ovs-ofctl ofp-print "\
196601 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
196700 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
196800 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
196900 00 02 8f 00 00 02 8f 00 00 00 00 \
1970"], [0], [dnl
1971OFPST_PORT_DESC reply (xid=0x0):
1972 3(eth0): addr:50:54:00:00:00:01
1973 config: PORT_DOWN
1974 state: LINK_DOWN
1975 current: 100MB-FD AUTO_NEG
1976 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1977 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1978 speed: 100 Mbps now, 100 Mbps max
1979])
1980AT_CLEANUP
1981
8c3cc785
BP
1982AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
1983AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1984AT_CHECK([ovs-ofctl ofp-print "\
198505 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
198600 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
198765 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
198800 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
198900 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
199000 01 86 a0 00 01 86 a0 \
1991"], [0], [dnl
1992OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
1993 3(eth0): addr:50:54:00:00:00:01
1994 config: 0
1995 state: 0
1996 current: 100MB-FD AUTO_NEG
1997 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1998 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1999 speed: 100 Mbps now, 100 Mbps max
2000])
2001AT_CLEANUP
2002
638a19b0
JR
2003AT_SETUP([OFPT_METER_MOD request - OF1.3])
2004AT_KEYWORDS([ofp-print])
2005AT_CHECK([ovs-ofctl ofp-print "\
200604 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
200700 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2008"], [0], [dnl
2009OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2010type=drop rate=1024 burst_size=128
2011])
2012AT_CLEANUP
2013
f99d6aa0
BP
2014AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2015AT_KEYWORDS([ofp-print])
2016AT_CHECK([ovs-ofctl ofp-print "\
201704 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
201800 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2019"], [0], [dnl
2020OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2021])
2022AT_CLEANUP
2023
142cdb01
BP
2024AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2025AT_KEYWORDS([ofp-print])
2026AT_CHECK([ovs-ofctl ofp-print "\
202704 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2028"], [0], [dnl
2029OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2030])
2031AT_CLEANUP
2032
13b1febe
BP
2033AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2034AT_KEYWORDS([ofp-print])
2035AT_CHECK([ovs-ofctl ofp-print "\
203604 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
203700 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2038"], [0], [dnl
2039OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2040])
2041AT_CLEANUP
2042
638a19b0
JR
2043AT_SETUP([OFPST_METER request - OF1.3])
2044AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2045AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2046OFPST_METER request (OF1.3) (xid=0x2): meter=1
2047])
2048AT_CLEANUP
2049
2050AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2051AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2052AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2053OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2054])
2055AT_CLEANUP
2056
2057AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2058AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2059AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2060OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2061])
2062AT_CLEANUP
2063
2064AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2065AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2066AT_CHECK([ovs-ofctl ofp-print "\
206704 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 206800 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2069"], [0], [dnl
2070OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2071max_meter:65536 max_bands:16 max_color:2
2072band_types: drop dscp_remark
2073capabilities: kbps pktps burst stats
2074])
2075AT_CLEANUP
2076
2077AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2078AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2079AT_CHECK([ovs-ofctl ofp-print "\
208004 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
208100 28 00 05 00 00 00 01 \
208200 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
208300 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
208400 18 00 09 00 00 00 02 \
208500 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2086"], [0], [dnl
2087OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2088meter=1 kbps burst bands=
2089type=drop rate=65536 burst_size=1280
2090type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2091
2092meter=2 kbps stats bands=
2093type=drop rate=131072
2094])
2095AT_CLEANUP
2096
2097AT_SETUP([OFPST_METER reply - OF1.3])
2098AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2099AT_CHECK([ovs-ofctl ofp-print "\
210004 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
210100 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
210200 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 210300 00 01 8a 0a 6e 23 44 \
638a19b0
JR
210400 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
210500 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
210600 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
210700 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 210800 00 01 87 0a 23 6e 44 \
638a19b0
JR
210900 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2110"], [0], [dnl
2111OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2112meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
21130: packet_count:126 byte_count:13363
21141: packet_count:231 byte_count:37934
2115
0445637d 2116meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
21170: packet_count:42 byte_count:1075
2118])
2119AT_CLEANUP
2120
5deff5aa
AW
2121AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2122AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2123AT_CHECK([ovs-ofctl ofp-print "\
212404 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
212509 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
212600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
212700 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2128ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
212900 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
213000 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
213100 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
213200 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
213300 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
213400 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
213500 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
21360d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
21371d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
21382d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
21393d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
21404d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
21415d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
21426d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
21437d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
21448d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
21459d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2146ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2147bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2148cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2149dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2150ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2151fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
215205 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
215315 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
215425 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
215535 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
215645 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
215755 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
215865 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
215975 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
216085 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
216195 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2162a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2163b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2164c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2165d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2166e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2167f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
216800 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
216900 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
217000 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
217100 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
217200 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
217300 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
217400 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
217500 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
217600 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
217700 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
217800 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
217900 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
218000 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
218100 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
218200 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
218300 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
218400 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
218500 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
218600 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
218700 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
218800 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
218900 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
219000 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
219100 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
219200 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
219300 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
219400 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
219500 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
219600 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
219700 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
219800 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
219900 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
220000 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
220100 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
220200 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
220380 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
220400 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
220500 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
220680 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
220780 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
220880 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
220980 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
221080 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
221180 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
221280 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
221380 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
221480 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
221580 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
221600 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
221780 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
221800 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
221900 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
222080 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
222180 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
222280 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
222380 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
222480 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
222580 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
222680 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
222780 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
222880 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
222980 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
223000 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
223180 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
223200 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
223300 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
223480 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
223580 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
223680 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
223780 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
223880 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
223980 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
224080 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
224100 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
224280 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
224300 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
224400 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
224500 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
224680 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
224780 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
224800 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
224980 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
225080 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
225100 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
225280 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
225300 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
225400 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
225580 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
225680 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
225780 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
225880 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
225980 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
226080 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
226180 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
226200 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
226380 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
226400 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
226500 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
226600 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
226780 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
226880 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
226900 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
227080 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
227180 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2272"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
2273 table 0:
2274 name="table0"
2275 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
2276 config=Unknown
2277 max_entries=1000000
2278 instructions (table miss and others):
2279 next tables: 1-253
2280 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2281 Write-Actions and Apply-Actions features:
08d1e234 2282 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
5deff5aa
AW
2283 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
2284 matching:
2285 tun_id: exact match or wildcard
2286 tun_src: exact match or wildcard
2287 tun_dst: exact match or wildcard
2288 metadata: exact match or wildcard
2289 in_port: exact match or wildcard
2290 in_port_oxm: exact match or wildcard
2291 pkt_mark: exact match or wildcard
2292 reg0: exact match or wildcard
2293 reg1: exact match or wildcard
2294 reg2: exact match or wildcard
2295 reg3: exact match or wildcard
2296 reg4: exact match or wildcard
2297 reg5: exact match or wildcard
2298 reg6: exact match or wildcard
2299 reg7: exact match or wildcard
2300 eth_src: exact match or wildcard
2301 eth_dst: exact match or wildcard
2302 eth_type: exact match or wildcard
2303 vlan_tci: exact match or wildcard
2304 vlan_vid: exact match or wildcard
2305 vlan_pcp: exact match or wildcard
2306 mpls_label: exact match or wildcard
2307 mpls_tc: exact match or wildcard
2308 mpls_bos: exact match or wildcard
2309 ip_src: exact match or wildcard
2310 ip_dst: exact match or wildcard
2311 ipv6_src: exact match or wildcard
2312 ipv6_dst: exact match or wildcard
2313 ipv6_label: exact match or wildcard
2314 nw_proto: exact match or wildcard
2315 nw_tos: exact match or wildcard
2316 ip_dscp: exact match or wildcard
2317 nw_ecn: exact match or wildcard
2318 nw_ttl: exact match or wildcard
2319 ip_frag: exact match or wildcard
2320 arp_op: exact match or wildcard
2321 arp_spa: exact match or wildcard
2322 arp_tpa: exact match or wildcard
2323 arp_sha: exact match or wildcard
2324 arp_tha: exact match or wildcard
2325 tcp_src: exact match or wildcard
2326 tcp_dst: exact match or wildcard
2327 tcp_flags: exact match or wildcard
2328 udp_src: exact match or wildcard
2329 udp_dst: exact match or wildcard
2330 sctp_src: exact match or wildcard
2331 sctp_dst: exact match or wildcard
2332 icmp_type: exact match or wildcard
2333 icmp_code: exact match or wildcard
2334 icmpv6_type: exact match or wildcard
2335 icmpv6_code: exact match or wildcard
2336 nd_target: exact match or wildcard
2337 nd_sll: exact match or wildcard
2338 nd_tll: exact match or wildcard
2339])
2340AT_CLEANUP
2341
58cf43df 2342AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2343AT_KEYWORDS([ofp-print])
2344AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2345OFPT_BARRIER_REQUEST (xid=0x1):
2346])
2347AT_CLEANUP
2348
58cf43df
SH
2349AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2350AT_KEYWORDS([ofp-print])
2351AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2352OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2353])
2354AT_CLEANUP
2355
2356AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2357AT_KEYWORDS([ofp-print])
2358AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2359OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2360])
2361AT_CLEANUP
2362
2e1ae200
JR
2363AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2364AT_KEYWORDS([ofp-print])
2365AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2366OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2367])
2368AT_CLEANUP
2369
58cf43df 2370AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2371AT_KEYWORDS([ofp-print])
2372AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2373OFPT_BARRIER_REPLY (xid=0x1):
2374])
2375AT_CLEANUP
2376
2e1ae200 2377AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2378AT_KEYWORDS([ofp-print])
2379AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2380OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2381])
2382AT_CLEANUP
2383
2e1ae200 2384AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2385AT_KEYWORDS([ofp-print])
2386AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2387OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2388])
2389AT_CLEANUP
2390
2e1ae200
JR
2391AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2392AT_KEYWORDS([ofp-print])
2393AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2394OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2395])
2396AT_CLEANUP
2397
e8f9a7bb
VG
2398AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2399AT_KEYWORDS([ofp-print])
2ffc8767 2400AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2401OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2402])
2403AT_CLEANUP
2404
2405AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2406AT_KEYWORDS([ofp-print])
2407AT_CHECK([ovs-ofctl ofp-print "\
240803 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2409OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2410])
2411AT_CLEANUP
2412
2413AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2414AT_KEYWORDS([ofp-print])
2ffc8767 2415AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
241600 01 00 00 00 00 00 00 \
241700 00 55 55 00 28 00 00 \
241800 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
241900 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
242000 00 44 44 00 08 00 00 \
2421"], [0], [dnl
2422OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2423queue 21845: min_rate:50.0% max_rate:75.0%
2424queue 17476:
2425])
2426AT_CLEANUP
2427
2428AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2429AT_KEYWORDS([ofp-print])
2430AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
243100 00 00 01 00 00 00 00 \
243200 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
243300 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
243400 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
243500 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2436"], [0], [dnl
2437OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2438queue 21845: min_rate:50.0% max_rate:75.0%
2439queue 17476:
2440])
2441AT_CLEANUP
2e1ae200
JR
2442
2443AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2444AT_KEYWORDS([ofp-print])
2445AT_CHECK([ovs-ofctl ofp-print "\
244604 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
244700 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2448"], [0], [dnl
2449OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2450 master:
2451 PACKET_IN: no_match invalid_ttl 12
2452 PORT_STATUS: add delete
2453 FLOW_REMOVED: (off)
2454
2455 slave:
2456 PACKET_IN: no_match action invalid_ttl 12
2457 PORT_STATUS: add delete modify
2458 FLOW_REMOVED: idle hard
2459])
2460AT_CLEANUP
2461
6ea4776b
JR
2462AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2463AT_KEYWORDS([ofp-print])
2464AT_CHECK([ovs-ofctl ofp-print "\
246503 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
246600 00 00 00 00 00 00 03 \
2467"], [0], [dnl
2468OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2469])
2470AT_CLEANUP
2471
2472AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2473AT_KEYWORDS([ofp-print])
2474AT_CHECK([ovs-ofctl ofp-print "\
247503 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
247600 00 00 00 00 00 00 00 \
2477"], [0], [dnl
2478OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2479])
2480AT_CLEANUP
2481
fec00620
BP
2482AT_SETUP([NXT_ROLE_REQUEST])
2483AT_KEYWORDS([ofp-print])
2484AT_CHECK([ovs-ofctl ofp-print "\
248501 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
248600 00 00 01 \
2487"], [0], [dnl
2488NXT_ROLE_REQUEST (xid=0x2): role=master
2489])
2490AT_CLEANUP
2491
6ea4776b
JR
2492AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2493AT_KEYWORDS([ofp-print])
2494AT_CHECK([ovs-ofctl ofp-print "\
249503 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 249612 34 56 78 ab cd ef 90 \
6ea4776b 2497"], [0], [dnl
147cc9d3 2498OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2499])
2500AT_CLEANUP
2501
fec00620
BP
2502AT_SETUP([NXT_ROLE_REPLY])
2503AT_KEYWORDS([ofp-print])
2504AT_CHECK([ovs-ofctl ofp-print "\
250501 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
250600 00 00 02 \
2507"], [0], [dnl
2508NXT_ROLE_REPLY (xid=0x2): role=slave
2509])
2510AT_CLEANUP
2511
00467f73
AC
2512AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2513AT_KEYWORDS([ofp-print])
2514AT_CHECK([ovs-ofctl ofp-print "\
251505 1e 00 18 00 00 00 0a \
251600 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2517"], [0], [dnl
9620f50c 2518OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2519])
2520AT_CLEANUP
2521
2522AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2523AT_KEYWORDS([ofp-print])
2524AT_CHECK([ovs-ofctl ofp-print "\
252505 1e 00 18 00 00 00 0a \
252600 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2527"], [0], [dnl
9620f50c 2528OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2529])
2530AT_CLEANUP
2531
2532AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2533AT_KEYWORDS([ofp-print])
2534AT_CHECK([ovs-ofctl ofp-print "\
253505 1e 00 18 00 00 00 0a \
253600 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2537"], [0], [dnl
9620f50c 2538OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2539])
2540AT_CLEANUP
2541
54834960
EJ
2542AT_SETUP([NXT_SET_PACKET_IN])
2543AT_KEYWORDS([ofp-print])
2544AT_CHECK([ovs-ofctl ofp-print "\
254501 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
254600 00 00 01 \
2547"], [0], [dnl
2548NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2549])
2550AT_CLEANUP
2551
2552AT_SETUP([NXT_PACKET_IN])
2553AT_KEYWORDS([ofp-print])
2554AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 255501 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2556ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 255700 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
255820 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
255900 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
256000 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 256100 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2562ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
256380 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
256400 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 256500 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
256631 6d 00 00 00 00 00 00 00 00 \
2567"], [0], [dnl
42edbe39 2568NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
dc235f7f 2569tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=0x002 tcp_csum:316d
54834960
EJ
2570])
2571AT_CLEANUP
2572
b4ccee75
SH
2573AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2574AT_KEYWORDS([ofp-print])
2575AT_CHECK([ovs-ofctl ofp-print "\
257601 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2577ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
257800 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
257920 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
258000 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
258100 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
258200 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2583ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
258480 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
258500 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 258600 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
258731 6d 00 00 00 00 00 00 00 00 \
2588" 3], [0], [dnl
2589NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
dc235f7f 2590tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=0x001 tcp_csum:316d
b4ccee75
SH
259100000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
259200000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
259300000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 259400000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2595])
2596AT_CLEANUP
2597
80d5aefd
BP
2598AT_SETUP([NXT_SET_ASYNC_CONFIG])
2599AT_KEYWORDS([ofp-print])
2600AT_CHECK([ovs-ofctl ofp-print "\
260101 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
260200 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
260300 00 00 00 00 00 00 03 \
2604"], [0], [dnl
2605NXT_SET_ASYNC_CONFIG (xid=0x0):
2606 master:
2607 PACKET_IN: no_match invalid_ttl 12
2608 PORT_STATUS: add delete
2609 FLOW_REMOVED: (off)
2610
2611 slave:
2612 PACKET_IN: no_match action invalid_ttl 12
2613 PORT_STATUS: add delete modify
2614 FLOW_REMOVED: idle hard
2615])
2616AT_CLEANUP
2617
a7349929
BP
2618AT_SETUP([NXT_SET_CONTROLLER_ID])
2619AT_KEYWORDS([ofp-print])
2620AT_CHECK([ovs-ofctl ofp-print "\
262101 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
262200 00 00 00 00 00 00 7b \
2623"], [0], [dnl
2624NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2625])
2626AT_CLEANUP
2627
2b07c8b1
BP
2628AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2629AT_KEYWORDS([ofp-print])
2630AT_CHECK([ovs-ofctl ofp-print "\
263101 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
263201 02 30 40 \
2633"], [0], [dnl
2634NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2635])
2636AT_CLEANUP
2637
2638AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2639AT_KEYWORDS([ofp-print])
2640AT_CHECK([ovs-ofctl ofp-print "\
264101 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2642"], [0], [dnl
2643NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2644])
2645AT_CLEANUP
2646
2647AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2648AT_KEYWORDS([ofp-print])
2649AT_CHECK([ovs-ofctl ofp-print "\
265001 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2651"], [0], [dnl
2652NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2653])
2654AT_CLEANUP
2655
fec00620
BP
2656AT_SETUP([NXT_SET_FLOW_FORMAT])
2657AT_KEYWORDS([ofp-print])
2658AT_CHECK([ovs-ofctl ofp-print "\
265901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
266000 00 00 02 \
2661"], [0], [dnl
2662NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2663])
2664AT_CLEANUP
2665
2666# The flow is formatted with cls_rule_format() for the low-verbosity case.
2667AT_SETUP([NXT_FLOW_MOD, low verbosity])
2668AT_KEYWORDS([ofp-print])
2669AT_CHECK([ovs-ofctl ofp-print "\
267001 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
267100 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2672ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
267300 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
267400 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
267500 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2676" 2], [0], [dnl
de0f16bc 2677NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2678])
2679AT_CLEANUP
2680
eec25dc1
BP
2681# The flow is formatted with ofp10_match_to_string() for the
2682# low-verbosity case.
fec00620
BP
2683AT_SETUP([NXT_FLOW_MOD, high verbosity])
2684AT_KEYWORDS([ofp-print])
2685AT_CHECK([ovs-ofctl ofp-print "\
268601 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
268700 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2688ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
268900 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
269000 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
269100 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2692" 3], [0], [dnl
de0f16bc 2693NXT_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
2694])
2695AT_CLEANUP
2696
7395c052
NZ
2697AT_SETUP([OFPT_GROUP_MOD])
2698AT_KEYWORDS([ofp-print])
2699AT_CHECK([ovs-ofctl ofp-print "\
270002 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
270100 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
270200 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
270300 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
270400 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
270500 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
270600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2707"], [0], [dnl
2708OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2709 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
2710])
2711AT_CLEANUP
2712
fec00620
BP
2713AT_SETUP([NXT_FLOW_REMOVED])
2714AT_KEYWORDS([ofp-print])
2715AT_CHECK([ovs-ofctl ofp-print "\
271601 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 271700 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
271801 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
271900 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
272002 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
272100 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
27221e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2723c0 a8 00 02 00 00 00 00 \
2724"], [0], [dnl
745bfd5e 2725NXT_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
2726])
2727AT_CLEANUP
2728
a1a7d333
BP
2729AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2730AT_KEYWORDS([ofp-print])
2731AT_CHECK([ovs-ofctl ofp-print "\
273201 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
273301 00 00 00 00 00 00 00 \
2734"], [0], [dnl
2735NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2736])
2737AT_CLEANUP
2738
fec00620
BP
2739AT_SETUP([NXST_FLOW request])
2740AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2741AT_CHECK([ovs-ofctl ofp-print "\
274201 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
274300 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2744"], [0], [dnl
54ae6fa8 2745NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2746])
2747AT_CLEANUP
2748
2749AT_SETUP([NXST_FLOW reply])
2750AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2751AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 275201 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
275300 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
275402 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
275500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
275600 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
275702 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
275800 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27590a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2760a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
276114 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
276200 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 276300 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
276400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
276500 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
276600 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
276700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2768a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
276900 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
277000 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 277133 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
277200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
277300 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
277402 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
277500 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27760a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2777a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
277814 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
277900 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 278000 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
278100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
278200 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
278300 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
278400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2785a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
278600 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
278700 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 278834 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
278900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
279000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
279102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
279200 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27930a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2794a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
279514 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
279600 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
279700 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
279800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
279900 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
280000 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
280100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2802a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
280300 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
280400 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
280502 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
280600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
280700 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
280802 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
280900 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28100a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2811a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
281214 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
281300 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
281400 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
281500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
281600 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
281700 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
281800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2819a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
282000 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
282100 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
282227 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
282300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
282400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
282502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
282600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28270a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2828a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
282914 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
283000 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
283100 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
283200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
283300 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
283400 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
283500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2836a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
283700 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
283800 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
28390a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
284000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
284100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
284202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
284300 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28440a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2845a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
284614 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
284700 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
284800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
284900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
285000 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
285100 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
285200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2853a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
285400 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
285500 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
285604 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
285700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
285800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
285902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
286000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
28610a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2862a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
286314 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
286400 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
286500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
286600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
286700 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
286800 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
286900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2870a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
287100 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
287200 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
28732e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
287400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
287500 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
287600 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
2877ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
287800 00 00 00 00 00 00 05 \
05b8f1c2
BP
287900 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
288000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
288100 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
2882"], [0],
2883[[NXST_FLOW reply (xid=0x4):
b9718b7b 2884 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 2885 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
2886 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
2887 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 2888 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 2889 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 2890 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
2891 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
2892 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
2893 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
2894 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
2895 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
2896 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
2897 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
2898 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 2899 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
2900]])
2901AT_CLEANUP
2902
2903AT_SETUP([NXST_AGGREGATE request])
2904AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2905AT_CHECK([ovs-ofctl ofp-print "\
290601 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
290700 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2908"], [0], [dnl
54ae6fa8 2909NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
2910])
2911AT_CLEANUP
2912
2913AT_SETUP([NXST_AGGREGATE reply])
2914AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2915AT_CHECK([ovs-ofctl ofp-print "\
291601 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
291700 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
291800 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
2919"], [0], [dnl
2920NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
2921])
2922AT_CLEANUP
2b07c8b1
BP
2923
2924AT_SETUP([NXST_FLOW_MONITOR request])
2925AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2926AT_CHECK([ovs-ofctl ofp-print "\
292701 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
292800 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
292900 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
2930"], [0], [dnl
2931NXST_FLOW_MONITOR request (xid=0x4):
2932 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
2933 id=8192 flags=delete table=2 in_port=1
2934])
2935AT_CLEANUP
2936
2937AT_SETUP([NXST_FLOW_MONITOR reply])
2938AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2939AT_CHECK([ovs-ofctl ofp-print "\
294001 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 294100 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
294200 00 00 02 00 01 00 00 \
294300 08 00 03 00 01 86 a0 \
2944"], [0], [dnl
2945NXST_FLOW_MONITOR reply (xid=0x4):
2946 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
2947 event=ABBREV xid=0x186a0
2948])
2949AT_CLEANUP
777af88d
AC
2950
2951
2952AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2953AT_KEYWORDS([ofp-print])
2954AT_CHECK([ovs-ofctl ofp-print "\
295505 21 00 10 00 00 00 00 \
295600 00 00 01 00 00 00 01 \
2957"], [0], [dnl
2958OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2959 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
2960])
2961AT_CLEANUP
2962
2963AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2964AT_KEYWORDS([ofp-print])
2965AT_CHECK([ovs-ofctl ofp-print "\
296605 21 00 10 00 00 00 00 \
296700 00 00 01 00 00 00 02 \
2968"], [0], [dnl
2969OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2970 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
2971])
2972AT_CLEANUP
2973
2974AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2975AT_KEYWORDS([ofp-print])
2976AT_CHECK([ovs-ofctl ofp-print "\
297705 21 00 10 00 00 00 00 \
297800 00 00 01 00 00 00 03 \
2979"], [0], [dnl
2980OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2981 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
2982])
2983AT_CLEANUP
2984
2985AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
2986AT_KEYWORDS([ofp-print])
2987AT_CHECK([ovs-ofctl ofp-print "\
298805 21 00 10 00 00 00 00 \
298900 00 00 01 00 01 00 01 \
2990"], [0], [dnl
2991OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2992 bundle_id=0x1 type=OPEN_REPLY flags=atomic
2993])
2994AT_CLEANUP
2995
2996AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
2997AT_KEYWORDS([ofp-print])
2998AT_CHECK([ovs-ofctl ofp-print "\
299905 21 00 10 00 00 00 00 \
300000 00 00 01 00 02 00 01 \
3001"], [0], [dnl
3002OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3003 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3004])
3005AT_CLEANUP
3006
3007AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3008AT_KEYWORDS([ofp-print])
3009AT_CHECK([ovs-ofctl ofp-print "\
301005 21 00 10 00 00 00 00 \
301100 00 00 01 00 03 00 01 \
3012"], [0], [dnl
3013OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3014 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3015])
3016AT_CLEANUP
3017
3018AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3019AT_KEYWORDS([ofp-print])
3020AT_CHECK([ovs-ofctl ofp-print "\
302105 21 00 10 00 00 00 00 \
302200 00 00 01 00 04 00 01 \
3023"], [0], [dnl
3024OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3025 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3026])
3027AT_CLEANUP
3028
3029AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3030AT_KEYWORDS([ofp-print])
3031AT_CHECK([ovs-ofctl ofp-print "\
303205 21 00 10 00 00 00 00 \
303300 00 00 01 00 05 00 01 \
3034"], [0], [dnl
3035OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3036 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3037])
3038AT_CLEANUP
3039
3040AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3041AT_KEYWORDS([ofp-print])
3042AT_CHECK([ovs-ofctl ofp-print "\
304305 21 00 10 00 00 00 00 \
304400 00 00 01 00 06 00 01 \
3045"], [0], [dnl
3046OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3047 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3048])
3049AT_CLEANUP
3050
3051AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3052AT_KEYWORDS([ofp-print])
3053AT_CHECK([ovs-ofctl ofp-print "\
305405 21 00 10 00 00 00 00 \
305500 00 00 01 00 07 00 01 \
3056"], [0], [dnl
3057OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3058 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3059])
3060AT_CLEANUP
3061
3062AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - OFPT_HELLO])
3063AT_KEYWORDS([ofp-print])
3064AT_CHECK([ovs-ofctl ofp-print "\
306505 22 00 20 00 00 00 00 \
306600 00 00 01 00 01 00 01 02 00 00 08 00 00 00 00 \
306700 00 00 00 00 00 00 00 \
3068"], [0], [dnl
3069OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0):
3070 bundle_id=0x1 flags=atomic
3071OFPT_HELLO (OF1.1) (xid=0x0):
3072 version bitmap: 0x01, 0x02
3073])
3074AT_CLEANUP