]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ofp-util: Implement OpenFlow 1.4 port status and port desc reply messages.
[mirror_ovs.git] / tests / ofp-print.at
CommitLineData
fec00620
BP
1AT_BANNER([ofp-print])
2
3AT_SETUP([empty])
4AT_KEYWORDS([ofp-print])
5AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6])
7AT_CLEANUP
8
9AT_SETUP([too short])
10AT_KEYWORDS([ofp-print])
11AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12OpenFlow packet too short (only 2 bytes):
1300000000 aa bb |.. |
14])
15AT_CLEANUP
16
17AT_SETUP([wrong OpenFlow version])
18AT_KEYWORDS([ofp-print])
90bf1e07
BP
19AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20 [0], [dnl
21***decode error: OFPBRC_BAD_TYPE***
2200000000 00 bb 00 08 ee ff 00 11- |........ |
982697a4 23], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187)
fec00620
BP
24])
25AT_CLEANUP
26
27AT_SETUP([truncated message])
28AT_KEYWORDS([ofp-print])
f25b4a81 29AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl
fec00620 30(***truncated to 8 bytes from 52445***)
f25b4a81 3100000000 01 10 cc dd ee ff 00 11- |........ |
fec00620
BP
32])
33AT_CLEANUP
34
35AT_SETUP([message only uses part of buffer])
36AT_KEYWORDS([ofp-print])
f25b4a81 37AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl
fec00620 38(***only uses 9 bytes out of 10***)
f25b4a81 3900000000 01 10 00 09 ee ff 00 11-22 33 |........"3 |
fec00620
BP
40])
41# "
42AT_CLEANUP
43
44AT_SETUP([OFPT_HELLO - ordinary])
45AT_KEYWORDS([ofp-print])
46AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47OFPT_HELLO (xid=0x0):
de6c85b0 48 version bitmap: 0x01
fec00620
BP
49])
50AT_CLEANUP
51
52AT_SETUP([OFPT_HELLO with extra data])
53AT_KEYWORDS([ofp-print])
54AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
55[dnl
56OFPT_HELLO (xid=0x0):
de6c85b0
SH
57 version bitmap: 0x01
58 unknown data in hello:
5900000000 01 00 00 13 00 00 00 00-65 78 74 72 61 20 64 61 |........extra da|
6000000010 74 61 0a |ta. |
61])
62AT_CLEANUP
63
64AT_SETUP([OFPT_HELLO with version bitmap])
65AT_KEYWORDS([ofp-print])
66AT_CHECK([ovs-ofctl ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f0"], [0],
67[dnl
68OFPT_HELLO (xid=0x0):
69 version bitmap: 0x04, 0x05, 0x06, 0x07
70])
71AT_CLEANUP
72
73AT_SETUP([OFPT_HELLO with version bitmap and extra data])
74AT_KEYWORDS([ofp-print])
75AT_CHECK([ovs-ofctl ofp-print "\
7601 00 00 1b 00 00 00 00 ff ff 00 06 01 02 00 00 \
7700 01 00 08 00 00 00 f0 61 62 63"], [0],
78[dnl
79OFPT_HELLO (xid=0x0):
80 version bitmap: 0x04, 0x05, 0x06, 0x07
81 unknown data in hello:
8200000000 01 00 00 1b 00 00 00 00-ff ff 00 06 01 02 00 00 |................|
8300000010 00 01 00 08 00 00 00 f0-61 62 63 |........abc |
fec00620
BP
84])
85AT_CLEANUP
86
681ea7a0
BP
87AT_SETUP([OFPT_HELLO with higher than supported version])
88AT_KEYWORDS([ofp-print])
89AT_CHECK([ovs-ofctl ofp-print "0f 00 00 08 00 00 00 00"], [0],
90[dnl
91OFPT_HELLO (OF 0x0f) (xid=0x0):
92 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
93])
94AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0],
95[dnl
96OFPT_HELLO (OF 0x40) (xid=0x0):
97 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
98])
99AT_CHECK([ovs-ofctl ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c aa aa aa aa aa aa aa aa 00 00 00 00"], [0],
100[dnl
101OFPT_HELLO (OF 0x3f) (xid=0x0):
102 version bitmap: 0x01, 0x03, 0x05, 0x07, 0x09, 0x0b, 0x0d, 0x0f, 0x11, 0x13, 0x15, 0x17, 0x19, 0x1b, 0x1d, 0x1f
103])
104AT_CLEANUP
105
106AT_SETUP([OFPT_HELLO with contradictory version bitmaps])
107AT_KEYWORDS([ofp-print])
108dnl Bitmap claims support for no versions at all.
109AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 00"], [0],
110[OFPT_HELLO (xid=0x0):
111 version bitmap: 0x01
112 unknown data in hello:
11300000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................|
114], [dnl
115ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
116])
117dnl Bitmap claims support for only versions above 0x1f.
118AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "3f 00 00 18 00 00 00 00 00 01 00 0c 00 00 00 00 aa aa aa aa 00 00 00 00"], [0],
119[OFPT_HELLO (OF 0x3f) (xid=0x0):
120 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
121 unknown data in hello:
12200000000 3f 00 00 18 00 00 00 00-00 01 00 0c 00 00 00 00 |?...............|
12300000010 aa aa aa aa 00 00 00 00- |........ |
124], [dnl
125ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
126])
127dnl Bitmap claims support for nonexistent version 0x00.
128AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f1"], [0], [dnl
129OFPT_HELLO (xid=0x0):
130 version bitmap: 0x04, 0x05, 0x06, 0x07
131], [dnl
132ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
133])
134dnl Bitmap claims support for only nonexistent version 0x00.
135AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 01"], [0], [dnl
136OFPT_HELLO (xid=0x0):
137 version bitmap: 0x01
138 unknown data in hello:
13900000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................|
140], [dnl
141ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00
142ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f)
143])
144AT_CLEANUP
145
2e0525bc 146dnl OFPT_ERROR tests are in ofp-errors.at.
90bf1e07 147
fec00620
BP
148AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
149AT_KEYWORDS([ofp-print])
150AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
151OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
152])
153AT_CLEANUP
154
155AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
156AT_KEYWORDS([ofp-print])
157AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
158OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
15900000000 25 53 54 1a 9d |%ST.. |
160])
161AT_CLEANUP
162
163AT_SETUP([OFPT_ECHO_REPLY, empty payload])
164AT_KEYWORDS([ofp-print])
165AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
166OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
167])
168AT_CLEANUP
169
170AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
171AT_KEYWORDS([ofp-print])
172AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
173OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
17400000000 a3 30 ef af 9e |.0... |
175])
176AT_CLEANUP
177
178AT_SETUP([OFPT_FEATURES_REQUEST])
179AT_KEYWORDS([ofp-print])
180AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
181OFPT_FEATURES_REQUEST (xid=0x1):
182])
183AT_CLEANUP
184
9e1fd49b 185AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
fec00620
BP
186AT_KEYWORDS([ofp-print])
187AT_CHECK([ovs-ofctl ofp-print "\
18801 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
18900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
190ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
19100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
19200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
19400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
19700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
19900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
20000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
20100 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
202"], [0], [dnl
9e1fd49b 203OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
fec00620 204n_tables:2, n_buffers:256
9e1fd49b
BP
205capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
206actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
0ab14c8e
BP
207 1(eth1): addr:50:54:00:00:00:02
208 config: 0
209 state: 0
210 current: 100MB-FD AUTO_NEG
211 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
212 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 213 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
214 2(eth2): addr:50:54:00:00:00:03
215 config: 0
216 state: 0
217 current: 100MB-FD AUTO_NEG
218 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
219 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 220 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
221 3(eth0): addr:50:54:00:00:00:01
222 config: 0
223 state: 0
224 current: 100MB-FD AUTO_NEG
225 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
226 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b 227 speed: 100 Mbps now, 100 Mbps max
0ab14c8e
BP
228 LOCAL(br0): addr:50:54:00:00:00:01
229 config: PORT_DOWN
230 state: LINK_DOWN
d02a5f8e 231 speed: 0 Mbps now, 0 Mbps max
fec00620
BP
232])
233AT_CLEANUP
234
9e1fd49b 235AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
fec00620
BP
236AT_KEYWORDS([ofp-print])
237AT_CHECK([ovs-ofctl ofp-print "\
23801 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
23900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
240ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
24100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
24200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
24400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
24700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
24800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
24900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
25000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
25100 00 02 08 00 00 02 8f 00 00 02 8f \
252"], [0], [dnl
90bf1e07 253***decode error: OFPBRC_BAD_LEN***
fec00620
BP
25400000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
25500000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
25600000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
25700000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
25800000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
25900000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
26000000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
26100000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
26200000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
26300000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
264000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
265000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
266000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
267000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
268], [stderr])
269AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
5a020ef3 270received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
fec00620
BP
271])
272AT_CLEANUP
273
9e1fd49b
BP
274AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
275AT_KEYWORDS([ofp-print])
276AT_CHECK([ovs-ofctl ofp-print "\
27702 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 27800 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
279ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
28062 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
28100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
28200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
28300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
28465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
28500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
28600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
287"], [0], [dnl
288OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
289n_tables:2, n_buffers:256
290capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
9e1fd49b
BP
291 3(eth0): addr:50:54:00:00:00:01
292 config: 0
293 state: 0
294 current: 100MB-FD AUTO_NEG
295 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
296 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
297 speed: 100 Mbps now, 100 Mbps max
298 LOCAL(br0): addr:50:54:00:00:00:01
299 config: PORT_DOWN
300 state: LINK_DOWN
301 speed: 100 Mbps now, 100 Mbps max
302])
303AT_CLEANUP
304
305AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
306AT_KEYWORDS([ofp-print])
307AT_CHECK([ovs-ofctl ofp-print "\
30802 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 30900 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \
9e1fd49b
BP
310ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
31162 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
31200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
31300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
31400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
31565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
31600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
317"], [0], [dnl
318***decode error: OFPBRC_BAD_LEN***
31900000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 32000000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 00 00 |................|
9e1fd49b
BP
32100000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32200000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
32300000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
32400000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
32500000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
32600000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
32700000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
328], [stderr])
329AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
330received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
331])
332AT_CLEANUP
333
60202987
SH
334AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
335AT_KEYWORDS([ofp-print])
336AT_CHECK([ovs-ofctl ofp-print "\
33703 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 33800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
339ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
34062 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
34100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
34200 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
34300 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
34465 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
34500 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
34600 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
347"], [0], [dnl
348OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
349n_tables:255, n_buffers:256
350capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
351 3(eth0): addr:50:54:00:00:00:01
352 config: 0
353 state: 0
354 current: 100MB-FD AUTO_NEG
355 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
356 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
357 speed: 100 Mbps now, 100 Mbps max
358 LOCAL(br0): addr:50:54:00:00:00:01
359 config: PORT_DOWN
360 state: LINK_DOWN
361 speed: 100 Mbps now, 100 Mbps max
362])
363AT_CLEANUP
364
365AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
366AT_KEYWORDS([ofp-print])
367AT_CHECK([ovs-ofctl ofp-print "\
36803 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
2e1ae200 36900 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
60202987
SH
370ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
37162 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
37200 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
37300 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
37400 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
37565 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
37600 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
377"], [0], [dnl
378OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
379(***truncated to 144 bytes from 160***)
38000000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
2e1ae200 38100000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 00 00 |...........w....|
60202987
SH
38200000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38300000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
38400000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
38500000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
38600000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
38700000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
38800000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
389], [stderr])
390AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
391])
392AT_CLEANUP
393
2e1ae200
JR
394AT_SETUP([OFPT_FEATURES_REPLY - OF1.3])
395AT_KEYWORDS([ofp-print])
396AT_CHECK([ovs-ofctl ofp-print "\
39704 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
39800 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \
399"], [0], [dnl
400OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
401n_tables:255, n_buffers:256
402capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
403])
404AT_CLEANUP
405
406AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3])
407AT_KEYWORDS([ofp-print])
408AT_CHECK([ovs-ofctl ofp-print "\
40904 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \
41000 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \
411"], [0], [dnl
412OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001
413n_tables:255, n_buffers:256, auxiliary_id:1
414capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
415])
416AT_CLEANUP
417
fec00620
BP
418AT_SETUP([OFPT_GET_CONFIG_REQUEST])
419AT_KEYWORDS([ofp-print])
420AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
421OFPT_GET_CONFIG_REQUEST (xid=0x1):
422])
423AT_CLEANUP
424
425AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
426AT_KEYWORDS([ofp-print])
427AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
428OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
429])
430AT_CLEANUP
431
432
433AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
434AT_KEYWORDS([ofp-print])
435AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
436OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
437])
438AT_CLEANUP
439
7cfb9651 440AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 441AT_KEYWORDS([ofp-print])
fec00620
BP
442AT_CHECK([ovs-ofctl ofp-print "\
44301 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
44400 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
44545 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
446c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 44750 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 448"], [0], [dnl
f0fd1a17 449OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
dc235f7f 450tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=0x002 tcp_csum:26e8
fec00620
BP
451])
452AT_CLEANUP
453
b4ccee75
SH
454AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data)])
455AT_KEYWORDS([ofp-print])
456AT_CHECK([ovs-ofctl ofp-print "\
45701 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
45800 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
45945 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
460c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
dc235f7f 46150 10 02 00 26 e8 00 00 00 00 00 00 00 00 \
b4ccee75
SH
462" 3], [0], [dnl
463OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
dc235f7f 464tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=0x010 tcp_csum:26e8
b4ccee75
SH
46500000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00
46600000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8
dc235f7f 46700000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 10
b4ccee75
SH
46800000030 02 00 26 e8 00 00 00 00-00 00 00 00
469])
470AT_CLEANUP
471
4d197ebb
BP
472AT_SETUP([OFPT_PACKET_IN - OF1.1])
473AT_KEYWORDS([ofp-print])
474AT_CHECK([ovs-ofctl ofp-print "\
47502 0a 00 54 00 00 00 00 00 00 01 11 00 00 00 03 \
47600 00 00 03 00 3c 00 00 \
47750 54 00 00 00 06 50 54 00 00 00 05 08 00 \
47845 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
479c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
48050 02 02 00 26 e8 00 00 00 00 00 00 00 00 \
481"], [0], [dnl
482OFPT_PACKET_IN (OF1.1) (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
483tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=0x002 tcp_csum:26e8
484])
485AT_CLEANUP
486
7cfb9651
SH
487AT_SETUP([OFPT_PACKET_IN - OF1.2])
488AT_KEYWORDS([ofp-print])
489AT_CHECK([ovs-ofctl ofp-print "\
49003 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
49100 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
49200 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
eb19e5f0 49300 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \
7cfb9651
SH
49400 00 00 23 20 83 c1 5f 00 00 00 00 \
495"], [0], [dnl
496OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
eb19e5f0 497rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=1,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
7cfb9651
SH
498])
499AT_CLEANUP
500
b4ccee75
SH
501AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data])
502AT_KEYWORDS([ofp-print])
503AT_CHECK([ovs-ofctl ofp-print "\
50403 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
50500 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
50600 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
50700 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
50800 00 00 23 20 83 c1 5f 00 00 00 00 \
509" 3], [0], [dnl
510OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
511rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
51200000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
51300000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
51400000020 00 23 20 83 c1 5f 00 00-00 00
515])
516AT_CLEANUP
517
2e1ae200
JR
518AT_SETUP([OFPT_PACKET_IN - OF1.3])
519AT_KEYWORDS([ofp-print])
520AT_CHECK([ovs-ofctl ofp-print "\
52104 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
52201 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
523ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
52400 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
52500 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
52600 00 00 00 \
527"], [0], [dnl
528OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
3f78c3cc 529rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
2e1ae200
JR
530])
531AT_CLEANUP
532
b4ccee75
SH
533AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data])
534AT_KEYWORDS([ofp-print])
535AT_CHECK([ovs-ofctl ofp-print "\
53604 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \
53701 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \
538ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \
53900 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \
54000 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \
54100 00 00 00 \
542" 3], [0], [dnl
543OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
544rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f
54500000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01
54600000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00
54700000020 00 23 20 83 c1 5f 00 00-00 00
548])
549AT_CLEANUP
550
eefbf181 551AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
552AT_KEYWORDS([ofp-print])
553AT_CHECK([ovs-ofctl ofp-print "\
55401 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
55500 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
55600 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
55700 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
55830 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
55900 00 00 00 00 00 00 3c \
560"], [0], [dnl
b1634591 561OFPT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.820s idle5 pkts1 bytes60
fec00620
BP
562])
563AT_CLEANUP
564
eefbf181
SH
565AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
566AT_KEYWORDS([ofp-print])
567AT_CHECK([ovs-ofctl ofp-print "\
56803 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
56980 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
57000 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
57100 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 572OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
eefbf181
SH
573])
574AT_CLEANUP
575
2e1ae200
JR
576AT_SETUP([OFPT_FLOW_REMOVED - OF1.3])
577AT_KEYWORDS([ofp-print])
578AT_CHECK([ovs-ofctl ofp-print "\
57904 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
58080 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
58100 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
58200 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
b1634591 583OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438
2e1ae200
JR
584])
585AT_CLEANUP
586
9e1fd49b 587AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
588AT_KEYWORDS([ofp-print])
589AT_CHECK([ovs-ofctl ofp-print "\
59001 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
59100 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
59200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
59300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
594"], [0], [dnl
0ab14c8e
BP
595OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
596 config: PORT_DOWN
597 state: LINK_DOWN
598 current: 100MB-FD AUTO_NEG
599 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
600 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
601 speed: 100 Mbps now, 100 Mbps max
602])
603AT_CLEANUP
604
605AT_SETUP([OFPT_PORT_STATUS - OF1.1])
606AT_KEYWORDS([ofp-print])
607AT_CHECK([ovs-ofctl ofp-print "\
60802 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
60900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
61065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
61100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
61200 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
613"], [0], [dnl
614OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
615 config: 0
616 state: 0
617 current: 100MB-FD AUTO_NEG
618 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
619 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
620 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
621])
622AT_CLEANUP
623
8c3cc785
BP
624AT_SETUP([OFPT_PORT_STATUS - OF1.4])
625AT_KEYWORDS([ofp-print])
626AT_CHECK([ovs-ofctl ofp-print "\
62705 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \
62800 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
62965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
63000 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
63100 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
63200 01 86 a0 00 01 86 a0 \
633"], [0], [dnl
634OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
635 config: 0
636 state: 0
637 current: 100MB-FD AUTO_NEG
638 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
639 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
640 speed: 100 Mbps now, 100 Mbps max
641])
642AT_CLEANUP
643
eb5ee596 644AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
645AT_KEYWORDS([ofp-print])
646AT_CHECK([ovs-ofctl ofp-print "\
64701 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
64800 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
64900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
650b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
65100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
65200 00 00 00 \
653"], [0], [dnl
c6a93eb7 654OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
655])
656AT_CLEANUP
657
4b2d9d11
SH
658AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet])
659AT_KEYWORDS([ofp-print])
660AT_CHECK([ovs-ofctl ofp-print "\
66101 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
66200 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
66300 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
664b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
66500 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
66600 00 00 00 \
667"], [0], [dnl
668OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
dc235f7f 669tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=0x014 tcp_csum:6d75
4b2d9d11
SH
670])
671AT_CLEANUP
672
b4ccee75
SH
673AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data])
674AT_KEYWORDS([ofp-print])
675AT_CHECK([ovs-ofctl ofp-print "\
67601 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \
67700 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
67800 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
679b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
68000 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
68100 00 00 00 \
682" 3], [0], [dnl
683OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60
dc235f7f 684tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=0x014 tcp_csum:6d75
b4ccee75
SH
68500000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00
68600000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8
68700000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14
68800000030 00 00 6d 75 00 00 00 00-00 00 00 00
689])
690AT_CLEANUP
691
eb5ee596
SH
692AT_SETUP([OFPT_PACKET_OUT - OF1.1])
693AT_KEYWORDS([ofp-print])
694AT_CHECK([ovs-ofctl ofp-print "\
69503 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
69600 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
69705 dc 00 00 00 00 00 00 \
698"], [0], [dnl
699OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
700])
701AT_CLEANUP
702
4b2d9d11
SH
703AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet])
704AT_KEYWORDS([ofp-print])
705AT_CHECK([ovs-ofctl ofp-print "\
70603 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \
70700 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
70805 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \
70900 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
710b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
71100 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
71200 00 00 00 \
713"], [0], [dnl
714OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60
dc235f7f 715tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=0x014 tcp_csum:6d75
4b2d9d11
SH
716])
717AT_CLEANUP
718
fec00620 719# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 720AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 721AT_KEYWORDS([ofp-print])
1c0b7503 722AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
72301 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
72400 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
72500 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
72600 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
72700 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
728" 2], [0], [dnl
666d0863 729OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 idle:5 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
730], [dnl
731ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
732ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
733ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
734])
735AT_CLEANUP
736
75fa58f8
BP
737# The flow is formatted with cls_rule_format() for the low-verbosity case.
738AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity])
739AT_KEYWORDS([ofp-print])
740AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
741020e 0090 01020304 \
742da1aa3e035d87158 ffffffffffffffff \
74302 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \
7440000 \
745\
7460000 0058 00000000 000003f7 \
747000000000000ffffffffffff 000000000000ffffffffffff \
7480000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \
74900000000 00 000000 0000000000000000ffffffffffffffff \
750\
7510001 0008 03 000000 \
752" 2], [0], [dnl
753OFPT_FLOW_MOD (OF1.1) (xid=0x1020304): MOD table:2 priority=40000,arp,arp_spa=192.168.128.0/24 cookie:0xda1aa3e035d87158/0xffffffffffffffff idle:60 hard:120 send_flow_rem check_overlap actions=goto_table:3
754])
755AT_CLEANUP
756
1bf6eeb0
SH
757# The flow is formatted with cls_rule_format() for the low-verbosity case.
758AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
759AT_KEYWORDS([ofp-print])
760AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
76103 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 76200 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
763ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
76400 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
76550 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
76680 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
76700 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
76800 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
76900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
770" 2], [0], [dnl
0e197060 771OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
772], [dnl
773])
774AT_CLEANUP
775
eec25dc1
BP
776# The flow is formatted with ofp10_match_to_string() for the
777# high-verbosity case.
1bf6eeb0 778AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 779AT_KEYWORDS([ofp-print])
1c0b7503 780AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
78101 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
78200 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
78300 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
78400 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
78500 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
786" 3], [0], [dnl
de0f16bc 787OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e out_port:0 actions=output:3
1c0b7503
BP
788], [dnl
789ofp_util|INFO|normalization changed ofp_match, details:
666d0863
MM
790ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
791ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2
fec00620
BP
792])
793AT_CLEANUP
794
1bf6eeb0
SH
795# The flow is formatted with cls_rule_format() for the low-verbosity case.
796AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
797AT_KEYWORDS([ofp-print])
798AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
79903 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 80000 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
1bf6eeb0
SH
801ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
80200 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
80350 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
80480 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
80500 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
80600 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
80700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
808" 2], [0], [dnl
0e197060 809OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3
1bf6eeb0
SH
810], [dnl
811])
812AT_CLEANUP
813
2e1ae200
JR
814# The flow is formatted with cls_rule_format() for the low-verbosity case.
815AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity])
816AT_KEYWORDS([ofp-print])
817AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
81804 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
0e197060 81900 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \
2e1ae200
JR
820ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \
82100 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
82250 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
82380 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
82400 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
82500 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
82600 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
827" 2], [0], [dnl
0e197060 828OFPT_FLOW_MOD (OF1.3) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 send_flow_rem check_overlap reset_counts no_packet_counts no_byte_counts actions=output:3
2e1ae200
JR
829], [dnl
830])
831AT_CLEANUP
832
d55b18c8
IY
833AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src])
834AT_KEYWORDS([ofp-print])
835AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
83603 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \
83700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
838ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
83900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
84000 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
841c0 a8 03 5c 00 00 00 00 \
842" 2], [0], [dnl
843OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src
844], [dnl
845])
846AT_CLEANUP
847
848AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst])
849AT_KEYWORDS([ofp-print])
850AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
85103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
85200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
853ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
85400 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
85500 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
856c0 a8 4a 7a 00 00 00 00 \
857" 2], [0], [dnl
858OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst
859], [dnl
860])
861AT_CLEANUP
862
0d56eaf2
JS
863AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src])
864AT_KEYWORDS([ofp-print])
865AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
86603 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
86700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
868ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
86900 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
87000 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
8710d 06 00 00 00 00 00 00 \
872" 2], [0], [dnl
873OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src
874], [dnl
875])
876AT_CLEANUP
877
878AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst])
879AT_KEYWORDS([ofp-print])
880AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
88103 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \
88200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \
883ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
88400 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
88500 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
88611 5d 00 00 00 00 00 00 \
887" 2], [0], [dnl
888OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst
889], [dnl
890])
891AT_CLEANUP
892
b2a27ddc
BP
893dnl This triggered a buggy "instructions out of order" message earlier.
894AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter])
895AT_KEYWORDS([ofp-print])
896AT_CHECK([ovs-ofctl ofp-print "\
89704 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \
89800 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \
899ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
90000 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl
901OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1
902])
903AT_CLEANUP
904
d55b18c8
IY
905AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src])
906AT_KEYWORDS([ofp-print])
907AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
90803 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
90900 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
91000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
91200 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
91300 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \
914c0 a8 03 5c 00 00 00 00 \
915" 2], [0], [dnl
916OFPST_FLOW reply (OF1.2) (xid=0x52334504):
917 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src
918], [dnl
919])
920AT_CLEANUP
921
922AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst])
923AT_KEYWORDS([ofp-print])
924AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
92503 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
92600 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
92700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
92900 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \
93000 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \
931c0 a8 4a 7a 00 00 00 00 \
932" 2], [0], [dnl
933OFPST_FLOW reply (OF1.2) (xid=0x52334509):
934 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst
935], [dnl
936])
937AT_CLEANUP
938
0d56eaf2
JS
939AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src])
940AT_KEYWORDS([ofp-print])
941AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
94203 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \
94300 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
94400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
94600 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
94700 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \
9480d 06 00 00 00 00 00 00 \
949" 2], [0], [dnl
950OFPST_FLOW reply (OF1.2) (xid=0x52334504):
951 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src
952], [dnl
953])
954AT_CLEANUP
955
956AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst])
957AT_KEYWORDS([ofp-print])
958AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
95903 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \
96000 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \
96100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
96300 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \
96400 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \
96511 5d 00 00 00 00 00 00 \
966" 2], [0], [dnl
967OFPST_FLOW reply (OF1.2) (xid=0x52334509):
968 cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst
969], [dnl
970])
971AT_CLEANUP
972
9e1fd49b 973AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
974AT_KEYWORDS([ofp-print])
975AT_CHECK([ovs-ofctl ofp-print "\
97601 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
97700 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
978" 3], [0], [dnl
9e1fd49b
BP
979OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
980 config: PORT_DOWN
981 mask: PORT_DOWN
982 advertise: UNCHANGED
983])
984AT_CLEANUP
985
986AT_SETUP([OFPT_PORT_MOD - OF1.1])
987AT_KEYWORDS([ofp-print])
988AT_CHECK([ovs-ofctl ofp-print "\
98902 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
99050 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
99100 00 00 00 00 00 00 00 \
992" 3], [0], [dnl
993OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
994 config: PORT_DOWN
995 mask: PORT_DOWN
fec00620
BP
996 advertise: UNCHANGED
997])
998AT_CLEANUP
999
bb2bc3c1
SH
1000AT_SETUP([OFPT_PORT_MOD - OF1.2])
1001AT_KEYWORDS([ofp-print])
1002AT_CHECK([ovs-ofctl ofp-print "\
100303 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
100450 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
100500 00 00 00 00 00 00 00 \
1006" 3], [0], [dnl
1007OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1008 config: PORT_DOWN
1009 mask: PORT_DOWN
1010 advertise: UNCHANGED
1011])
1012AT_CLEANUP
1013
2e1ae200
JR
1014AT_SETUP([OFPT_PORT_MOD - OF1.3])
1015AT_KEYWORDS([ofp-print])
1016AT_CHECK([ovs-ofctl ofp-print "\
101704 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
101850 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
101900 00 00 00 00 00 00 00 \
1020" 3], [0], [dnl
1021OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1022 config: PORT_DOWN
1023 mask: PORT_DOWN
1024 advertise: UNCHANGED
1025])
1026AT_CLEANUP
1027
918f2b82
AZ
1028AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1029AT_KEYWORDS([ofp-print])
1030AT_CHECK([ovs-ofctl ofp-print "\
103102 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1032" 3], [0], [dnl
1033OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1034])
1035AT_CLEANUP
1036
1037AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1038AT_KEYWORDS([ofp-print])
1039AT_CHECK([ovs-ofctl ofp-print "\
104003 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1041" 3], [0], [dnl
1042OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1043])
1044AT_CLEANUP
1045
307873b7 1046# ofp_table_mod.config is actually "reserved for future use" in OF1.3.
918f2b82
AZ
1047AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1048AT_KEYWORDS([ofp-print])
1049AT_CHECK([ovs-ofctl ofp-print "\
105004 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1051" 3], [0], [dnl
1052OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2, flow_miss_config=controller
1053])
1054AT_CLEANUP
1055
fec00620
BP
1056AT_SETUP([OFPST_DESC request])
1057AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1058AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1059OFPST_DESC request (xid=0x1):
1060])
1061AT_CLEANUP
1062
1063AT_SETUP([OFPST_DESC reply])
1064AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1065AT_CHECK([ovs-ofctl ofp-print "\
106601 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
106772 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
106800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
106900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
107900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108200 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
108320 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
108400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
108900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109800 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
109930 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
110000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111400 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
111500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111600 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
111700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113200 00 00 00 00 00 00 00 00 00 00 00 \
1133"], [0], [dnl
1134OFPST_DESC reply (xid=0x1):
e0edde6f 1135Manufacturer: Nicira, Inc.
fec00620
BP
1136Hardware: Open vSwitch
1137Software: 1.1.0pre2
1138Serial Num: None
1139DP Description: None
1140])
1141AT_CLEANUP
1142
0157ad3a 1143AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1144AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1145AT_CHECK([ovs-ofctl ofp-print "\
114601 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1147ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114900 00 00 00 ff 00 ff ff \
1150"], [0], [dnl
54ae6fa8 1151OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1152])
1153AT_CLEANUP
1154
0157ad3a
SH
1155AT_SETUP([OFPST_FLOW request - OF1.2])
1156AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1157AT_CHECK([ovs-ofctl ofp-print "\
115803 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1159ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
116000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
116100 01 00 04 00 00 00 00 \
1162"], [0], [dnl
1163OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1164])
1165AT_CLEANUP
1166
2e1ae200
JR
1167AT_SETUP([OFPST_FLOW request - OF1.3])
1168AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1169AT_CHECK([ovs-ofctl ofp-print "\
117004 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1171ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
117200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117300 01 00 04 00 00 00 00 \
1174"], [0], [dnl
1175OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1176])
1177AT_CLEANUP
1178
6ec5f0c5 1179AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1180AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1181AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 118201 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
118300 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
118400 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1185c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1186ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
118700 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
118800 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
118900 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
119000 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1191c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1192ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
119300 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
119400 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
119500 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
119600 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1197c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1198ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
119900 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
120000 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 120100 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
120200 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1203c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 120480 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
120500 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
120600 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
120700 58 02 00 00 3f ff ff 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 80 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 \
fec00620
BP
1213"], [0], [dnl
1214OFPST_FLOW reply (xid=0x4):
b1634591
BP
1215 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
1216 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
1217 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 1218 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 1219 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1220])
1221AT_CLEANUP
1222
6ec5f0c5
SH
1223AT_SETUP([OFPST_FLOW reply - OF1.2])
1224AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1225AT_CHECK([ovs-ofctl ofp-print "\
122603 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
122700 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
122800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
122900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
123000 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1231ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
123200 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
123300 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
123405 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
123520 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
123600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
123700 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
123800 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
12390a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
124000 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
124100 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
124200 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
124300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
124400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
124500 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
124652 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
124700 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
124800 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
124905 dc 00 00 00 00 00 00 \
1250"], [0], [dnl
1251OFPST_FLOW reply (OF1.2) (xid=0x2):
1252 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
1253 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
1254 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
1255])
1256AT_CLEANUP
1257
617da9cd 1258AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1259AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1260AT_CHECK([ovs-ofctl ofp-print "\
126101 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1262ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126400 00 00 00 ff 00 ff ff \
1265"], [0], [dnl
54ae6fa8 1266OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1267])
1268AT_CLEANUP
1269
617da9cd
SH
1270AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1271AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1272AT_CHECK([ovs-ofctl ofp-print "\
127303 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1274ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
127500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
127600 01 00 04 00 00 00 00 \
1277"], [0], [dnl
1278OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1279])
1280AT_CLEANUP
1281
2e1ae200
JR
1282AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1283AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1284AT_CHECK([ovs-ofctl ofp-print "\
128504 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1286ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
128700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128800 01 00 04 00 00 00 00 \
1289"], [0], [dnl
1290OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1291])
1292AT_CLEANUP
1293
617da9cd 1294AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1295AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1296AT_CHECK([ovs-ofctl ofp-print "\
129701 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
129800 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
129900 00 00 00 \
1300"], [0], [dnl
1301OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1302])
1303AT_CLEANUP
1304
617da9cd
SH
1305AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1306AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1307AT_CHECK([ovs-ofctl ofp-print "\
130803 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
130900 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
131000 00 00 03 00 00 00 00 \
1311"], [0], [dnl
1312OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1313])
1314AT_CLEANUP
1315
2e1ae200
JR
1316AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1317AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1318AT_CHECK([ovs-ofctl ofp-print "\
131904 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
132000 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
132100 00 00 03 00 00 00 00 \
1322"], [0], [dnl
1323OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1324])
1325AT_CLEANUP
1326
307975da 1327AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1328AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1329AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1330OFPST_TABLE request (xid=0x1):
1331])
1332AT_CLEANUP
1333
307975da
SH
1334AT_SETUP([OFPST_TABLE request - OF1.1])
1335AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1336AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1337OFPST_TABLE request (OF1.1) (xid=0x2):
1338])
1339AT_CLEANUP
1340
1341AT_SETUP([OFPST_TABLE request - OF1.2])
1342AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1343AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1344OFPST_TABLE request (OF1.2) (xid=0x2):
1345])
1346AT_CLEANUP
1347
2e1ae200
JR
1348AT_SETUP([OFPST_TABLE request - OF1.3])
1349AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1350AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1351OFPST_TABLE request (OF1.3) (xid=0x2):
1352])
1353AT_CLEANUP
1354
26df8b3e 1355AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1356AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1357AT_CHECK([ovs-ofctl ofp-print "\
135801 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
135963 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
136000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
136100 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
136200 00 00 00 00 00 00 00 00 00 00 00 \
1363"], [0], [dnl
1364OFPST_TABLE reply (xid=0x1): 1 tables
1365 0: classifier: wild=0x3fffff, max=1048576, active=11
1366 lookup=0, matched=0
1367])
1368AT_CLEANUP
1369
26df8b3e
SH
1370AT_SETUP([OFPST_TABLE reply - OF1.2])
1371AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1372(mid="wild=0xfffffffff, max=1000000,"
1373 tail="
1374 match=0xfffffffff, instructions=0x00000007, config=0x00000000
1375 write_actions=0x00000000, apply_actions=0x00000000
1376 write_setfields=0x0000000fffffffff
1377 apply_setfields=0x0000000fffffffff
1378 metadata_match=0x0000000000000000
1379 metadata_write=0x0000000000000000"
1380 echo "OFPST_TABLE reply (OF1.2) (xid=0x2): 255 tables
1381 0: classifier: $mid active=1
1382 lookup=74614, matched=106024$tail"
1383 x=1
1384 while test $x -lt 254; do
1385 printf " %d: %-8s: $mid active=0
1386 lookup=0, matched=0$tail
1387" $x table$x
1388 x=`expr $x + 1`
1389 done
1390 echo " 254: table254: $mid active=2
1391 lookup=0, matched=0$tail") > expout
1392
1393(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"
1394 pad7="00 00 00 00 00 00 00 "
1395 mid="00 00 00 0f ff ff ff ff \
139600 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
139700 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
139800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
139900 00 00 07 00 00 00 00 00 0f 42 40 "
1400 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1401
1402 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1403
1404 x=0
1405 printf "%02x $pad7" $x
1406 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1407 echo -n "$mid 00 00 00 01 "
1408 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1409
1410 x=1
1411 while test $x -lt 254; do
1412 printf "%02x $pad7" $x
1413 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1414 echo -n "$mid 00 00 00 00 $tail "
1415 x=`expr $x + 1`
1416 done
1417
1418 x=254
1419 printf "%02x $pad7" $x
1420 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1421 echo -n "$mid 00 00 00 02 $tail") > in
1422AT_CHECK([ovs-ofctl ofp-print "$(cat in)"], [0], [expout])
1423AT_CLEANUP
1424
2e1ae200
JR
1425AT_SETUP([OFPST_TABLE reply - OF1.3])
1426AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1427AT_CHECK([ovs-ofctl ofp-print "\
142804 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
142900 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
143000 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
143100 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1432"], [0], [dnl
1433OFPST_TABLE reply (OF1.3) (xid=0x1): 2 tables
1434 0: active=11, lookup=512, matched=256
1435 1: active=12, lookup=513, matched=257
1436])
1437AT_CLEANUP
1438
f8e4867e 1439AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1440AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1441AT_CHECK([ovs-ofctl ofp-print "\
144201 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
144300 00 00 00 \
1444"], [0], [dnl
e1db42d6 1445OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1446])
1447AT_CLEANUP
1448
f8e4867e
SH
1449AT_SETUP([OFPST_PORT request - 1.1])
1450AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1451AT_CHECK([ovs-ofctl ofp-print "\
145202 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1453ff ff ff ff 00 00 00 00 \
1454"], [0], [dnl
e1db42d6 1455OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1456])
1457AT_CLEANUP
1458
1459AT_SETUP([OFPST_PORT request - 1.2])
1460AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1461AT_CHECK([ovs-ofctl ofp-print "\
146203 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1463ff ff ff ff 00 00 00 00 \
1464"], [0], [dnl
e1db42d6 1465OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1466])
1467AT_CLEANUP
1468
2e1ae200
JR
1469AT_SETUP([OFPST_PORT request - 1.3])
1470AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1471AT_CHECK([ovs-ofctl ofp-print "\
147204 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1473ff ff ff ff 00 00 00 00 \
1474"], [0], [dnl
e1db42d6 1475OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1476])
1477AT_CLEANUP
1478
f8e4867e 1479AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1480AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1481AT_CHECK([ovs-ofctl ofp-print "\
148201 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
148300 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
148400 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
148500 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
148600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
148700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
148800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
148900 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
149000 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
149100 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
149200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
149300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
149400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
149500 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
149600 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
149700 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
149800 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
149900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150200 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
150300 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
150400 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
150500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
150800 00 00 00 00 00 00 00 00 00 00 00 \
1509"], [0], [dnl
1510OFPST_PORT reply (xid=0x1): 4 ports
1511 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1512 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1513 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1514 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1515 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1516 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1517 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1518 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1519])
1520AT_CLEANUP
1521
f8e4867e
SH
1522AT_SETUP([OFPST_PORT reply - OF1.2])
1523AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1524AT_CHECK([ovs-ofctl ofp-print "\
152503 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
152600 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
152700 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
152800 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
152900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153200 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
153300 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
153400 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
153500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
154000 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
154100 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
154200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
154300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
154400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
154500 00 00 00 00 00 00 00 \
1546"], [0], [dnl
1547OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1548 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1549 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1550 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1551 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1552 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1553 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1554])
1555AT_CLEANUP
1556
65e0be10
BP
1557AT_SETUP([OFPST_PORT reply - OF1.3])
1558AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1559AT_CHECK([ovs-ofctl ofp-print "\
156004 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
156100 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
156200 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
156300 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
156400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156700 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1568ff ff ff fe 00 00 00 00 \
156900 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
157000 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
157100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
157400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1575ff ff ff ff ff ff ff ff \
157600 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
157700 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
157800 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
157900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158200 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1583"], [0], [dnl
1584OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1585 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1586 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1587 duration=1.001s
1588 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1589 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1590 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1591 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1592 duration=0.123s
1593])
1594AT_CLEANUP
1595
64626975 1596AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1597AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1598AT_CHECK([ovs-ofctl ofp-print "\
159901 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1600ff ff ff ff \
1601"], [0], [dnl
7f05e7ab 1602OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1603])
1604AT_CLEANUP
1605
64626975
SH
1606AT_SETUP([OFPST_QUEUE request - OF1.1])
1607AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1608AT_CHECK([ovs-ofctl ofp-print "\
160902 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1610ff ff ff ff ff ff ff ff \
64626975 1611"], [0], [dnl
7f05e7ab 1612OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1613])
1614AT_CLEANUP
1615
1616AT_SETUP([OFPST_QUEUE request - OF1.2])
1617AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1618AT_CHECK([ovs-ofctl ofp-print "\
161903 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1620ff ff ff ff ff ff ff ff \
64626975 1621"], [0], [dnl
7f05e7ab 1622OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1623])
1624AT_CLEANUP
1625
2e1ae200
JR
1626AT_SETUP([OFPST_QUEUE request - OF1.3])
1627AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1628AT_CHECK([ovs-ofctl ofp-print "\
162904 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1630ff ff ff ff ff ff ff ff \
1631"], [0], [dnl
1632OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1633])
1634AT_CLEANUP
1635
64626975 1636AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1637AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1638AT_CHECK([ovs-ofctl ofp-print "\
163901 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
164000 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
164100 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
164200 00 00 02 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 02 00 00 \
164400 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
164500 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
164600 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
164700 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
164800 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
164900 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
165000 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
165100 00 00 00 00 00 00 00 00 00 00 00 \
1652"], [0], [dnl
1653OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1654 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1655 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1656 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1657 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1658 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1659 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1660])
1661AT_CLEANUP
1662
64626975
SH
1663AT_SETUP([OFPST_QUEUE reply - OF1.1])
1664AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1665AT_CHECK([ovs-ofctl ofp-print "\
166602 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
166700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
166800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
166900 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
167000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167100 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
167200 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
167300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
167400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
167600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
167700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
167800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1679"], [0], [dnl
1680OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1681 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1682 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1683 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1684 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1685 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1686 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1687])
1688AT_CLEANUP
1689
1690AT_SETUP([OFPST_QUEUE reply - OF1.2])
1691AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1692AT_CHECK([ovs-ofctl ofp-print "\
169303 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
169400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
169500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
169600 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
169700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
169800 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
169900 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
170000 00 00 02 00 00 00 02 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 01 00 00 00 01 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 01 00 00 00 02 00 00 00 00 00 00 00 00 \
170500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1706"], [0], [dnl
1707OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1708 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1709 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1710 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1711 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1712 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1713 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1714])
1715AT_CLEANUP
be0c30df
BP
1716
1717AT_SETUP([OFPST_QUEUE reply - OF1.3])
1718AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1719AT_CHECK([ovs-ofctl ofp-print "\
172004 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
172100 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
172200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
172300 00 00 64 1d cd 65 00 \
172400 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
172500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172600 00 00 64 1d cd 65 00 \
172700 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
172800 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
172900 00 00 64 1d cd 65 00 \
173000 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
173100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
173200 00 00 64 1d cd 65 00 \
173300 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
173400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
173500 00 00 64 1d cd 65 00 \
173600 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
173700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1738ff ff ff ff ff ff ff ff \
1739"], [0], [dnl
1740OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1741 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1742 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1743 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1744 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1745 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1746 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1747])
1748AT_CLEANUP
1749
7395c052
NZ
1750AT_SETUP([OFPST_GROUP request])
1751AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1752AT_CHECK([ovs-ofctl ofp-print "\
175302 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1754ff ff ff ff 00 00 00 00 \
1755"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1756])
1757AT_CLEANUP
1758
1759AT_SETUP([OFPST_GROUP reply - OF1.1])
1760AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1761AT_CHECK([ovs-ofctl ofp-print "\
176202 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
176300 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
176400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
176500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
176600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
176700 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
176800 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
176900 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
177000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
177100 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1772"], [0], [dnl
1773OFPST_GROUP reply (OF1.1) (xid=0x2):
1774 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
1775 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
1776])
1777AT_CLEANUP
1778
1779AT_SETUP([OFPST_GROUP reply - OF1.3])
1780AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1781AT_CHECK([ovs-ofctl ofp-print "\
178204 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
178300 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
178400 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
178500 00 00 12 1d cd 65 00 \
178600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
178700 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
178800 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
178900 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
179000 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
179100 00 00 10 1d cd 65 00 \
179200 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
179300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1794"], [0], [dnl
1795OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1796 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
1797 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
1798])
1799AT_CLEANUP
1800
1801AT_SETUP([OFPST_GROUP_DESC request])
1802AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1803AT_CHECK([ovs-ofctl ofp-print "\
180402 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
1805"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2):
1806])
1807AT_CLEANUP
1808
1809AT_SETUP([OFPST_GROUP_DESC reply])
1810AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1811AT_CHECK([ovs-ofctl ofp-print "\
181202 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
181300 68 01 00 00 00 20 00 \
181400 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
181500 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
181600 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
181700 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
181800 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
181900 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
1820"], [0], [dnl
1821OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
1822 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
1823])
1824AT_CLEANUP
1825
1826AT_SETUP([OFPST_GROUP_FEATURES request])
1827AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1828AT_CHECK([ovs-ofctl ofp-print "\
182903 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
1830"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
1831])
1832AT_CLEANUP
1833
1834AT_SETUP([OFPST_GROUP_FEATURES reply])
1835AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1836AT_CHECK([ovs-ofctl ofp-print "\
183703 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
183800 00 00 0f 00 00 00 0f \
183900 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
184000 00 00 01 00 00 00 03 00 00 00 07 00 00 00 0f \
1841"], [0], [dnl
1842OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
1843 Group table:
1844 Types: 0xf
1845 Capabilities: 0xf
1846 All group :
1847 max_groups = 0x1 actions=0x00000001
1848 Select group :
1849 max_groups = 0x2 actions=0x00000003
1850 Indirect group :
1851 max_groups = 0x3 actions=0x00000007
1852 Fast Failover group :
1853 max_groups = 0x4 actions=0x0000000f
1854])
1855AT_CLEANUP
1856
1857AT_SETUP([OFPST_PORT_DESC request - OF1.0])
1858AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1859AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
1860OFPST_PORT_DESC request (xid=0x1):
1861])
1862AT_CLEANUP
1863
2be393ed
JP
1864AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
1865AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1866AT_CHECK([ovs-ofctl ofp-print "\
186701 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
186800 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
186900 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
187000 00 02 8f 00 00 02 8f 00 00 00 00 \
1871"], [0], [dnl
1872OFPST_PORT_DESC reply (xid=0x0):
1873 3(eth0): addr:50:54:00:00:00:01
1874 config: PORT_DOWN
1875 state: LINK_DOWN
1876 current: 100MB-FD AUTO_NEG
1877 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1878 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1879 speed: 100 Mbps now, 100 Mbps max
1880])
1881AT_CLEANUP
1882
8c3cc785
BP
1883AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
1884AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1885AT_CHECK([ovs-ofctl ofp-print "\
188605 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
188700 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
188865 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
188900 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
189000 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
189100 01 86 a0 00 01 86 a0 \
1892"], [0], [dnl
1893OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
1894 3(eth0): addr:50:54:00:00:00:01
1895 config: 0
1896 state: 0
1897 current: 100MB-FD AUTO_NEG
1898 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1899 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1900 speed: 100 Mbps now, 100 Mbps max
1901])
1902AT_CLEANUP
1903
638a19b0
JR
1904AT_SETUP([OFPT_METER_MOD request - OF1.3])
1905AT_KEYWORDS([ofp-print])
1906AT_CHECK([ovs-ofctl ofp-print "\
190704 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
190800 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
1909"], [0], [dnl
1910OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
1911type=drop rate=1024 burst_size=128
1912])
1913AT_CLEANUP
1914
f99d6aa0
BP
1915AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
1916AT_KEYWORDS([ofp-print])
1917AT_CHECK([ovs-ofctl ofp-print "\
191804 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
191900 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
1920"], [0], [dnl
1921OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
1922])
1923AT_CLEANUP
1924
142cdb01
BP
1925AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
1926AT_KEYWORDS([ofp-print])
1927AT_CHECK([ovs-ofctl ofp-print "\
192804 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
1929"], [0], [dnl
1930OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
1931])
1932AT_CLEANUP
1933
13b1febe
BP
1934AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
1935AT_KEYWORDS([ofp-print])
1936AT_CHECK([ovs-ofctl ofp-print "\
193704 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
193800 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
1939"], [0], [dnl
1940OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
1941])
1942AT_CLEANUP
1943
638a19b0
JR
1944AT_SETUP([OFPST_METER request - OF1.3])
1945AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1946AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
1947OFPST_METER request (OF1.3) (xid=0x2): meter=1
1948])
1949AT_CLEANUP
1950
1951AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
1952AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1953AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
1954OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
1955])
1956AT_CLEANUP
1957
1958AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
1959AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1960AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
1961OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
1962])
1963AT_CLEANUP
1964
1965AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
1966AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1967AT_CHECK([ovs-ofctl ofp-print "\
196804 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 196900 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
1970"], [0], [dnl
1971OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
1972max_meter:65536 max_bands:16 max_color:2
1973band_types: drop dscp_remark
1974capabilities: kbps pktps burst stats
1975])
1976AT_CLEANUP
1977
1978AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
1979AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1980AT_CHECK([ovs-ofctl ofp-print "\
198104 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
198200 28 00 05 00 00 00 01 \
198300 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
198400 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
198500 18 00 09 00 00 00 02 \
198600 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
1987"], [0], [dnl
1988OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
1989meter=1 kbps burst bands=
1990type=drop rate=65536 burst_size=1280
1991type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
1992
1993meter=2 kbps stats bands=
1994type=drop rate=131072
1995])
1996AT_CLEANUP
1997
1998AT_SETUP([OFPST_METER reply - OF1.3])
1999AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2000AT_CHECK([ovs-ofctl ofp-print "\
200104 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
200200 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
200300 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 200400 00 01 8a 0a 6e 23 44 \
638a19b0
JR
200500 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
200600 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
200700 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
200800 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 200900 00 01 87 0a 23 6e 44 \
638a19b0
JR
201000 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2011"], [0], [dnl
2012OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2013meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
20140: packet_count:126 byte_count:13363
20151: packet_count:231 byte_count:37934
2016
0445637d 2017meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
20180: packet_count:42 byte_count:1075
2019])
2020AT_CLEANUP
2021
5deff5aa
AW
2022AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2023AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2024AT_CHECK([ovs-ofctl ofp-print "\
202504 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
202609 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
202700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
202800 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2029ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
203000 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
203100 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
203200 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
203300 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
203400 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
203500 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
203600 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
20370d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
20381d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
20392d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
20403d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
20414d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
20425d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
20436d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
20447d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
20458d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
20469d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2047ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2048bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2049cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2050dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2051ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2052fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
205305 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
205415 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
205525 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
205635 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
205745 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
205855 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
205965 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
206075 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
206185 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
206295 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2063a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2064b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2065c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2066d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2067e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2068f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
206900 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
207000 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
207100 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
207200 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
207300 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
207400 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
207500 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
207600 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
207700 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
207800 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
207900 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
208000 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
208100 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
208200 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
208300 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
208400 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
208500 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
208600 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
208700 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
208800 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
208900 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
209000 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
209100 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
209200 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
209300 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
209400 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
209500 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
209600 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
209700 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
209800 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
209900 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
210000 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
210100 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
210200 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
210300 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
210480 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
210500 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
210600 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
210780 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
210880 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
210980 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
211080 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
211180 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
211280 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
211380 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
211480 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
211580 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
211680 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
211700 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
211880 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
211900 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
212000 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
212180 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
212280 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
212380 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
212480 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
212580 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
212680 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
212780 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
212880 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
212980 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
213080 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
213100 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
213280 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
213300 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
213400 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
213580 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
213680 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
213780 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
213880 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
213980 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
214080 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
214180 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
214200 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
214380 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
214400 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
214500 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
214600 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
214780 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
214880 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
214900 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
215080 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
215180 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
215200 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
215380 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
215400 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
215500 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
215680 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
215780 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
215880 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
215980 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
216080 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
216180 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
216280 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
216300 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
216480 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
216500 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
216600 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
216700 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
216880 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
216980 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
217000 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
217180 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
217280 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2173"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
2174 table 0:
2175 name="table0"
2176 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
2177 config=Unknown
2178 max_entries=1000000
2179 instructions (table miss and others):
2180 next tables: 1-253
2181 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2182 Write-Actions and Apply-Actions features:
2183 actions: output,copy_ttl_out,copy_ttl_in,set_mpls_ttl,dec_mpls_ttl,push_vlan,pop_vlan,push_mpls,pop_mpls,set_queue,group,set_nw_ttl,dec_nw_ttl,set_field,push_pbb,pop_pbb
2184 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
2185 matching:
2186 tun_id: exact match or wildcard
2187 tun_src: exact match or wildcard
2188 tun_dst: exact match or wildcard
2189 metadata: exact match or wildcard
2190 in_port: exact match or wildcard
2191 in_port_oxm: exact match or wildcard
2192 pkt_mark: exact match or wildcard
2193 reg0: exact match or wildcard
2194 reg1: exact match or wildcard
2195 reg2: exact match or wildcard
2196 reg3: exact match or wildcard
2197 reg4: exact match or wildcard
2198 reg5: exact match or wildcard
2199 reg6: exact match or wildcard
2200 reg7: exact match or wildcard
2201 eth_src: exact match or wildcard
2202 eth_dst: exact match or wildcard
2203 eth_type: exact match or wildcard
2204 vlan_tci: exact match or wildcard
2205 vlan_vid: exact match or wildcard
2206 vlan_pcp: exact match or wildcard
2207 mpls_label: exact match or wildcard
2208 mpls_tc: exact match or wildcard
2209 mpls_bos: exact match or wildcard
2210 ip_src: exact match or wildcard
2211 ip_dst: exact match or wildcard
2212 ipv6_src: exact match or wildcard
2213 ipv6_dst: exact match or wildcard
2214 ipv6_label: exact match or wildcard
2215 nw_proto: exact match or wildcard
2216 nw_tos: exact match or wildcard
2217 ip_dscp: exact match or wildcard
2218 nw_ecn: exact match or wildcard
2219 nw_ttl: exact match or wildcard
2220 ip_frag: exact match or wildcard
2221 arp_op: exact match or wildcard
2222 arp_spa: exact match or wildcard
2223 arp_tpa: exact match or wildcard
2224 arp_sha: exact match or wildcard
2225 arp_tha: exact match or wildcard
2226 tcp_src: exact match or wildcard
2227 tcp_dst: exact match or wildcard
2228 tcp_flags: exact match or wildcard
2229 udp_src: exact match or wildcard
2230 udp_dst: exact match or wildcard
2231 sctp_src: exact match or wildcard
2232 sctp_dst: exact match or wildcard
2233 icmp_type: exact match or wildcard
2234 icmp_code: exact match or wildcard
2235 icmpv6_type: exact match or wildcard
2236 icmpv6_code: exact match or wildcard
2237 nd_target: exact match or wildcard
2238 nd_sll: exact match or wildcard
2239 nd_tll: exact match or wildcard
2240])
2241AT_CLEANUP
2242
58cf43df 2243AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2244AT_KEYWORDS([ofp-print])
2245AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2246OFPT_BARRIER_REQUEST (xid=0x1):
2247])
2248AT_CLEANUP
2249
58cf43df
SH
2250AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2251AT_KEYWORDS([ofp-print])
2252AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2253OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2254])
2255AT_CLEANUP
2256
2257AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2258AT_KEYWORDS([ofp-print])
2259AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2260OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2261])
2262AT_CLEANUP
2263
2e1ae200
JR
2264AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2265AT_KEYWORDS([ofp-print])
2266AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2267OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2268])
2269AT_CLEANUP
2270
58cf43df 2271AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2272AT_KEYWORDS([ofp-print])
2273AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2274OFPT_BARRIER_REPLY (xid=0x1):
2275])
2276AT_CLEANUP
2277
2e1ae200 2278AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2279AT_KEYWORDS([ofp-print])
2280AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2281OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2282])
2283AT_CLEANUP
2284
2e1ae200 2285AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2286AT_KEYWORDS([ofp-print])
2287AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2288OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2289])
2290AT_CLEANUP
2291
2e1ae200
JR
2292AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2293AT_KEYWORDS([ofp-print])
2294AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2295OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2296])
2297AT_CLEANUP
2298
e8f9a7bb
VG
2299AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2300AT_KEYWORDS([ofp-print])
2301AT_CHECK([ovs-ofctl ofp-print "01 16 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
2302OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2303])
2304AT_CLEANUP
2305
2306AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2307AT_KEYWORDS([ofp-print])
2308AT_CHECK([ovs-ofctl ofp-print "\
230903 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2310OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2311])
2312AT_CLEANUP
2313
2314AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2315AT_KEYWORDS([ofp-print])
2316AT_CHECK([ovs-ofctl ofp-print "01 17 00 40 00 00 00 01 \
231700 01 00 00 00 00 00 00 \
231800 00 55 55 00 28 00 00 \
231900 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
232000 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
232100 00 44 44 00 08 00 00 \
2322"], [0], [dnl
2323OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2324queue 21845: min_rate:50.0% max_rate:75.0%
2325queue 17476:
2326])
2327AT_CLEANUP
2328
2329AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2330AT_KEYWORDS([ofp-print])
2331AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
233200 00 00 01 00 00 00 00 \
233300 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
233400 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
233500 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
233600 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2337"], [0], [dnl
2338OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2339queue 21845: min_rate:50.0% max_rate:75.0%
2340queue 17476:
2341])
2342AT_CLEANUP
2e1ae200
JR
2343
2344AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2345AT_KEYWORDS([ofp-print])
2346AT_CHECK([ovs-ofctl ofp-print "\
234704 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
234800 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2349"], [0], [dnl
2350OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2351 master:
2352 PACKET_IN: no_match invalid_ttl 12
2353 PORT_STATUS: add delete
2354 FLOW_REMOVED: (off)
2355
2356 slave:
2357 PACKET_IN: no_match action invalid_ttl 12
2358 PORT_STATUS: add delete modify
2359 FLOW_REMOVED: idle hard
2360])
2361AT_CLEANUP
2362
6ea4776b
JR
2363AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2364AT_KEYWORDS([ofp-print])
2365AT_CHECK([ovs-ofctl ofp-print "\
236603 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
236700 00 00 00 00 00 00 03 \
2368"], [0], [dnl
2369OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2370])
2371AT_CLEANUP
2372
2373AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2374AT_KEYWORDS([ofp-print])
2375AT_CHECK([ovs-ofctl ofp-print "\
237603 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
237700 00 00 00 00 00 00 00 \
2378"], [0], [dnl
2379OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2380])
2381AT_CLEANUP
2382
fec00620
BP
2383AT_SETUP([NXT_ROLE_REQUEST])
2384AT_KEYWORDS([ofp-print])
2385AT_CHECK([ovs-ofctl ofp-print "\
238601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
238700 00 00 01 \
2388"], [0], [dnl
2389NXT_ROLE_REQUEST (xid=0x2): role=master
2390])
2391AT_CLEANUP
2392
6ea4776b
JR
2393AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2394AT_KEYWORDS([ofp-print])
2395AT_CHECK([ovs-ofctl ofp-print "\
239603 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 239712 34 56 78 ab cd ef 90 \
6ea4776b 2398"], [0], [dnl
147cc9d3 2399OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2400])
2401AT_CLEANUP
2402
fec00620
BP
2403AT_SETUP([NXT_ROLE_REPLY])
2404AT_KEYWORDS([ofp-print])
2405AT_CHECK([ovs-ofctl ofp-print "\
240601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
240700 00 00 02 \
2408"], [0], [dnl
2409NXT_ROLE_REPLY (xid=0x2): role=slave
2410])
2411AT_CLEANUP
2412
00467f73
AC
2413AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2414AT_KEYWORDS([ofp-print])
2415AT_CHECK([ovs-ofctl ofp-print "\
241605 1e 00 18 00 00 00 0a \
241700 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2418"], [0], [dnl
9620f50c 2419OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2420])
2421AT_CLEANUP
2422
2423AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2424AT_KEYWORDS([ofp-print])
2425AT_CHECK([ovs-ofctl ofp-print "\
242605 1e 00 18 00 00 00 0a \
242700 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2428"], [0], [dnl
9620f50c 2429OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2430])
2431AT_CLEANUP
2432
2433AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2434AT_KEYWORDS([ofp-print])
2435AT_CHECK([ovs-ofctl ofp-print "\
243605 1e 00 18 00 00 00 0a \
243700 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2438"], [0], [dnl
9620f50c 2439OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2440])
2441AT_CLEANUP
2442
54834960
EJ
2443AT_SETUP([NXT_SET_PACKET_IN])
2444AT_KEYWORDS([ofp-print])
2445AT_CHECK([ovs-ofctl ofp-print "\
244601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
244700 00 00 01 \
2448"], [0], [dnl
2449NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2450])
2451AT_CLEANUP
2452
2453AT_SETUP([NXT_PACKET_IN])
2454AT_KEYWORDS([ofp-print])
2455AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 245601 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2457ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 245800 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
245920 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
246000 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
246100 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 246200 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2463ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
246480 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
246500 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 246600 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
246731 6d 00 00 00 00 00 00 00 00 \
2468"], [0], [dnl
42edbe39 2469NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
dc235f7f 2470tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=0x002 tcp_csum:316d
54834960
EJ
2471])
2472AT_CLEANUP
2473
b4ccee75
SH
2474AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2475AT_KEYWORDS([ofp-print])
2476AT_CHECK([ovs-ofctl ofp-print "\
247701 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2478ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
247900 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
248020 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
248100 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
248200 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
248300 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2484ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
248580 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
248600 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 248700 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
248831 6d 00 00 00 00 00 00 00 00 \
2489" 3], [0], [dnl
2490NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
dc235f7f 2491tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=0x001 tcp_csum:316d
b4ccee75
SH
249200000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
249300000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
249400000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 249500000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2496])
2497AT_CLEANUP
2498
80d5aefd
BP
2499AT_SETUP([NXT_SET_ASYNC_CONFIG])
2500AT_KEYWORDS([ofp-print])
2501AT_CHECK([ovs-ofctl ofp-print "\
250201 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
250300 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
250400 00 00 00 00 00 00 03 \
2505"], [0], [dnl
2506NXT_SET_ASYNC_CONFIG (xid=0x0):
2507 master:
2508 PACKET_IN: no_match invalid_ttl 12
2509 PORT_STATUS: add delete
2510 FLOW_REMOVED: (off)
2511
2512 slave:
2513 PACKET_IN: no_match action invalid_ttl 12
2514 PORT_STATUS: add delete modify
2515 FLOW_REMOVED: idle hard
2516])
2517AT_CLEANUP
2518
a7349929
BP
2519AT_SETUP([NXT_SET_CONTROLLER_ID])
2520AT_KEYWORDS([ofp-print])
2521AT_CHECK([ovs-ofctl ofp-print "\
252201 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
252300 00 00 00 00 00 00 7b \
2524"], [0], [dnl
2525NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2526])
2527AT_CLEANUP
2528
2b07c8b1
BP
2529AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2530AT_KEYWORDS([ofp-print])
2531AT_CHECK([ovs-ofctl ofp-print "\
253201 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
253301 02 30 40 \
2534"], [0], [dnl
2535NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2536])
2537AT_CLEANUP
2538
2539AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2540AT_KEYWORDS([ofp-print])
2541AT_CHECK([ovs-ofctl ofp-print "\
254201 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2543"], [0], [dnl
2544NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2545])
2546AT_CLEANUP
2547
2548AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2549AT_KEYWORDS([ofp-print])
2550AT_CHECK([ovs-ofctl ofp-print "\
255101 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2552"], [0], [dnl
2553NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2554])
2555AT_CLEANUP
2556
fec00620
BP
2557AT_SETUP([NXT_SET_FLOW_FORMAT])
2558AT_KEYWORDS([ofp-print])
2559AT_CHECK([ovs-ofctl ofp-print "\
256001 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
256100 00 00 02 \
2562"], [0], [dnl
2563NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2564])
2565AT_CLEANUP
2566
2567# The flow is formatted with cls_rule_format() for the low-verbosity case.
2568AT_SETUP([NXT_FLOW_MOD, low verbosity])
2569AT_KEYWORDS([ofp-print])
2570AT_CHECK([ovs-ofctl ofp-print "\
257101 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
257200 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2573ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
257400 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
257500 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
257600 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2577" 2], [0], [dnl
de0f16bc 2578NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2579])
2580AT_CLEANUP
2581
eec25dc1
BP
2582# The flow is formatted with ofp10_match_to_string() for the
2583# low-verbosity case.
fec00620
BP
2584AT_SETUP([NXT_FLOW_MOD, high verbosity])
2585AT_KEYWORDS([ofp-print])
2586AT_CHECK([ovs-ofctl ofp-print "\
258701 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
258800 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2589ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
259000 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
259100 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
259200 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2593" 3], [0], [dnl
de0f16bc 2594NXT_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
2595])
2596AT_CLEANUP
2597
7395c052
NZ
2598AT_SETUP([OFPT_GROUP_MOD])
2599AT_KEYWORDS([ofp-print])
2600AT_CHECK([ovs-ofctl ofp-print "\
260102 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
260200 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
260300 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
260400 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
260500 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
260600 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
260700 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2608"], [0], [dnl
2609OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2610 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
2611])
2612AT_CLEANUP
2613
fec00620
BP
2614AT_SETUP([NXT_FLOW_REMOVED])
2615AT_KEYWORDS([ofp-print])
2616AT_CHECK([ovs-ofctl ofp-print "\
261701 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 261800 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
261901 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
262000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
262102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
262200 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
26231e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2624c0 a8 00 02 00 00 00 00 \
2625"], [0], [dnl
745bfd5e 2626NXT_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
2627])
2628AT_CLEANUP
2629
a1a7d333
BP
2630AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2631AT_KEYWORDS([ofp-print])
2632AT_CHECK([ovs-ofctl ofp-print "\
263301 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
263401 00 00 00 00 00 00 00 \
2635"], [0], [dnl
2636NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2637])
2638AT_CLEANUP
2639
fec00620
BP
2640AT_SETUP([NXST_FLOW request])
2641AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2642AT_CHECK([ovs-ofctl ofp-print "\
264301 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
264400 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2645"], [0], [dnl
54ae6fa8 2646NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2647])
2648AT_CLEANUP
2649
2650AT_SETUP([NXST_FLOW reply])
2651AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2652AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 265301 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
265400 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
265502 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
265600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
265700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
265802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
265900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
26600a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2661a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
266214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
266300 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 266400 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
266500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
266600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
266700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
266800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2669a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
267000 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
267100 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 267233 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
267300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
267400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
267502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
267600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
26770a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2678a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
267914 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
268000 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 268100 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
268200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
268300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
268400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
268500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2686a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
268700 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
268800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 268934 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
269000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
269100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
269202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
269300 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
26940a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2695a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
269614 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
269700 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
269800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
269900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
270000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
270100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
270200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2703a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
270400 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
270500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
270602 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
270700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
270800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
270902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
271000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27110a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2712a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
271314 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
271400 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
271500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
271600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
271700 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
271800 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
271900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2720a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
272100 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
272200 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
272327 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
272400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
272500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
272602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
272700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27280a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2729a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
273014 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
273100 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
273200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
273300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
273400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
273500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
273600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2737a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
273800 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
273900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
27400a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
274100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
274200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
274302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
274400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27450a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2746a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
274714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
274800 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
274900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
275000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
275100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
275200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
275300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2754a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
275500 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
275600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
275704 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
275800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
275900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
276002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
276100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27620a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2763a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
276414 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
276500 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
276600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
276700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
276800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
276900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
277000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2771a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
277200 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
277300 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
27742e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
277500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
277600 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
277700 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
2778ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
277900 00 00 00 00 00 00 05 \
05b8f1c2
BP
278000 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
278100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
278200 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
2783"], [0],
2784[[NXST_FLOW reply (xid=0x4):
b9718b7b 2785 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 2786 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
2787 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
2788 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 2789 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 2790 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 2791 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
2792 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
2793 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
2794 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
2795 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
2796 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
2797 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
2798 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
2799 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 2800 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
2801]])
2802AT_CLEANUP
2803
2804AT_SETUP([NXST_AGGREGATE request])
2805AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2806AT_CHECK([ovs-ofctl ofp-print "\
280701 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
280800 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2809"], [0], [dnl
54ae6fa8 2810NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
2811])
2812AT_CLEANUP
2813
2814AT_SETUP([NXST_AGGREGATE reply])
2815AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2816AT_CHECK([ovs-ofctl ofp-print "\
281701 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
281800 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
281900 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
2820"], [0], [dnl
2821NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
2822])
2823AT_CLEANUP
2b07c8b1
BP
2824
2825AT_SETUP([NXST_FLOW_MONITOR request])
2826AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2827AT_CHECK([ovs-ofctl ofp-print "\
282801 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
282900 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
283000 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
2831"], [0], [dnl
2832NXST_FLOW_MONITOR request (xid=0x4):
2833 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
2834 id=8192 flags=delete table=2 in_port=1
2835])
2836AT_CLEANUP
2837
2838AT_SETUP([NXST_FLOW_MONITOR reply])
2839AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2840AT_CHECK([ovs-ofctl ofp-print "\
284101 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 284200 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
284300 00 00 02 00 01 00 00 \
284400 08 00 03 00 01 86 a0 \
2845"], [0], [dnl
2846NXST_FLOW_MONITOR reply (xid=0x4):
2847 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
2848 event=ABBREV xid=0x186a0
2849])
2850AT_CLEANUP
777af88d
AC
2851
2852
2853AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2854AT_KEYWORDS([ofp-print])
2855AT_CHECK([ovs-ofctl ofp-print "\
285605 21 00 10 00 00 00 00 \
285700 00 00 01 00 00 00 01 \
2858"], [0], [dnl
2859OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2860 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
2861])
2862AT_CLEANUP
2863
2864AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2865AT_KEYWORDS([ofp-print])
2866AT_CHECK([ovs-ofctl ofp-print "\
286705 21 00 10 00 00 00 00 \
286800 00 00 01 00 00 00 02 \
2869"], [0], [dnl
2870OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2871 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
2872])
2873AT_CLEANUP
2874
2875AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2876AT_KEYWORDS([ofp-print])
2877AT_CHECK([ovs-ofctl ofp-print "\
287805 21 00 10 00 00 00 00 \
287900 00 00 01 00 00 00 03 \
2880"], [0], [dnl
2881OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2882 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
2883])
2884AT_CLEANUP
2885
2886AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
2887AT_KEYWORDS([ofp-print])
2888AT_CHECK([ovs-ofctl ofp-print "\
288905 21 00 10 00 00 00 00 \
289000 00 00 01 00 01 00 01 \
2891"], [0], [dnl
2892OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2893 bundle_id=0x1 type=OPEN_REPLY flags=atomic
2894])
2895AT_CLEANUP
2896
2897AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
2898AT_KEYWORDS([ofp-print])
2899AT_CHECK([ovs-ofctl ofp-print "\
290005 21 00 10 00 00 00 00 \
290100 00 00 01 00 02 00 01 \
2902"], [0], [dnl
2903OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2904 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
2905])
2906AT_CLEANUP
2907
2908AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
2909AT_KEYWORDS([ofp-print])
2910AT_CHECK([ovs-ofctl ofp-print "\
291105 21 00 10 00 00 00 00 \
291200 00 00 01 00 03 00 01 \
2913"], [0], [dnl
2914OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2915 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
2916])
2917AT_CLEANUP
2918
2919AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
2920AT_KEYWORDS([ofp-print])
2921AT_CHECK([ovs-ofctl ofp-print "\
292205 21 00 10 00 00 00 00 \
292300 00 00 01 00 04 00 01 \
2924"], [0], [dnl
2925OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2926 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
2927])
2928AT_CLEANUP
2929
2930AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
2931AT_KEYWORDS([ofp-print])
2932AT_CHECK([ovs-ofctl ofp-print "\
293305 21 00 10 00 00 00 00 \
293400 00 00 01 00 05 00 01 \
2935"], [0], [dnl
2936OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2937 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
2938])
2939AT_CLEANUP
2940
2941AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
2942AT_KEYWORDS([ofp-print])
2943AT_CHECK([ovs-ofctl ofp-print "\
294405 21 00 10 00 00 00 00 \
294500 00 00 01 00 06 00 01 \
2946"], [0], [dnl
2947OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2948 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
2949])
2950AT_CLEANUP
2951
2952AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
2953AT_KEYWORDS([ofp-print])
2954AT_CHECK([ovs-ofctl ofp-print "\
295505 21 00 10 00 00 00 00 \
295600 00 00 01 00 07 00 01 \
2957"], [0], [dnl
2958OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2959 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
2960])
2961AT_CLEANUP
2962
2963AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - OFPT_HELLO])
2964AT_KEYWORDS([ofp-print])
2965AT_CHECK([ovs-ofctl ofp-print "\
296605 22 00 20 00 00 00 00 \
296700 00 00 01 00 01 00 01 02 00 00 08 00 00 00 00 \
296800 00 00 00 00 00 00 00 \
2969"], [0], [dnl
2970OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0):
2971 bundle_id=0x1 flags=atomic
2972OFPT_HELLO (OF1.1) (xid=0x0):
2973 version bitmap: 0x01, 0x02
2974])
2975AT_CLEANUP