]> git.proxmox.com Git - ovs.git/blame - tests/ofp-print.at
datapath: Account for "vlan: introduce *vlan_hwaccel_push_inside helpers"
[ovs.git] / tests / ofp-print.at
CommitLineData
fec00620
BP
1AT_BANNER([ofp-print])
2
3AT_SETUP([empty])
4AT_KEYWORDS([ofp-print])
5AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6])
7AT_CLEANUP
8
9AT_SETUP([too short])
10AT_KEYWORDS([ofp-print])
11AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12OpenFlow packet too short (only 2 bytes):
1300000000 aa bb |.. |
14])
15AT_CLEANUP
16
17AT_SETUP([wrong OpenFlow version])
18AT_KEYWORDS([ofp-print])
90bf1e07
BP
19AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20 [0], [dnl
21***decode error: OFPBRC_BAD_TYPE***
2200000000 00 bb 00 08 ee ff 00 11- |........ |
982697a4 23], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187)
fec00620
BP
24])
25AT_CLEANUP
26
27AT_SETUP([truncated message])
28AT_KEYWORDS([ofp-print])
f25b4a81 29AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl
fec00620 30(***truncated to 8 bytes from 52445***)
f25b4a81 3100000000 01 10 cc dd ee ff 00 11- |........ |
fec00620
BP
32])
33AT_CLEANUP
34
35AT_SETUP([message only uses part of buffer])
36AT_KEYWORDS([ofp-print])
f25b4a81 37AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl
fec00620 38(***only uses 9 bytes out of 10***)
f25b4a81 3900000000 01 10 00 09 ee ff 00 11-22 33 |........"3 |
fec00620
BP
40])
41# "
42AT_CLEANUP
43
44AT_SETUP([OFPT_HELLO - ordinary])
45AT_KEYWORDS([ofp-print])
46AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47OFPT_HELLO (xid=0x0):
de6c85b0 48 version bitmap: 0x01
fec00620
BP
49])
50AT_CLEANUP
51
52AT_SETUP([OFPT_HELLO with extra data])
53AT_KEYWORDS([ofp-print])
54AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
55[dnl
56OFPT_HELLO (xid=0x0):
de6c85b0
SH
57 version bitmap: 0x01
58 unknown data in hello:
5900000000 01 00 00 13 00 00 00 00-65 78 74 72 61 20 64 61 |........extra da|
6000000010 74 61 0a |ta. |
61])
62AT_CLEANUP
63
64AT_SETUP([OFPT_HELLO with version bitmap])
65AT_KEYWORDS([ofp-print])
66AT_CHECK([ovs-ofctl ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f0"], [0],
67[dnl
68OFPT_HELLO (xid=0x0):
69 version bitmap: 0x04, 0x05, 0x06, 0x07
70])
71AT_CLEANUP
72
73AT_SETUP([OFPT_HELLO with version bitmap and extra data])
74AT_KEYWORDS([ofp-print])
75AT_CHECK([ovs-ofctl ofp-print "\
7601 00 00 1b 00 00 00 00 ff ff 00 06 01 02 00 00 \
7700 01 00 08 00 00 00 f0 61 62 63"], [0],
78[dnl
79OFPT_HELLO (xid=0x0):
80 version bitmap: 0x04, 0x05, 0x06, 0x07
81 unknown data in hello:
8200000000 01 00 00 1b 00 00 00 00-ff ff 00 06 01 02 00 00 |................|
8300000010 00 01 00 08 00 00 00 f0-61 62 63 |........abc |
fec00620
BP
84])
85AT_CLEANUP
86
681ea7a0
BP
87AT_SETUP([OFPT_HELLO with higher than supported version])
88AT_KEYWORDS([ofp-print])
89AT_CHECK([ovs-ofctl ofp-print "0f 00 00 08 00 00 00 00"], [0],
90[dnl
91OFPT_HELLO (OF 0x0f) (xid=0x0):
92 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
93])
94AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0],
95[dnl
96OFPT_HELLO (OF 0x40) (xid=0x0):
97 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
98])
99AT_CHECK([ovs-ofctl ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c aa aa aa aa aa aa aa aa 00 00 00 00"], [0],
100[dnl
101OFPT_HELLO (OF 0x3f) (xid=0x0):
102 version bitmap: 0x01, 0x03, 0x05, 0x07, 0x09, 0x0b, 0x0d, 0x0f, 0x11, 0x13, 0x15, 0x17, 0x19, 0x1b, 0x1d, 0x1f
103])
104AT_CLEANUP
105
106AT_SETUP([OFPT_HELLO with contradictory version bitmaps])
107AT_KEYWORDS([ofp-print])
108dnl Bitmap claims support for no versions at all.
109AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 00"], [0],
110[OFPT_HELLO (xid=0x0):
111 version bitmap: 0x01
112 unknown data in hello:
11300000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................|
114], [dnl
115ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
116])
117dnl Bitmap claims support for only versions above 0x1f.
118AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c 00 00 00 00 aa aa aa aa 00 00 00 00"], [0],
119[OFPT_HELLO (OF 0x3f) (xid=0x0):
120 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
121 unknown data in hello:
12200000000 3f 00 00 18 00 00 00 00-00 01 00 0c 00 00 00 00 |?...............|
12300000010 aa aa aa aa 00 00 00 00- |........ |
124], [dnl
125ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
126])
127dnl Bitmap claims support for nonexistent version 0x00.
128AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f1"], [0], [dnl
129OFPT_HELLO (xid=0x0):
130 version bitmap: 0x04, 0x05, 0x06, 0x07
131], [dnl
132ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
133])
134dnl Bitmap claims support for only nonexistent version 0x00.
135AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 01"], [0], [dnl
136OFPT_HELLO (xid=0x0):
137 version bitmap: 0x01
138 unknown data in hello:
13900000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................|
140], [dnl
141ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
142ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
143])
144AT_CLEANUP
145
2e0525bc 146dnl OFPT_ERROR tests are in ofp-errors.at.
90bf1e07 147
fec00620
BP
148AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
149AT_KEYWORDS([ofp-print])
150AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
151OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
152])
153AT_CLEANUP
154
155AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
156AT_KEYWORDS([ofp-print])
157AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
158OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
15900000000 25 53 54 1a 9d |%ST.. |
160])
161AT_CLEANUP
162
163AT_SETUP([OFPT_ECHO_REPLY, empty payload])
164AT_KEYWORDS([ofp-print])
165AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
166OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
167])
168AT_CLEANUP
169
170AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
171AT_KEYWORDS([ofp-print])
172AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
173OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
17400000000 a3 30 ef af 9e |.0... |
175])
176AT_CLEANUP
177
178AT_SETUP([OFPT_FEATURES_REQUEST])
179AT_KEYWORDS([ofp-print])
180AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
181OFPT_FEATURES_REQUEST (xid=0x1):
182])
183AT_CLEANUP
184
9e1fd49b 185AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
fec00620
BP
186AT_KEYWORDS([ofp-print])
187AT_CHECK([ovs-ofctl ofp-print "\
18801 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
18900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
190ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
19100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
19200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
19400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
19700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
20000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
20100 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
202"], [0], [dnl
9e1fd49b 203OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
fec00620 204n_tables:2, n_buffers:256
9e1fd49b 205capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
08d1e234 206actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
0ab14c8e
BP
207 1(eth1): addr:50:54:00:00:00:02
208 config: 0
209 state: 0
210 current: 100MB-FD AUTO_NEG
211 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
212 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 213 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
214 2(eth2): addr:50:54:00:00:00:03
215 config: 0
216 state: 0
217 current: 100MB-FD AUTO_NEG
218 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
219 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 220 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
221 3(eth0): addr:50:54:00:00:00:01
222 config: 0
223 state: 0
224 current: 100MB-FD AUTO_NEG
225 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
226 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 227 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
228 LOCAL(br0): addr:50:54:00:00:00:01
229 config: PORT_DOWN
230 state: LINK_DOWN
d02a5f8e 231 speed: 0 Mbps now, 0 Mbps max
fec00620
BP
232])
233AT_CLEANUP
234
9e1fd49b 235AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
fec00620
BP
236AT_KEYWORDS([ofp-print])
237AT_CHECK([ovs-ofctl ofp-print "\
23801 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
23900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
240ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
24100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
24200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
24400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
24700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
25000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
25100 00 02 08 00 00 02 8f 00 00 02 8f \
252"], [0], [dnl
90bf1e07 253***decode error: OFPBRC_BAD_LEN***
fec00620
BP
25400000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
25500000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
25600000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
25700000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
25800000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
25900000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
26000000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
26100000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
26200000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
26300000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
264000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
265000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
266000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
267000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
268], [stderr])
269AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
5a020ef3 270received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
fec00620
BP
271])
272AT_CLEANUP
273
9e1fd49b
BP
274AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
275AT_KEYWORDS([ofp-print])
276AT_CHECK([ovs-ofctl ofp-print "\
27702 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 27800 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
279ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
28062 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
28100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
28200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
28300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
28465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
28500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
28600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
287"], [0], [dnl
288OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
289n_tables:2, n_buffers:256
290capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
9e1fd49b
BP
291 3(eth0): addr:50:54:00:00:00:01
292 config: 0
293 state: 0
294 current: 100MB-FD AUTO_NEG
295 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
296 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
297 speed: 100 Mbps now, 100 Mbps max
298 LOCAL(br0): addr:50:54:00:00:00:01
299 config: PORT_DOWN
300 state: LINK_DOWN
301 speed: 100 Mbps now, 100 Mbps max
302])
303AT_CLEANUP
304
305AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
306AT_KEYWORDS([ofp-print])
307AT_CHECK([ovs-ofctl ofp-print "\
30802 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 30900 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
310ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
31162 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
31200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
31300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
31400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
31565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
31600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
317"], [0], [dnl
318***decode error: OFPBRC_BAD_LEN***
31900000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 32000000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 00 00 |................|
9e1fd49b
BP
32100000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32200000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
32300000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
32400000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
32500000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32600000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
32700000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
328], [stderr])
329AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
330received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
331])
332AT_CLEANUP
333
60202987
SH
334AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
335AT_KEYWORDS([ofp-print])
336AT_CHECK([ovs-ofctl ofp-print "\
33703 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 33800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
339ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
34062 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
34100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
34200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
34300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
34465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
34500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
34600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
347"], [0], [dnl
348OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
349n_tables:255, n_buffers:256
350capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
351 3(eth0): addr:50:54:00:00:00:01
352 config: 0
353 state: 0
354 current: 100MB-FD AUTO_NEG
355 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
356 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
357 speed: 100 Mbps now, 100 Mbps max
358 LOCAL(br0): addr:50:54:00:00:00:01
359 config: PORT_DOWN
360 state: LINK_DOWN
361 speed: 100 Mbps now, 100 Mbps max
362])
363AT_CLEANUP
364
365AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
366AT_KEYWORDS([ofp-print])
367AT_CHECK([ovs-ofctl ofp-print "\
36803 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 36900 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
370ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
37162 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
37200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
37300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
37400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
37565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
37600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
377"], [0], [dnl
378OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
379(***truncated to 144 bytes from 160***)
38000000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 38100000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 00 00 |...........w....|
60202987
SH
38200000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38300000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
38400000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
38500000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
38600000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38700000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
38800000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
389], [stderr])
390AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
391])
392AT_CLEANUP
393
2e1ae200
JR
394AT_SETUP([OFPT_FEATURES_REPLY - OF1.3])
395AT_KEYWORDS([ofp-print])
396AT_CHECK([ovs-ofctl ofp-print "\
39704 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
39800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
399"], [0], [dnl
400OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
401n_tables:255, n_buffers:256
402capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
403])
404AT_CLEANUP
405
406AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
407AT_KEYWORDS([ofp-print])
408AT_CHECK([ovs-ofctl ofp-print "\
40904 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
41000 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
411"], [0], [dnl
412OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
413n_tables:255, n_buffers:256, auxiliary_id:1
414capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
415])
416AT_CLEANUP
417
fec00620
BP
418AT_SETUP([OFPT_GET_CONFIG_REQUEST])
419AT_KEYWORDS([ofp-print])
420AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
421OFPT_GET_CONFIG_REQUEST (xid=0x1):
422])
423AT_CLEANUP
424
425AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
426AT_KEYWORDS([ofp-print])
427AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
428OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
429])
430AT_CLEANUP
431
432
433AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
434AT_KEYWORDS([ofp-print])
435AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
436OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
437])
438AT_CLEANUP
439
7cfb9651 440AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 441AT_KEYWORDS([ofp-print])
fec00620
BP
442AT_CHECK([ovs-ofctl ofp-print "\
44301 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
44400 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
44545 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
446c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 44750 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 448"], [0], [dnl
f0fd1a17 449OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
78c9486d 450tcp,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
fec00620
BP
451])
452AT_CLEANUP
453
210ba964 454AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data])
b4ccee75
SH
455AT_KEYWORDS([ofp-print])
456AT_CHECK([ovs-ofctl ofp-print "\
45701 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
45800 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
45945 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
460c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 46150 10 02 00 26 e8 00 00 00 00 00 00 00 00 \
b4ccee75
SH
462" 3], [0], [dnl
463OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
78c9486d 464tcp,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=ack tcp_csum:26e8
b4ccee75
SH
46500000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00
46600000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8
dc235f7f 46700000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 10
b4ccee75
SH
46800000030 02 00 26 e8 00 00 00 00-00 00 00 00
469])
470AT_CLEANUP
471
4d197ebb
BP
472AT_SETUP([OFPT_PACKET_IN - OF1.1])
473AT_KEYWORDS([ofp-print])
474AT_CHECK([ovs-ofctl ofp-print "\
47502 0a 00 54 00 00 00 00 00 00 01 11 00 00 00 03 \
47600 00 00 03 00 3c 00 00 \
47750 54 00 00 00 06 50 54 00 00 00 05 08 00 \
47845 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
479c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
48050 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
481"], [0], [dnl
482OFPT_PACKET_IN (OF1.1) (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
78c9486d 483tcp,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8
4d197ebb
BP
484])
485AT_CLEANUP
486
7cfb9651
SH
487AT_SETUP([OFPT_PACKET_IN - OF1.2])
488AT_KEYWORDS([ofp-print])
489AT_CHECK([ovs-ofctl ofp-print "\
49003 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
49100 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
49200 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
eb19e5f0 49300 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \
7cfb9651
SH
49400 00 00 23 20 83 c1 5f 00 00 00 00 \
495"], [0], [dnl
496OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
78c9486d 497rarp,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=1,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
7cfb9651
SH
498])
499AT_CLEANUP
500
b4ccee75
SH
501AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
502AT_KEYWORDS([ofp-print])
503AT_CHECK([ovs-ofctl ofp-print "\
50403 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
50500 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
50600 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
50700 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
50800 00 00 23 20 83 c1 5f 00 00 00 00 \
509" 3], [0], [dnl
510OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
78c9486d 511rarp,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
b4ccee75
SH
51200000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
51300000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
51400000020 00 23 20 83 c1 5f 00 00-00 00
515])
516AT_CLEANUP
517
2e1ae200
JR
518AT_SETUP([OFPT_PACKET_IN - OF1.3])
519AT_KEYWORDS([ofp-print])
520AT_CHECK([ovs-ofctl ofp-print "\
52104 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
52201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
523ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
52400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
52500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
52600 00 00 00 \
527"], [0], [dnl
528OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
b6a3dd9c
JT
529rarp,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
530])
531AT_CLEANUP
532
533AT_SETUP([OFPT_PACKET_IN - OF1.4])
534AT_KEYWORDS([ofp-print])
535AT_CHECK([ovs-ofctl ofp-print "\
53605 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
53701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
538ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
53900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
54000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
54100 00 00 00 \
542"], [0], [dnl
543OFPT_PACKET_IN (OF1.4) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
544rarp,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
545])
546AT_CLEANUP
547
548AT_SETUP([OFPT_PACKET_IN - OF1.5])
549AT_KEYWORDS([ofp-print])
550AT_CHECK([ovs-ofctl ofp-print "\
55106 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
55201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
553ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
55400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
55500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
55600 00 00 00 \
557"], [0], [dnl
558OFPT_PACKET_IN (OF1.5) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
78c9486d 559rarp,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
2e1ae200
JR
560])
561AT_CLEANUP
562
b4ccee75
SH
563AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
564AT_KEYWORDS([ofp-print])
565AT_CHECK([ovs-ofctl ofp-print "\
56604 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
56701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
568ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
56900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
57000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
57100 00 00 00 \
572" 3], [0], [dnl
573OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
78c9486d 574rarp,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
b4ccee75
SH
57500000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
57600000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
57700000020 00 23 20 83 c1 5f 00 00-00 00
578])
579AT_CLEANUP
580
eefbf181 581AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
582AT_KEYWORDS([ofp-print])
583AT_CHECK([ovs-ofctl ofp-print "\
58401 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
58500 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
58600 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
58700 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
58830 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
58900 00 00 00 00 00 00 3c \
590"], [0], [dnl
b1634591 591OFPT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.820s idle5 pkts1 bytes60
fec00620
BP
592])
593AT_CLEANUP
594
eefbf181
SH
595AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
596AT_KEYWORDS([ofp-print])
597AT_CHECK([ovs-ofctl ofp-print "\
59803 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
59980 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
60000 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
60100 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 602OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
603])
604AT_CLEANUP
605
2e1ae200
JR
606AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
607AT_KEYWORDS([ofp-print])
608AT_CHECK([ovs-ofctl ofp-print "\
60904 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
61080 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
61100 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
61200 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 613OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
2e1ae200
JR
614])
615AT_CLEANUP
616
9e1fd49b 617AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
618AT_KEYWORDS([ofp-print])
619AT_CHECK([ovs-ofctl ofp-print "\
62001 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
62100 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
62200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
62300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
624"], [0], [dnl
0ab14c8e
BP
625OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
626 config: PORT_DOWN
627 state: LINK_DOWN
628 current: 100MB-FD AUTO_NEG
629 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
630 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
631 speed: 100 Mbps now, 100 Mbps max
632])
633AT_CLEANUP
634
635AT_SETUP([OFPT_PORT_STATUS - OF1.1])
636AT_KEYWORDS([ofp-print])
637AT_CHECK([ovs-ofctl ofp-print "\
63802 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
63900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
64065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
64100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
64200 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
643"], [0], [dnl
644OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
645 config: 0
646 state: 0
647 current: 100MB-FD AUTO_NEG
648 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
649 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
650 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
651])
652AT_CLEANUP
653
8c3cc785
BP
654AT_SETUP([OFPT_PORT_STATUS - OF1.4])
655AT_KEYWORDS([ofp-print])
656AT_CHECK([ovs-ofctl ofp-print "\
65705 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
65800 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
65965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
66000 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
66100 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
66200 01 86 a0 00 01 86 a0 \
663"], [0], [dnl
664OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
665 config: 0
666 state: 0
667 current: 100MB-FD AUTO_NEG
668 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
669 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
670 speed: 100 Mbps now, 100 Mbps max
671])
672AT_CLEANUP
673
eb5ee596 674AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
675AT_KEYWORDS([ofp-print])
676AT_CHECK([ovs-ofctl ofp-print "\
67701 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
67800 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
67900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
680b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
68100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
68200 00 00 00 \
683"], [0], [dnl
c6a93eb7 684OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
685])
686AT_CLEANUP
687
4b2d9d11
SH
688AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
689AT_KEYWORDS([ofp-print])
690AT_CHECK([ovs-ofctl ofp-print "\
69101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
69200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
69300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
694b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
69500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
69600 00 00 00 \
697"], [0], [dnl
698OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
78c9486d 699tcp,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
4b2d9d11
SH
700])
701AT_CLEANUP
702
b4ccee75
SH
703AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
704AT_KEYWORDS([ofp-print])
705AT_CHECK([ovs-ofctl ofp-print "\
70601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
70700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
70800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
709b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
71000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
71100 00 00 00 \
712" 3], [0], [dnl
713OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
78c9486d 714tcp,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
b4ccee75
SH
71500000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
71600000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
71700000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
71800000030 00 00 6d 75 00 00 00 00-00 00 00 00
719])
720AT_CLEANUP
721
eb5ee596
SH
722AT_SETUP([OFPT_PACKET_OUT - OF1.1])
723AT_KEYWORDS([ofp-print])
724AT_CHECK([ovs-ofctl ofp-print "\
72503 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
72600 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
72705 dc 00 00 00 00 00 00 \
728"], [0], [dnl
729OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
730])
731AT_CLEANUP
732
4b2d9d11
SH
733AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
734AT_KEYWORDS([ofp-print])
735AT_CHECK([ovs-ofctl ofp-print "\
73603 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
73700 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
73805 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
73900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
740b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
74100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
74200 00 00 00 \
743"], [0], [dnl
744OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
78c9486d 745tcp,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75
4b2d9d11
SH
746])
747AT_CLEANUP
748
fec00620 749# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 750AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 751AT_KEYWORDS([ofp-print])
1c0b7503 752AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
75301 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
75400 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
75500 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
75600 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
75700 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
758" 2], [0], [dnl
666d0863 759OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 idle:5 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
760], [dnl
761ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
762ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
763ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
764])
765AT_CLEANUP
766
75fa58f8
BP
767# The flow is formatted with cls_rule_format() for the low-verbosity case.
768AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
769AT_KEYWORDS([ofp-print])
770AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
771020e 0090 01020304 \
772da1aa3e035d87158 ffffffffffffffff \
77302 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
7740000 \
775\
7760000 0058 00000000 000003f7 \
777000000000000ffffffffffff 000000000000ffffffffffff \
7780000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
77900000000 00 000000 0000000000000000ffffffffffffffff \
780\
7810001 0008 03 000000 \
782" 2], [0], [dnl
783OFPT_FLOW_MOD (OF1.1) (xid=0x1020304): MOD table:2 priority=40000,arp,arp_spa=192.168.128.0/24 cookie:0xda1aa3e035d87158/0xffffffffffffffff idle:60 hard:120 send_flow_rem check_overlap actions=goto_table:3
784])
785AT_CLEANUP
786
1bf6eeb0
SH
787# The flow is formatted with cls_rule_format() for the low-verbosity case.
788AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
789AT_KEYWORDS([ofp-print])
790AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
79103 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 79200 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
793ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
79400 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
79550 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
79680 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
79700 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
79800 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
79900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
800" 2], [0], [dnl
0e197060 801OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
802], [dnl
803])
804AT_CLEANUP
805
eec25dc1
BP
806# The flow is formatted with ofp10_match_to_string() for the
807# high-verbosity case.
1bf6eeb0 808AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 809AT_KEYWORDS([ofp-print])
1c0b7503 810AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
81101 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
81200 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
81300 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
81400 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
81500 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
816" 3], [0], [dnl
de0f16bc 817OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
818], [dnl
819ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
820ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
821ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
822])
823AT_CLEANUP
824
1bf6eeb0
SH
825# The flow is formatted with cls_rule_format() for the low-verbosity case.
826AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
827AT_KEYWORDS([ofp-print])
828AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
82903 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 83000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
831ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
83200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
83350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
83480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
83500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
83600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
83700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
838" 2], [0], [dnl
0e197060 839OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
840], [dnl
841])
842AT_CLEANUP
843
2e1ae200
JR
844# The flow is formatted with cls_rule_format() for the low-verbosity case.
845AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
846AT_KEYWORDS([ofp-print])
847AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
84804 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 84900 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
2e1ae200
JR
850ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
85100 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
85250 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
85380 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
85400 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
85500 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
85600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
857" 2], [0], [dnl
0e197060 858OFPT_FLOW_MOD (OF1.3) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 send_flow_rem check_overlap reset_counts no_packet_counts no_byte_counts actions=output:3
2e1ae200
JR
859], [dnl
860])
861AT_CLEANUP
862
d55b18c8
IY
863AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
864AT_KEYWORDS([ofp-print])
865AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
86603 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
86700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
868ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
86900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
87000 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
871c0 a8 03 5c 00 00 00 00 \
872" 2], [0], [dnl
873OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
874], [dnl
875])
876AT_CLEANUP
877
878AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
879AT_KEYWORDS([ofp-print])
880AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
88103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
88200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
883ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
88400 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
88500 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
886c0 a8 4a 7a 00 00 00 00 \
887" 2], [0], [dnl
888OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
889], [dnl
890])
891AT_CLEANUP
892
0d56eaf2
JS
893AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
894AT_KEYWORDS([ofp-print])
895AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
89603 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
89700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
898ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
89900 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
90000 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
9010d 06 00 00 00 00 00 00 \
902" 2], [0], [dnl
903OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
904], [dnl
905])
906AT_CLEANUP
907
908AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
909AT_KEYWORDS([ofp-print])
910AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
91103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
91200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
913ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
91400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
91500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
91611 5d 00 00 00 00 00 00 \
917" 2], [0], [dnl
918OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
919], [dnl
920])
921AT_CLEANUP
922
508a9338
BP
923AT_SETUP([OFPT_FLOW_MOD - OF1.2 - experimenter OXM])
924AT_KEYWORDS([ofp-print])
925AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
92603 0e 00 48 52 33 45 07 00 00 00 00 00 00 00 00 \
92700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
928ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
92900 01 00 14 ff ff 01 0c 00 00 23 20 01 23 45 67 \
9300f ff ff ff 00 00 00 00
931" 2], [0], [dnl
932OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,dp_hash=0x1234567/0xfffffff actions=drop
933], [dnl
934])
935AT_CLEANUP
936
e60e935b
SRCSA
937AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field nd_target, nd_sll])
938AT_KEYWORDS([ofp-print])
939AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
94003 0e 00 78 00 00 00 02 00 00 00 00 00 00 00 00 \
94100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
942ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
94300 01 00 14 80 00 0a 02 86 dd 80 00 14 01 3a 80 \
94400 3a 01 87 00 00 00 00 00 04 00 30 00 00 00 00 \
94500 19 00 18 80 00 3e 10 00 00 00 00 00 00 00 00 \
94600 00 00 00 00 00 00 01 00 19 00 10 80 00 40 06 \
947aa aa aa aa aa aa 00 00
948" 2], [0], [dnl
949OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD priority=255,icmp6,icmp_type=135 actions=set_field:::1->nd_target,set_field:aa:aa:aa:aa:aa:aa->nd_sll
950], [dnl
951])
952AT_CLEANUP
953
b2a27ddc
BP
954dnl This triggered a buggy "instructions out of order" message earlier.
955AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
956AT_KEYWORDS([ofp-print])
957AT_CHECK([ovs-ofctl ofp-print "\
95804 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
95900 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
960ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
96100 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
962OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
963])
964AT_CLEANUP
965
d55b18c8
IY
966AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
967AT_KEYWORDS([ofp-print])
968AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
96903 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
97000 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
97100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
97300 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
97400 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
975c0 a8 03 5c 00 00 00 00 \
976" 2], [0], [dnl
977OFPST_FLOW reply (OF1.2) (xid=0x52334504):
978 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
979], [dnl
980])
981AT_CLEANUP
982
983AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
984AT_KEYWORDS([ofp-print])
985AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
98603 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
98700 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
98800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
98900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
99000 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
99100 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
992c0 a8 4a 7a 00 00 00 00 \
993" 2], [0], [dnl
994OFPST_FLOW reply (OF1.2) (xid=0x52334509):
995 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
996], [dnl
997])
998AT_CLEANUP
999
0d56eaf2
JS
1000AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
1001AT_KEYWORDS([ofp-print])
1002AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
100303 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
100400 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
100500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
100600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
100700 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
100800 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
10090d 06 00 00 00 00 00 00 \
1010" 2], [0], [dnl
1011OFPST_FLOW reply (OF1.2) (xid=0x52334504):
1012 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
1013], [dnl
1014])
1015AT_CLEANUP
1016
1017AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
1018AT_KEYWORDS([ofp-print])
1019AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
102003 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
102100 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
102200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
102300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
102400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
102500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
102611 5d 00 00 00 00 00 00 \
1027" 2], [0], [dnl
1028OFPST_FLOW reply (OF1.2) (xid=0x52334509):
1029 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
1030], [dnl
1031])
1032AT_CLEANUP
1033
9e1fd49b 1034AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
1035AT_KEYWORDS([ofp-print])
1036AT_CHECK([ovs-ofctl ofp-print "\
103701 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
103800 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
1039" 3], [0], [dnl
9e1fd49b
BP
1040OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
1041 config: PORT_DOWN
1042 mask: PORT_DOWN
1043 advertise: UNCHANGED
1044])
1045AT_CLEANUP
1046
1047AT_SETUP([OFPT_PORT_MOD - OF1.1])
1048AT_KEYWORDS([ofp-print])
1049AT_CHECK([ovs-ofctl ofp-print "\
105002 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
105150 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
105200 00 00 00 00 00 00 00 \
1053" 3], [0], [dnl
1054OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1055 config: PORT_DOWN
1056 mask: PORT_DOWN
fec00620
BP
1057 advertise: UNCHANGED
1058])
1059AT_CLEANUP
1060
bb2bc3c1
SH
1061AT_SETUP([OFPT_PORT_MOD - OF1.2])
1062AT_KEYWORDS([ofp-print])
1063AT_CHECK([ovs-ofctl ofp-print "\
106403 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
106550 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
106600 00 00 00 00 00 00 00 \
1067" 3], [0], [dnl
1068OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1069 config: PORT_DOWN
1070 mask: PORT_DOWN
1071 advertise: UNCHANGED
1072])
1073AT_CLEANUP
1074
2e1ae200
JR
1075AT_SETUP([OFPT_PORT_MOD - OF1.3])
1076AT_KEYWORDS([ofp-print])
1077AT_CHECK([ovs-ofctl ofp-print "\
107804 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
107950 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
108000 00 00 00 00 00 00 00 \
1081" 3], [0], [dnl
1082OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1083 config: PORT_DOWN
1084 mask: PORT_DOWN
1085 advertise: UNCHANGED
1086])
1087AT_CLEANUP
1088
18cc69d9
BP
1089AT_SETUP([OFPT_PORT_MOD - OF1.4])
1090AT_KEYWORDS([ofp-print])
1091AT_CHECK([ovs-ofctl ofp-print "\
109205 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
109350 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
109400 00 00 08 00 00 00 01
1095" 3], [0], [dnl
1096OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1097 config: PORT_DOWN
1098 mask: PORT_DOWN
1099 advertise: 10MB-HD
1100])
1101AT_CLEANUP
1102
918f2b82
AZ
1103AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1104AT_KEYWORDS([ofp-print])
1105AT_CHECK([ovs-ofctl ofp-print "\
110602 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1107" 3], [0], [dnl
1108OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1109])
1110AT_CLEANUP
1111
1112AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1113AT_KEYWORDS([ofp-print])
1114AT_CHECK([ovs-ofctl ofp-print "\
111503 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1116" 3], [0], [dnl
1117OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1118])
1119AT_CLEANUP
1120
1121AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1122AT_KEYWORDS([ofp-print])
1123AT_CHECK([ovs-ofctl ofp-print "\
112404 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1125" 3], [0], [dnl
3c1bb396 1126OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2
918f2b82
AZ
1127])
1128AT_CLEANUP
1129
37ab26e8
BP
1130AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1131AT_KEYWORDS([ofp-print])
1132AT_CHECK([ovs-ofctl ofp-print "\
113305 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1134" 3], [0], [dnl
3c1bb396 1135OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2
37ab26e8
BP
1136])
1137AT_CLEANUP
1138
fec00620
BP
1139AT_SETUP([OFPST_DESC request])
1140AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1141AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1142OFPST_DESC request (xid=0x1):
1143])
1144AT_CLEANUP
1145
1146AT_SETUP([OFPST_DESC reply])
1147AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1148AT_CHECK([ovs-ofctl ofp-print "\
114901 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
115072 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
115100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
115200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116500 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
116620 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
116700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118100 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
118230 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
118300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119700 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
119800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119900 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
120000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
120900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
121500 00 00 00 00 00 00 00 00 00 00 00 \
1216"], [0], [dnl
1217OFPST_DESC reply (xid=0x1):
e0edde6f 1218Manufacturer: Nicira, Inc.
fec00620
BP
1219Hardware: Open vSwitch
1220Software: 1.1.0pre2
1221Serial Num: None
1222DP Description: None
1223])
1224AT_CLEANUP
1225
0157ad3a 1226AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1227AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1228AT_CHECK([ovs-ofctl ofp-print "\
122901 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1230ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123200 00 00 00 ff 00 ff ff \
1233"], [0], [dnl
54ae6fa8 1234OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1235])
1236AT_CLEANUP
1237
0157ad3a
SH
1238AT_SETUP([OFPST_FLOW request - OF1.2])
1239AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1240AT_CHECK([ovs-ofctl ofp-print "\
124103 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1242ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
124300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
124400 01 00 04 00 00 00 00 \
1245"], [0], [dnl
1246OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1247])
1248AT_CLEANUP
1249
2e1ae200
JR
1250AT_SETUP([OFPST_FLOW request - OF1.3])
1251AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1252AT_CHECK([ovs-ofctl ofp-print "\
125304 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1254ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
125500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
125600 01 00 04 00 00 00 00 \
1257"], [0], [dnl
1258OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1259])
1260AT_CLEANUP
1261
6ec5f0c5 1262AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1263AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1264AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 126501 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
126600 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
126700 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1268c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1269ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
127000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
127100 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
127200 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
127300 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1274c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1275ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
127600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
127700 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
127800 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
127900 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1280c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1281ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
128200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
128300 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 128400 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
128500 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1286c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 128780 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
128800 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
128900 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
129000 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
129100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129300 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
129400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129500 00 00 00 00 00 00 00 \
fec00620
BP
1296"], [0], [dnl
1297OFPST_FLOW reply (xid=0x4):
b1634591
BP
1298 cookie=0x0, duration=4.200s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1
1299 cookie=0x0, duration=8.900s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, priority=65535,icmp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
1300 cookie=0x0, duration=4.280s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=1,nw_tos=0,tp_src=0,tp_dst=0 actions=output:3
b9718b7b 1301 cookie=0x0, duration=9.096s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, icmp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,icmp_type=8,icmp_code=0 actions=output:1
05b8f1c2 1302 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1303])
1304AT_CLEANUP
1305
6ec5f0c5
SH
1306AT_SETUP([OFPST_FLOW reply - OF1.2])
1307AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1308AT_CHECK([ovs-ofctl ofp-print "\
130903 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
131000 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
131100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
131300 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1314ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
131500 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
131600 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
131705 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
131820 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
131900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
132000 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
132100 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
13220a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
132300 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
132400 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
132500 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
132600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
132700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
132800 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
132952 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
133000 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
133100 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
133205 dc 00 00 00 00 00 00 \
1333"], [0], [dnl
1334OFPST_FLOW reply (OF1.2) (xid=0x2):
1335 cookie=0x0, duration=3.023s, table=0, n_packets=1, n_bytes=98, ip,metadata=0,in_port=2,dl_dst=ca:da:ad:d6:0d:37,nw_tos=0 actions=output:2
1336 cookie=0x0, duration=4.545s, table=0, n_packets=2, n_bytes=140, ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 actions=output:2
1337 cookie=0x0, duration=4.548s, table=0, n_packets=1, n_bytes=42, ip,metadata=0,in_port=2,dl_dst=52:54:00:97:00:69,nw_tos=0 actions=output:2
1338])
1339AT_CLEANUP
1340
617da9cd 1341AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1342AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1343AT_CHECK([ovs-ofctl ofp-print "\
134401 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1345ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
134700 00 00 00 ff 00 ff ff \
1348"], [0], [dnl
54ae6fa8 1349OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1350])
1351AT_CLEANUP
1352
617da9cd
SH
1353AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1354AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1355AT_CHECK([ovs-ofctl ofp-print "\
135603 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1357ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
135800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
135900 01 00 04 00 00 00 00 \
1360"], [0], [dnl
1361OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1362])
1363AT_CLEANUP
1364
2e1ae200
JR
1365AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1366AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1367AT_CHECK([ovs-ofctl ofp-print "\
136804 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1369ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
137000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
137100 01 00 04 00 00 00 00 \
1372"], [0], [dnl
1373OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1374])
1375AT_CLEANUP
1376
617da9cd 1377AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1378AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1379AT_CHECK([ovs-ofctl ofp-print "\
138001 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
138100 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
138200 00 00 00 \
1383"], [0], [dnl
1384OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1385])
1386AT_CLEANUP
1387
617da9cd
SH
1388AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1389AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1390AT_CHECK([ovs-ofctl ofp-print "\
139103 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
139200 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
139300 00 00 03 00 00 00 00 \
1394"], [0], [dnl
1395OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1396])
1397AT_CLEANUP
1398
2e1ae200
JR
1399AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1400AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1401AT_CHECK([ovs-ofctl ofp-print "\
140204 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
140300 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
140400 00 00 03 00 00 00 00 \
1405"], [0], [dnl
1406OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1407])
1408AT_CLEANUP
1409
307975da 1410AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1411AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1412AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1413OFPST_TABLE request (xid=0x1):
1414])
1415AT_CLEANUP
1416
307975da
SH
1417AT_SETUP([OFPST_TABLE request - OF1.1])
1418AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1419AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1420OFPST_TABLE request (OF1.1) (xid=0x2):
1421])
1422AT_CLEANUP
1423
1424AT_SETUP([OFPST_TABLE request - OF1.2])
1425AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1426AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1427OFPST_TABLE request (OF1.2) (xid=0x2):
1428])
1429AT_CLEANUP
1430
2e1ae200
JR
1431AT_SETUP([OFPST_TABLE request - OF1.3])
1432AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1433AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1434OFPST_TABLE request (OF1.3) (xid=0x2):
1435])
1436AT_CLEANUP
1437
26df8b3e 1438AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1439AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1440AT_CHECK([ovs-ofctl ofp-print "\
144101 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
144263 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
144300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
144400 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
144500 00 00 00 00 00 00 00 00 00 00 00 \
1446"], [0], [dnl
3c1bb396
BP
1447OFPST_TABLE reply (xid=0x1):
1448 table 0 ("classifier"):
1449 active=11, lookup=0, matched=0
1450 max_entries=1048576
1451 matching:
1452 in_port: exact match or wildcard
1453 eth_src: exact match or wildcard
1454 eth_dst: exact match or wildcard
1455 eth_type: exact match or wildcard
1456 vlan_vid: exact match or wildcard
1457 vlan_pcp: exact match or wildcard
1458 ip_src: exact match or wildcard
1459 ip_dst: exact match or wildcard
1460 nw_proto: exact match or wildcard
1461 nw_tos: exact match or wildcard
1462 tcp_src: exact match or wildcard
1463 tcp_dst: exact match or wildcard
fec00620
BP
1464])
1465AT_CLEANUP
1466
26df8b3e
SH
1467AT_SETUP([OFPST_TABLE reply - OF1.2])
1468AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3c1bb396
BP
1469(tail="
1470 config=controller
1471 max_entries=1000000
1472 instructions (table miss and others):
1473 instructions: write_metadata,goto_table
1474 Write-Actions and Apply-Actions features:
1475 supported on Set-Field: metadata in_port_oxm eth_src eth_dst eth_type vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst ipv6_label nw_proto ip_dscp nw_ecn arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst icmp_type icmp_code icmpv6_type icmpv6_code nd_target nd_sll nd_tll
1476 matching:
1477 metadata: exact match or wildcard
1478 in_port_oxm: exact match or wildcard
1479 eth_src: exact match or wildcard
1480 eth_dst: exact match or wildcard
1481 eth_type: exact match or wildcard
1482 vlan_vid: exact match or wildcard
1483 vlan_pcp: exact match or wildcard
1484 mpls_label: exact match or wildcard
1485 mpls_tc: exact match or wildcard
1486 ip_src: exact match or wildcard
1487 ip_dst: exact match or wildcard
1488 ipv6_src: exact match or wildcard
1489 ipv6_dst: exact match or wildcard
1490 ipv6_label: exact match or wildcard
1491 nw_proto: exact match or wildcard
1492 ip_dscp: exact match or wildcard
1493 nw_ecn: exact match or wildcard
1494 arp_op: exact match or wildcard
1495 arp_spa: exact match or wildcard
1496 arp_tpa: exact match or wildcard
1497 arp_sha: exact match or wildcard
1498 arp_tha: exact match or wildcard
1499 tcp_src: exact match or wildcard
1500 tcp_dst: exact match or wildcard
1501 udp_src: exact match or wildcard
1502 udp_dst: exact match or wildcard
1503 sctp_src: exact match or wildcard
1504 sctp_dst: exact match or wildcard
1505 icmp_type: exact match or wildcard
1506 icmp_code: exact match or wildcard
1507 icmpv6_type: exact match or wildcard
1508 icmpv6_code: exact match or wildcard
1509 nd_target: exact match or wildcard
1510 nd_sll: exact match or wildcard
1511 nd_tll: exact match or wildcard"
1512 echo "OFPST_TABLE reply (OF1.2) (xid=0x2):
1513 table 0 (\"classifier\"):
1514 active=1, lookup=74614, matched=106024$tail"
26df8b3e
SH
1515 x=1
1516 while test $x -lt 254; do
3c1bb396
BP
1517 printf "
1518 table %d (\"%s\"):
1519 active=0, lookup=0, matched=0$tail
26df8b3e
SH
1520" $x table$x
1521 x=`expr $x + 1`
1522 done
3c1bb396
BP
1523 echo "
1524 table 254 (\"table254\"):
1525 active=2, lookup=0, matched=0$tail") > expout
26df8b3e
SH
1526
1527(pad32="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
1528 pad7="00 00 00 00 00 00 00 "
1529 mid="00 00 00 0f ff ff ff ff \
153000 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
153100 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
153200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153300 00 00 07 00 00 00 00 00 0f 42 40 "
1534 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1535
1536 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1537
1538 x=0
1539 printf "%02x $pad7" $x
1540 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1541 echo -n "$mid 00 00 00 01 "
1542 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1543
1544 x=1
1545 while test $x -lt 254; do
1546 printf "%02x $pad7" $x
1547 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1548 echo -n "$mid 00 00 00 00 $tail "
1549 x=`expr $x + 1`
1550 done
1551
1552 x=254
1553 printf "%02x $pad7" $x
1554 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1555 echo -n "$mid 00 00 00 02 $tail") > in
8b227701 1556AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout])
26df8b3e
SH
1557AT_CLEANUP
1558
2e1ae200
JR
1559AT_SETUP([OFPST_TABLE reply - OF1.3])
1560AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1561AT_CHECK([ovs-ofctl ofp-print "\
156204 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
156300 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
156400 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
156500 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1566"], [0], [dnl
3c1bb396
BP
1567OFPST_TABLE reply (OF1.3) (xid=0x1):
1568 table 0:
1569 active=11, lookup=512, matched=256
1570
1571 table 1:
1572 active=12, lookup=513, matched=257
2e1ae200
JR
1573])
1574AT_CLEANUP
1575
f8e4867e 1576AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1577AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1578AT_CHECK([ovs-ofctl ofp-print "\
157901 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
158000 00 00 00 \
1581"], [0], [dnl
e1db42d6 1582OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1583])
1584AT_CLEANUP
1585
f8e4867e
SH
1586AT_SETUP([OFPST_PORT request - 1.1])
1587AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1588AT_CHECK([ovs-ofctl ofp-print "\
158902 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1590ff ff ff ff 00 00 00 00 \
1591"], [0], [dnl
e1db42d6 1592OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1593])
1594AT_CLEANUP
1595
1596AT_SETUP([OFPST_PORT request - 1.2])
1597AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1598AT_CHECK([ovs-ofctl ofp-print "\
159903 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1600ff ff ff ff 00 00 00 00 \
1601"], [0], [dnl
e1db42d6 1602OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1603])
1604AT_CLEANUP
1605
2e1ae200
JR
1606AT_SETUP([OFPST_PORT request - 1.3])
1607AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1608AT_CHECK([ovs-ofctl ofp-print "\
160904 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1610ff ff ff ff 00 00 00 00 \
1611"], [0], [dnl
e1db42d6 1612OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1613])
1614AT_CLEANUP
1615
f8e4867e 1616AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1617AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1618AT_CHECK([ovs-ofctl ofp-print "\
161901 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
162000 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
162100 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
162200 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
162300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
162600 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
162700 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
162800 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
162900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163200 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
163300 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
163400 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
163500 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
163600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
163900 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
164000 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
164100 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
164200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
164500 00 00 00 00 00 00 00 00 00 00 00 \
1646"], [0], [dnl
1647OFPST_PORT reply (xid=0x1): 4 ports
1648 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1649 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1650 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1651 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1652 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1653 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1654 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1655 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1656])
1657AT_CLEANUP
1658
f8e4867e
SH
1659AT_SETUP([OFPST_PORT reply - OF1.2])
1660AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1661AT_CHECK([ovs-ofctl ofp-print "\
166203 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
166300 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
166400 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
166500 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
166600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
166900 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
167000 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
167100 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
167200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167600 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
167700 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
167800 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
167900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
168200 00 00 00 00 00 00 00 \
1683"], [0], [dnl
1684OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1685 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1686 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1687 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1688 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1689 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1690 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1691])
1692AT_CLEANUP
1693
65e0be10
BP
1694AT_SETUP([OFPST_PORT reply - OF1.3])
1695AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1696AT_CHECK([ovs-ofctl ofp-print "\
169704 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
169800 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
169900 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
170000 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
170100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170400 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1705ff ff ff fe 00 00 00 00 \
170600 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
170700 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
170800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1712ff ff ff ff ff ff ff ff \
171300 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
171400 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
171500 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
171600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
171900 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1720"], [0], [dnl
1721OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1722 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1723 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1724 duration=1.001s
1725 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1726 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1727 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1728 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1729 duration=0.123s
1730])
1731AT_CLEANUP
1732
5469537b
BP
1733AT_SETUP([OFPST_PORT reply - OF1.4])
1734AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1735AT_CHECK([ovs-ofctl ofp-print "\
173605 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \
173700 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \
173800 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \
173900 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \
174000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174200 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \
174300 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \
174400 00 00 00 00 00 00 ff \
1745"], [0], [dnl
1746OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports
1747 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254
1748 tx pkts=136, bytes=11512, drop=0, errs=0, coll=255
1749 duration=1.001s
1750])
1751AT_CLEANUP
1752
64626975 1753AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1754AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1755AT_CHECK([ovs-ofctl ofp-print "\
175601 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1757ff ff ff ff \
1758"], [0], [dnl
7f05e7ab 1759OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1760])
1761AT_CLEANUP
1762
64626975
SH
1763AT_SETUP([OFPST_QUEUE request - OF1.1])
1764AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1765AT_CHECK([ovs-ofctl ofp-print "\
176602 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1767ff ff ff ff ff ff ff ff \
64626975 1768"], [0], [dnl
7f05e7ab 1769OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1770])
1771AT_CLEANUP
1772
1773AT_SETUP([OFPST_QUEUE request - OF1.2])
1774AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1775AT_CHECK([ovs-ofctl ofp-print "\
177603 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1777ff ff ff ff ff ff ff ff \
64626975 1778"], [0], [dnl
7f05e7ab 1779OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1780])
1781AT_CLEANUP
1782
2e1ae200
JR
1783AT_SETUP([OFPST_QUEUE request - OF1.3])
1784AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1785AT_CHECK([ovs-ofctl ofp-print "\
178604 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1787ff ff ff ff ff ff ff ff \
1788"], [0], [dnl
1789OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1790])
1791AT_CLEANUP
1792
64626975 1793AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1794AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1795AT_CHECK([ovs-ofctl ofp-print "\
179601 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
179700 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
179800 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
179900 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180000 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
180100 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
180200 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
180300 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180400 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
180500 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
180600 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
180700 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
180800 00 00 00 00 00 00 00 00 00 00 00 \
1809"], [0], [dnl
1810OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1811 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1812 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1813 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1814 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1815 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1816 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1817])
1818AT_CLEANUP
1819
64626975
SH
1820AT_SETUP([OFPST_QUEUE reply - OF1.1])
1821AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1822AT_CHECK([ovs-ofctl ofp-print "\
182302 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
182400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
182500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
182600 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
182700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
182800 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
182900 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
183000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
183100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
183300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
183400 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
183500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1836"], [0], [dnl
1837OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1838 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1839 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1840 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1841 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1842 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1843 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1844])
1845AT_CLEANUP
1846
1847AT_SETUP([OFPST_QUEUE reply - OF1.2])
1848AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1849AT_CHECK([ovs-ofctl ofp-print "\
185003 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
185100 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
185200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
185300 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
185400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185500 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
185600 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
185700 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
185800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
185900 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
186000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
186100 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
186200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1863"], [0], [dnl
1864OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1865 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1866 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1867 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1868 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1869 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1870 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1871])
1872AT_CLEANUP
be0c30df
BP
1873
1874AT_SETUP([OFPST_QUEUE reply - OF1.3])
1875AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1876AT_CHECK([ovs-ofctl ofp-print "\
187704 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
187800 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
187900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
188000 00 00 64 1d cd 65 00 \
188100 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
188200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188300 00 00 64 1d cd 65 00 \
188400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
188500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
188600 00 00 64 1d cd 65 00 \
188700 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
188800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
188900 00 00 64 1d cd 65 00 \
189000 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
189100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
189200 00 00 64 1d cd 65 00 \
189300 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
189400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1895ff ff ff ff ff ff ff ff \
1896"], [0], [dnl
1897OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1898 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1899 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1900 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1901 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1902 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1903 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1904])
1905AT_CLEANUP
1906
1bb2cdbe
BP
1907AT_SETUP([OFPST_QUEUE reply - OF1.4])
1908AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1909AT_CHECK([ovs-ofctl ofp-print "\
191005 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \
191100 30 00 00 00 00 00 00 \
191200 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
191300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
191400 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191500 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
191600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
191700 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
191800 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
191900 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
192000 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192100 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
192200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
192300 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192400 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
192500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
192600 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \
192700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
192800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1929ff ff ff ff ff ff ff ff \
1930"], [0], [dnl
1931OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues
1932 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1933 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1934 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1935 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1936 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
1937 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1938])
1939AT_CLEANUP
1940
7395c052
NZ
1941AT_SETUP([OFPST_GROUP request])
1942AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1943AT_CHECK([ovs-ofctl ofp-print "\
194402 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1945ff ff ff ff 00 00 00 00 \
1946"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1947])
1948AT_CLEANUP
1949
1950AT_SETUP([OFPST_GROUP reply - OF1.1])
1951AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1952AT_CHECK([ovs-ofctl ofp-print "\
195302 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
195400 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
195500 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
195600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
195700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
195800 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
195900 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
196000 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
196100 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
196200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1963"], [0], [dnl
1964OFPST_GROUP reply (OF1.1) (xid=0x2):
1965 group_id=2271560481,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
1966 group_id=5,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
1967])
1968AT_CLEANUP
1969
1970AT_SETUP([OFPST_GROUP reply - OF1.3])
1971AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1972AT_CHECK([ovs-ofctl ofp-print "\
197304 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
197400 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
197500 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
197600 00 00 12 1d cd 65 00 \
197700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
197800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
197900 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
198000 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
198100 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
198200 00 00 10 1d cd 65 00 \
198300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
198400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1985"], [0], [dnl
1986OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1987 group_id=2271560481,duration=18.500s,ref_count=4,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962,bucket2:packet_count=26214,byte_count=3355443
1988 group_id=5,duration=16.500s,ref_count=2,packet_count=34952,byte_count=7829367,bucket0:packet_count=4369,byte_count=2236962,bucket1:packet_count=4369,byte_count=2236962
7395c052
NZ
1989])
1990AT_CLEANUP
1991
19187a71 1992AT_SETUP([OFPST_GROUP_DESC request - OF1.1])
7395c052
NZ
1993AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1994AT_CHECK([ovs-ofctl ofp-print "\
199502 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
19187a71
BP
1996"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL
1997])
1998AT_CLEANUP
1999
2000AT_SETUP([OFPST_GROUP_DESC request - OF1.5])
2001AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2002AT_CHECK([ovs-ofctl ofp-print "\
200306 12 00 14 00 00 00 02 00 07 00 00 00 00 00 00 \
200400 00 00 01
2005"], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1
7395c052
NZ
2006])
2007AT_CLEANUP
2008
76c41209 2009AT_SETUP([OFPST_GROUP_DESC reply - OF1.1])
7395c052
NZ
2010AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2011AT_CHECK([ovs-ofctl ofp-print "\
201202 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
201300 68 01 00 00 00 20 00 \
201400 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
201500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
201600 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
201700 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
201800 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
201900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2020"], [0], [dnl
2021OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
2022 group_id=8192,type=select,bucket=weight:100,watch_port:1,actions=output:1,bucket=weight:200,watch_port:2,actions=output:2,bucket=weight:200,watch_port:3,actions=output:3
2023])
2024AT_CLEANUP
2025
76c41209
SH
2026AT_SETUP([OFPST_GROUP_DESC reply - OF1.5])
2027AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2028AT_CHECK([ovs-ofctl ofp-print "\
202906 13 00 98 00 00 00 02 00 07 00 00 00 00 00 00 \
203000 88 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \
203100 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \
203200 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \
203300 01 00 08 00 00 00 01 \
203400 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
203500 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
203600 01 00 08 00 00 00 02 \
203700 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \
203800 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
203900 01 00 08 00 00 00 03 \
2040"], [0], [dnl
2041OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):
2042 group_id=8192,type=select,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2043])
2044AT_CLEANUP
2045
7395c052
NZ
2046AT_SETUP([OFPST_GROUP_FEATURES request])
2047AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2048AT_CHECK([ovs-ofctl ofp-print "\
204903 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
2050"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
2051])
2052AT_CLEANUP
2053
2054AT_SETUP([OFPST_GROUP_FEATURES reply])
2055AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2056AT_CHECK([ovs-ofctl ofp-print "\
205703 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
205800 00 00 0f 00 00 00 0f \
205900 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
08d1e234 206000 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \
7395c052
NZ
2061"], [0], [dnl
2062OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
2063 Group table:
2064 Types: 0xf
2065 Capabilities: 0xf
08d1e234
BP
2066 all group:
2067 max_groups=0x1
2068 actions: output
2069 select group:
2070 max_groups=0x2
2071 actions: output push_vlan
2072 indirect group:
2073 max_groups=0x3
2074 actions: output strip_vlan push_vlan
2075 fast failover group:
2076 max_groups=0x4
2077 actions: output strip_vlan push_vlan push_mpls
7395c052
NZ
2078])
2079AT_CLEANUP
2080
2081AT_SETUP([OFPST_PORT_DESC request - OF1.0])
2082AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2083AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
70ae4f93
BP
2084OFPST_PORT_DESC request (xid=0x1): port=ANY
2085])
2086AT_CLEANUP
2087
2088AT_SETUP([OFPST_PORT_DESC request - OF1.5])
2089AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2090AT_CHECK([ovs-ofctl ofp-print "\
209106 12 00 14 00 00 00 02 00 0d 00 00 00 00 00 00 \
209200 00 00 05"], [0], [dnl
2093OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5
7395c052
NZ
2094])
2095AT_CLEANUP
2096
2be393ed
JP
2097AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
2098AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2099AT_CHECK([ovs-ofctl ofp-print "\
210001 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
210100 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
210200 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
210300 00 02 8f 00 00 02 8f 00 00 00 00 \
2104"], [0], [dnl
2105OFPST_PORT_DESC reply (xid=0x0):
2106 3(eth0): addr:50:54:00:00:00:01
2107 config: PORT_DOWN
2108 state: LINK_DOWN
2109 current: 100MB-FD AUTO_NEG
2110 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2111 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2112 speed: 100 Mbps now, 100 Mbps max
2113])
2114AT_CLEANUP
2115
8c3cc785
BP
2116AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
2117AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2118AT_CHECK([ovs-ofctl ofp-print "\
211905 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
212000 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
212165 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
212200 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
212300 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
212400 01 86 a0 00 01 86 a0 \
2125"], [0], [dnl
2126OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
2127 3(eth0): addr:50:54:00:00:00:01
2128 config: 0
2129 state: 0
2130 current: 100MB-FD AUTO_NEG
2131 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2132 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
2133 speed: 100 Mbps now, 100 Mbps max
2134])
2135AT_CLEANUP
2136
638a19b0
JR
2137AT_SETUP([OFPT_METER_MOD request - OF1.3])
2138AT_KEYWORDS([ofp-print])
2139AT_CHECK([ovs-ofctl ofp-print "\
214004 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
214100 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
2142"], [0], [dnl
2143OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
2144type=drop rate=1024 burst_size=128
2145])
2146AT_CLEANUP
2147
f99d6aa0
BP
2148AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
2149AT_KEYWORDS([ofp-print])
2150AT_CHECK([ovs-ofctl ofp-print "\
215104 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
215200 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
2153"], [0], [dnl
2154OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
2155])
2156AT_CLEANUP
2157
142cdb01
BP
2158AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
2159AT_KEYWORDS([ofp-print])
2160AT_CHECK([ovs-ofctl ofp-print "\
216104 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
2162"], [0], [dnl
2163OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
2164])
2165AT_CLEANUP
2166
13b1febe
BP
2167AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
2168AT_KEYWORDS([ofp-print])
2169AT_CHECK([ovs-ofctl ofp-print "\
217004 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
217100 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
2172"], [0], [dnl
2173OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
2174])
2175AT_CLEANUP
2176
638a19b0
JR
2177AT_SETUP([OFPST_METER request - OF1.3])
2178AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2179AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
2180OFPST_METER request (OF1.3) (xid=0x2): meter=1
2181])
2182AT_CLEANUP
2183
2184AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
2185AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2186AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
2187OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
2188])
2189AT_CLEANUP
2190
2191AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
2192AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2193AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
2194OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
2195])
2196AT_CLEANUP
2197
2198AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
2199AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2200AT_CHECK([ovs-ofctl ofp-print "\
220104 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 220200 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
2203"], [0], [dnl
2204OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
2205max_meter:65536 max_bands:16 max_color:2
2206band_types: drop dscp_remark
2207capabilities: kbps pktps burst stats
2208])
2209AT_CLEANUP
2210
2211AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2212AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2213AT_CHECK([ovs-ofctl ofp-print "\
221404 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
221500 28 00 05 00 00 00 01 \
221600 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
221700 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
221800 18 00 09 00 00 00 02 \
221900 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2220"], [0], [dnl
2221OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2222meter=1 kbps burst bands=
2223type=drop rate=65536 burst_size=1280
2224type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2225
2226meter=2 kbps stats bands=
2227type=drop rate=131072
2228])
2229AT_CLEANUP
2230
2231AT_SETUP([OFPST_METER reply - OF1.3])
2232AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2233AT_CHECK([ovs-ofctl ofp-print "\
223404 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
223500 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
223600 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 223700 00 01 8a 0a 6e 23 44 \
638a19b0
JR
223800 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
223900 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
224000 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
224100 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 224200 00 01 87 0a 23 6e 44 \
638a19b0
JR
224300 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2244"], [0], [dnl
2245OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2246meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
22470: packet_count:126 byte_count:13363
22481: packet_count:231 byte_count:37934
2249
0445637d 2250meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
22510: packet_count:42 byte_count:1075
2252])
2253AT_CLEANUP
2254
5deff5aa
AW
2255AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2256AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2257AT_CHECK([ovs-ofctl ofp-print "\
225804 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
225909 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
226000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
226100 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2262ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
226300 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
226400 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
226500 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
226600 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
226700 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
226800 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
226900 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
22700d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
22711d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
22722d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
22733d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
22744d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
22755d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
22766d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
22777d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
22788d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
22799d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2280ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2281bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2282cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2283dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2284ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2285fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
228605 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
228715 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
228825 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
228935 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
229045 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
229155 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
229265 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
229375 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
229485 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
229595 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2296a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2297b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2298c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2299d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2300e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2301f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
230200 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
230300 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
230400 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
230500 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
230600 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
230700 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
230800 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
230900 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
231000 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
231100 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
231200 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
231300 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
231400 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
231500 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
231600 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
231700 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
231800 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
231900 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
232000 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
232100 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
232200 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
232300 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
232400 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
232500 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
232600 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
232700 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
232800 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
232900 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
233000 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
233100 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
233200 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
233300 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
233400 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
233500 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
233600 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
233780 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
233800 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
233900 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
234080 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
234180 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
234280 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
234380 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
234480 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
234580 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
234680 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
234780 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
234880 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
234980 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
235000 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
235180 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
235200 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
235300 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
235480 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
235580 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
235680 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
235780 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
235880 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
235980 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
236080 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
236180 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
236280 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
236380 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
236400 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
236580 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
236600 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
236700 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
236880 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
236980 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
237080 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
237180 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
237280 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
237380 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
237480 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
237500 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
237680 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
237700 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
237800 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
237900 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
238080 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
238180 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
238200 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
238380 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
238480 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
238500 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
238680 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
238700 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
238800 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
238980 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
239080 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
239180 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
239280 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
239380 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
239480 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
239580 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
239600 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
239780 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
239800 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
239900 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
240000 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
240180 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
240280 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
240300 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
240480 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
240580 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2406"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
3c1bb396 2407 table 0 ("table0"):
5deff5aa 2408 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
5deff5aa
AW
2409 max_entries=1000000
2410 instructions (table miss and others):
2411 next tables: 1-253
2412 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2413 Write-Actions and Apply-Actions features:
08d1e234 2414 actions: output group set_field strip_vlan push_vlan mod_nw_ttl dec_ttl set_mpls_ttl dec_mpls_ttl push_mpls pop_mpls set_queue
3c1bb396 2415 supported on Set-Field: tun_id tun_src tun_dst metadata in_port in_port_oxm pkt_mark reg0 reg1 reg2 reg3 reg4 reg5 reg6 reg7 eth_src eth_dst vlan_tci vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst nw_tos ip_dscp nw_ecn nw_ttl arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst
5deff5aa
AW
2416 matching:
2417 tun_id: exact match or wildcard
2418 tun_src: exact match or wildcard
2419 tun_dst: exact match or wildcard
2420 metadata: exact match or wildcard
2421 in_port: exact match or wildcard
2422 in_port_oxm: exact match or wildcard
2423 pkt_mark: exact match or wildcard
2424 reg0: exact match or wildcard
2425 reg1: exact match or wildcard
2426 reg2: exact match or wildcard
2427 reg3: exact match or wildcard
2428 reg4: exact match or wildcard
2429 reg5: exact match or wildcard
2430 reg6: exact match or wildcard
2431 reg7: exact match or wildcard
2432 eth_src: exact match or wildcard
2433 eth_dst: exact match or wildcard
2434 eth_type: exact match or wildcard
2435 vlan_tci: exact match or wildcard
2436 vlan_vid: exact match or wildcard
2437 vlan_pcp: exact match or wildcard
2438 mpls_label: exact match or wildcard
2439 mpls_tc: exact match or wildcard
2440 mpls_bos: exact match or wildcard
2441 ip_src: exact match or wildcard
2442 ip_dst: exact match or wildcard
2443 ipv6_src: exact match or wildcard
2444 ipv6_dst: exact match or wildcard
2445 ipv6_label: exact match or wildcard
2446 nw_proto: exact match or wildcard
2447 nw_tos: exact match or wildcard
2448 ip_dscp: exact match or wildcard
2449 nw_ecn: exact match or wildcard
2450 nw_ttl: exact match or wildcard
2451 ip_frag: exact match or wildcard
2452 arp_op: exact match or wildcard
2453 arp_spa: exact match or wildcard
2454 arp_tpa: exact match or wildcard
2455 arp_sha: exact match or wildcard
2456 arp_tha: exact match or wildcard
2457 tcp_src: exact match or wildcard
2458 tcp_dst: exact match or wildcard
2459 tcp_flags: exact match or wildcard
2460 udp_src: exact match or wildcard
2461 udp_dst: exact match or wildcard
2462 sctp_src: exact match or wildcard
2463 sctp_dst: exact match or wildcard
2464 icmp_type: exact match or wildcard
2465 icmp_code: exact match or wildcard
2466 icmpv6_type: exact match or wildcard
2467 icmpv6_code: exact match or wildcard
2468 nd_target: exact match or wildcard
2469 nd_sll: exact match or wildcard
2470 nd_tll: exact match or wildcard
2471])
2472AT_CLEANUP
2473
58cf43df 2474AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2475AT_KEYWORDS([ofp-print])
2476AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2477OFPT_BARRIER_REQUEST (xid=0x1):
2478])
2479AT_CLEANUP
2480
58cf43df
SH
2481AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2482AT_KEYWORDS([ofp-print])
2483AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2484OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2485])
2486AT_CLEANUP
2487
2488AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2489AT_KEYWORDS([ofp-print])
2490AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2491OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2492])
2493AT_CLEANUP
2494
2e1ae200
JR
2495AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2496AT_KEYWORDS([ofp-print])
2497AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2498OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2499])
2500AT_CLEANUP
2501
58cf43df 2502AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2503AT_KEYWORDS([ofp-print])
2504AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2505OFPT_BARRIER_REPLY (xid=0x1):
2506])
2507AT_CLEANUP
2508
2e1ae200 2509AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2510AT_KEYWORDS([ofp-print])
2511AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2512OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2513])
2514AT_CLEANUP
2515
2e1ae200 2516AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2517AT_KEYWORDS([ofp-print])
2518AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2519OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2520])
2521AT_CLEANUP
2522
2e1ae200
JR
2523AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2524AT_KEYWORDS([ofp-print])
2525AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2526OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2527])
2528AT_CLEANUP
2529
e8f9a7bb
VG
2530AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2531AT_KEYWORDS([ofp-print])
2ffc8767 2532AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
e8f9a7bb
VG
2533OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2534])
2535AT_CLEANUP
2536
2537AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2538AT_KEYWORDS([ofp-print])
2539AT_CHECK([ovs-ofctl ofp-print "\
254003 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2541OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2542])
2543AT_CLEANUP
2544
2545AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2546AT_KEYWORDS([ofp-print])
2ffc8767 2547AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \
e8f9a7bb
VG
254800 01 00 00 00 00 00 00 \
254900 00 55 55 00 28 00 00 \
255000 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
255100 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
255200 00 44 44 00 08 00 00 \
2553"], [0], [dnl
2554OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2555queue 21845: min_rate:50.0% max_rate:75.0%
2556queue 17476:
2557])
2558AT_CLEANUP
2559
2560AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2561AT_KEYWORDS([ofp-print])
2562AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
256300 00 00 01 00 00 00 00 \
256400 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
256500 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
256600 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
256700 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2568"], [0], [dnl
2569OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2570queue 21845: min_rate:50.0% max_rate:75.0%
2571queue 17476:
2572])
2573AT_CLEANUP
2e1ae200
JR
2574
2575AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2576AT_KEYWORDS([ofp-print])
2577AT_CHECK([ovs-ofctl ofp-print "\
257804 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
257900 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2580"], [0], [dnl
2581OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2582 master:
2583 PACKET_IN: no_match invalid_ttl 12
2584 PORT_STATUS: add delete
2585 FLOW_REMOVED: (off)
2586
2587 slave:
2588 PACKET_IN: no_match action invalid_ttl 12
2589 PORT_STATUS: add delete modify
2590 FLOW_REMOVED: idle hard
2591])
2592AT_CLEANUP
2593
6ea4776b
JR
2594AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2595AT_KEYWORDS([ofp-print])
2596AT_CHECK([ovs-ofctl ofp-print "\
259703 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
259800 00 00 00 00 00 00 03 \
2599"], [0], [dnl
2600OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2601])
2602AT_CLEANUP
2603
2604AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2605AT_KEYWORDS([ofp-print])
2606AT_CHECK([ovs-ofctl ofp-print "\
260703 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
260800 00 00 00 00 00 00 00 \
2609"], [0], [dnl
2610OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2611])
2612AT_CLEANUP
2613
fec00620
BP
2614AT_SETUP([NXT_ROLE_REQUEST])
2615AT_KEYWORDS([ofp-print])
2616AT_CHECK([ovs-ofctl ofp-print "\
261701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
261800 00 00 01 \
2619"], [0], [dnl
2620NXT_ROLE_REQUEST (xid=0x2): role=master
2621])
2622AT_CLEANUP
2623
6ea4776b
JR
2624AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2625AT_KEYWORDS([ofp-print])
2626AT_CHECK([ovs-ofctl ofp-print "\
262703 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 262812 34 56 78 ab cd ef 90 \
6ea4776b 2629"], [0], [dnl
147cc9d3 2630OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2631])
2632AT_CLEANUP
2633
fec00620
BP
2634AT_SETUP([NXT_ROLE_REPLY])
2635AT_KEYWORDS([ofp-print])
2636AT_CHECK([ovs-ofctl ofp-print "\
263701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
263800 00 00 02 \
2639"], [0], [dnl
2640NXT_ROLE_REPLY (xid=0x2): role=slave
2641])
2642AT_CLEANUP
2643
00467f73
AC
2644AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2645AT_KEYWORDS([ofp-print])
2646AT_CHECK([ovs-ofctl ofp-print "\
264705 1e 00 18 00 00 00 0a \
264800 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2649"], [0], [dnl
9620f50c 2650OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2651])
2652AT_CLEANUP
2653
2654AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2655AT_KEYWORDS([ofp-print])
2656AT_CHECK([ovs-ofctl ofp-print "\
265705 1e 00 18 00 00 00 0a \
265800 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2659"], [0], [dnl
9620f50c 2660OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2661])
2662AT_CLEANUP
2663
2664AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2665AT_KEYWORDS([ofp-print])
2666AT_CHECK([ovs-ofctl ofp-print "\
266705 1e 00 18 00 00 00 0a \
266800 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2669"], [0], [dnl
9620f50c 2670OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2671])
2672AT_CLEANUP
2673
54834960
EJ
2674AT_SETUP([NXT_SET_PACKET_IN])
2675AT_KEYWORDS([ofp-print])
2676AT_CHECK([ovs-ofctl ofp-print "\
267701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
267800 00 00 01 \
2679"], [0], [dnl
2680NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2681])
2682AT_CLEANUP
2683
2684AT_SETUP([NXT_PACKET_IN])
2685AT_KEYWORDS([ofp-print])
2686AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 268701 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2688ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 268900 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
269020 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
269100 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
269200 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 269300 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2694ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
269580 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
269600 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 269700 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
269831 6d 00 00 00 00 00 00 00 00 \
2699"], [0], [dnl
42edbe39 2700NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
78c9486d 2701tcp,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=syn tcp_csum:316d
54834960
EJ
2702])
2703AT_CLEANUP
2704
b4ccee75
SH
2705AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2706AT_KEYWORDS([ofp-print])
2707AT_CHECK([ovs-ofctl ofp-print "\
270801 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2709ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
271000 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
271120 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
271200 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
271300 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
271400 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2715ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
271680 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
271700 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 271800 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
271931 6d 00 00 00 00 00 00 00 00 \
2720" 3], [0], [dnl
2721NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
78c9486d 2722tcp,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=fin tcp_csum:316d
b4ccee75
SH
272300000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
272400000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
272500000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 272600000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2727])
2728AT_CLEANUP
2729
80d5aefd
BP
2730AT_SETUP([NXT_SET_ASYNC_CONFIG])
2731AT_KEYWORDS([ofp-print])
2732AT_CHECK([ovs-ofctl ofp-print "\
273301 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
273400 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
273500 00 00 00 00 00 00 03 \
2736"], [0], [dnl
2737NXT_SET_ASYNC_CONFIG (xid=0x0):
2738 master:
2739 PACKET_IN: no_match invalid_ttl 12
2740 PORT_STATUS: add delete
2741 FLOW_REMOVED: (off)
2742
2743 slave:
2744 PACKET_IN: no_match action invalid_ttl 12
2745 PORT_STATUS: add delete modify
2746 FLOW_REMOVED: idle hard
2747])
2748AT_CLEANUP
2749
a7349929
BP
2750AT_SETUP([NXT_SET_CONTROLLER_ID])
2751AT_KEYWORDS([ofp-print])
2752AT_CHECK([ovs-ofctl ofp-print "\
275301 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
275400 00 00 00 00 00 00 7b \
2755"], [0], [dnl
2756NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2757])
2758AT_CLEANUP
2759
2b07c8b1
BP
2760AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2761AT_KEYWORDS([ofp-print])
2762AT_CHECK([ovs-ofctl ofp-print "\
276301 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
276401 02 30 40 \
2765"], [0], [dnl
2766NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2767])
2768AT_CLEANUP
2769
2770AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2771AT_KEYWORDS([ofp-print])
2772AT_CHECK([ovs-ofctl ofp-print "\
277301 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2774"], [0], [dnl
2775NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2776])
2777AT_CLEANUP
2778
2779AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2780AT_KEYWORDS([ofp-print])
2781AT_CHECK([ovs-ofctl ofp-print "\
278201 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2783"], [0], [dnl
2784NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2785])
2786AT_CLEANUP
2787
fec00620
BP
2788AT_SETUP([NXT_SET_FLOW_FORMAT])
2789AT_KEYWORDS([ofp-print])
2790AT_CHECK([ovs-ofctl ofp-print "\
279101 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
279200 00 00 02 \
2793"], [0], [dnl
2794NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2795])
2796AT_CLEANUP
2797
2798# The flow is formatted with cls_rule_format() for the low-verbosity case.
2799AT_SETUP([NXT_FLOW_MOD, low verbosity])
2800AT_KEYWORDS([ofp-print])
2801AT_CHECK([ovs-ofctl ofp-print "\
280201 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
280300 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2804ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
280500 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
280600 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
280700 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2808" 2], [0], [dnl
de0f16bc 2809NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2810])
2811AT_CLEANUP
2812
eec25dc1
BP
2813# The flow is formatted with ofp10_match_to_string() for the
2814# low-verbosity case.
fec00620
BP
2815AT_SETUP([NXT_FLOW_MOD, high verbosity])
2816AT_KEYWORDS([ofp-print])
2817AT_CHECK([ovs-ofctl ofp-print "\
281801 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
281900 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2820ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
282100 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
282200 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
282300 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2824" 3], [0], [dnl
de0f16bc 2825NXT_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
2826])
2827AT_CLEANUP
2828
76c41209 2829AT_SETUP([OFPT_GROUP_MOD - OF1.1])
7395c052
NZ
2830AT_KEYWORDS([ofp-print])
2831AT_CHECK([ovs-ofctl ofp-print "\
283202 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
283300 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
283400 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
283500 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
283600 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
283700 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
283800 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2839"], [0], [dnl
2840OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2841 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
2842])
2843AT_CLEANUP
2844
76c41209
SH
2845AT_SETUP([OFPT_GROUP_MOD add - OF1.5])
2846AT_KEYWORDS([ofp-print])
2847AT_CHECK([ovs-ofctl ofp-print "\
284806 0f 00 90 11 22 33 44 00 00 01 00 87 65 43 21 \
284900 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \
285000 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
285100 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
285200 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
285300 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
285400 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
285500 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
285600 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
2857"], [0], [dnl
2858OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
2859 ADD group_id=2271560481,type=select,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2860])
2861AT_CLEANUP
2862
2863AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5])
2864AT_KEYWORDS([ofp-print])
2865AT_CHECK([ovs-ofctl ofp-print "\
286606 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \
286700 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \
286800 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
286900 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \
287000 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \
287100 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \
287200 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \
287300 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
287400 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \
2875"], [0], [dnl
2876OFPT_GROUP_MOD (OF1.5) (xid=0x11223344):
2877 INSERT_BUCKET command_bucket_id:first,group_id=2271560481,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3
2878])
2879AT_CLEANUP
2880
fec00620
BP
2881AT_SETUP([NXT_FLOW_REMOVED])
2882AT_KEYWORDS([ofp-print])
2883AT_CHECK([ovs-ofctl ofp-print "\
288401 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 288500 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
288601 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
288700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
288802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
288900 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
28901e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2891c0 a8 00 02 00 00 00 00 \
2892"], [0], [dnl
745bfd5e 2893NXT_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
2894])
2895AT_CLEANUP
2896
a1a7d333
BP
2897AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2898AT_KEYWORDS([ofp-print])
2899AT_CHECK([ovs-ofctl ofp-print "\
290001 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
290101 00 00 00 00 00 00 00 \
2902"], [0], [dnl
2903NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2904])
2905AT_CLEANUP
2906
fec00620
BP
2907AT_SETUP([NXST_FLOW request])
2908AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2909AT_CHECK([ovs-ofctl ofp-print "\
291001 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
291100 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2912"], [0], [dnl
54ae6fa8 2913NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2914])
2915AT_CLEANUP
2916
2917AT_SETUP([NXST_FLOW reply])
2918AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2919AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 292001 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
292100 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
292202 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
292300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
292400 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
292502 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
292600 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29270a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2928a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
292914 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
293000 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 293100 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
293200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
293300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
293400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
293500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2936a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
293700 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
293800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 293933 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
294000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
294100 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
294202 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
294300 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29440a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2945a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
294614 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
294700 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 294800 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
294900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
295000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
295100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
295200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2953a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
295400 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
295500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 295634 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
295700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
295800 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
295902 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
296000 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29610a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2962a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
296314 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
296400 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
296500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
296600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
296700 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
296800 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
296900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2970a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
297100 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
297200 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
297302 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
297400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
297500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
297602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
297700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29780a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2979a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
298014 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
298100 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
298200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
298300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
298400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
298500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
298600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2987a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
298800 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
298900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
299027 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
299100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
299200 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
299302 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
299400 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
29950a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2996a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
299714 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
299800 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
299900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
300000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
300100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
300200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
300300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3004a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
300500 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
300600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
30070a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
300800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
300900 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
301002 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
301100 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30120a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
3013a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
301414 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
301500 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
301600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
301700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
301800 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
301900 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
302000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3021a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
302200 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
302300 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
302404 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
302500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
302600 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
302702 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
302800 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
30290a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
3030a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
303114 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
303200 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
303300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
303400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
303500 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
303600 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
303700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
3038a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
303900 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
304000 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
30412e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
304200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
304300 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
304400 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
3045ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
304600 00 00 00 00 00 00 05 \
05b8f1c2
BP
304700 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
304800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
304900 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
3050"], [0],
3051[[NXST_FLOW reply (xid=0x4):
b9718b7b 3052 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 3053 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
3054 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
3055 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 3056 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 3057 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 3058 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
3059 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
3060 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
3061 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
3062 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
3063 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
3064 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
3065 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
3066 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 3067 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
3068]])
3069AT_CLEANUP
3070
3071AT_SETUP([NXST_AGGREGATE request])
3072AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
3073AT_CHECK([ovs-ofctl ofp-print "\
307401 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
307500 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
3076"], [0], [dnl
54ae6fa8 3077NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
3078])
3079AT_CLEANUP
3080
3081AT_SETUP([NXST_AGGREGATE reply])
3082AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3083AT_CHECK([ovs-ofctl ofp-print "\
308401 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
308500 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
308600 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
3087"], [0], [dnl
3088NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
3089])
3090AT_CLEANUP
2b07c8b1
BP
3091
3092AT_SETUP([NXST_FLOW_MONITOR request])
3093AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3094AT_CHECK([ovs-ofctl ofp-print "\
309501 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
309600 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
309700 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
3098"], [0], [dnl
3099NXST_FLOW_MONITOR request (xid=0x4):
3100 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
3101 id=8192 flags=delete table=2 in_port=1
3102])
3103AT_CLEANUP
3104
3105AT_SETUP([NXST_FLOW_MONITOR reply])
3106AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
3107AT_CHECK([ovs-ofctl ofp-print "\
310801 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 310900 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
311000 00 00 02 00 01 00 00 \
311100 08 00 03 00 01 86 a0 \
3112"], [0], [dnl
3113NXST_FLOW_MONITOR reply (xid=0x4):
3114 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
3115 event=ABBREV xid=0x186a0
3116])
3117AT_CLEANUP
777af88d
AC
3118
3119
3120AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3121AT_KEYWORDS([ofp-print])
3122AT_CHECK([ovs-ofctl ofp-print "\
312305 21 00 10 00 00 00 00 \
312400 00 00 01 00 00 00 01 \
3125"], [0], [dnl
3126OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3127 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
3128])
3129AT_CLEANUP
3130
3131AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3132AT_KEYWORDS([ofp-print])
3133AT_CHECK([ovs-ofctl ofp-print "\
313405 21 00 10 00 00 00 00 \
313500 00 00 01 00 00 00 02 \
3136"], [0], [dnl
3137OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3138 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
3139])
3140AT_CLEANUP
3141
3142AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
3143AT_KEYWORDS([ofp-print])
3144AT_CHECK([ovs-ofctl ofp-print "\
314505 21 00 10 00 00 00 00 \
314600 00 00 01 00 00 00 03 \
3147"], [0], [dnl
3148OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3149 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
3150])
3151AT_CLEANUP
3152
3153AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
3154AT_KEYWORDS([ofp-print])
3155AT_CHECK([ovs-ofctl ofp-print "\
315605 21 00 10 00 00 00 00 \
315700 00 00 01 00 01 00 01 \
3158"], [0], [dnl
3159OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3160 bundle_id=0x1 type=OPEN_REPLY flags=atomic
3161])
3162AT_CLEANUP
3163
3164AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
3165AT_KEYWORDS([ofp-print])
3166AT_CHECK([ovs-ofctl ofp-print "\
316705 21 00 10 00 00 00 00 \
316800 00 00 01 00 02 00 01 \
3169"], [0], [dnl
3170OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3171 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
3172])
3173AT_CLEANUP
3174
3175AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
3176AT_KEYWORDS([ofp-print])
3177AT_CHECK([ovs-ofctl ofp-print "\
317805 21 00 10 00 00 00 00 \
317900 00 00 01 00 03 00 01 \
3180"], [0], [dnl
3181OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3182 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
3183])
3184AT_CLEANUP
3185
3186AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
3187AT_KEYWORDS([ofp-print])
3188AT_CHECK([ovs-ofctl ofp-print "\
318905 21 00 10 00 00 00 00 \
319000 00 00 01 00 04 00 01 \
3191"], [0], [dnl
3192OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3193 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
3194])
3195AT_CLEANUP
3196
3197AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
3198AT_KEYWORDS([ofp-print])
3199AT_CHECK([ovs-ofctl ofp-print "\
320005 21 00 10 00 00 00 00 \
320100 00 00 01 00 05 00 01 \
3202"], [0], [dnl
3203OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3204 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
3205])
3206AT_CLEANUP
3207
3208AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
3209AT_KEYWORDS([ofp-print])
3210AT_CHECK([ovs-ofctl ofp-print "\
321105 21 00 10 00 00 00 00 \
321200 00 00 01 00 06 00 01 \
3213"], [0], [dnl
3214OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3215 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
3216])
3217AT_CLEANUP
3218
3219AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
3220AT_KEYWORDS([ofp-print])
3221AT_CHECK([ovs-ofctl ofp-print "\
322205 21 00 10 00 00 00 00 \
322300 00 00 01 00 07 00 01 \
3224"], [0], [dnl
3225OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
3226 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
3227])
3228AT_CLEANUP
3229
be6f6393
JR
3230AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid])
3231AT_KEYWORDS([ofp-print])
3232AT_CHECK([ovs-ofctl ofp-print "\
323305 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
323402 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \
3235"], [0], [dnl
3236OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID***
3237])
3238AT_CLEANUP
3239
c25ce22d 3240AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO])
777af88d
AC
3241AT_KEYWORDS([ofp-print])
3242AT_CHECK([ovs-ofctl ofp-print "\
c25ce22d
JR
324305 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \
324402 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \
3245"], [0], [dnl
3246OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP***
3247])
3248AT_CLEANUP
3249
3250AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD])
3251AT_KEYWORDS([ofp-print])
3252AT_CHECK([ovs-ofctl ofp-print "\
325305 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \
325403 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
325500 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
3256ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
325700 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
325850 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
325980 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
326000 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
326100 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
326200 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
3263"], [0], [dnl
3264OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2):
3265 bundle_id=0x1 flags=atomic
3266OFPT_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
3267])
3268AT_CLEANUP
3269
3270AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD])
3271AT_KEYWORDS([ofp-print])
3272AT_CHECK([ovs-ofctl ofp-print "\
327305 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \
327405 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
327550 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
327600 00 00 08 00 00 00 01
777af88d 3277"], [0], [dnl
c25ce22d 3278OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3):
777af88d 3279 bundle_id=0x1 flags=atomic
c25ce22d
JR
3280OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
3281 config: PORT_DOWN
3282 mask: PORT_DOWN
3283 advertise: 10MB-HD
777af88d
AC
3284])
3285AT_CLEANUP