]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
Implement basic OpenFlow 1.4 table-mod message.
[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
18cc69d9
BP
1028AT_SETUP([OFPT_PORT_MOD - OF1.4])
1029AT_KEYWORDS([ofp-print])
1030AT_CHECK([ovs-ofctl ofp-print "\
103105 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
103250 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
103300 00 00 08 00 00 00 01
1034" 3], [0], [dnl
1035OFPT_PORT_MOD (OF1.4) (xid=0x3):port: 3: addr:50:54:00:00:00:01
1036 config: PORT_DOWN
1037 mask: PORT_DOWN
1038 advertise: 10MB-HD
1039])
1040AT_CLEANUP
1041
918f2b82
AZ
1042AT_SETUP([OFPT_TABLE_MOD - OF1.1])
1043AT_KEYWORDS([ofp-print])
1044AT_CHECK([ovs-ofctl ofp-print "\
104502 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \
1046" 3], [0], [dnl
1047OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop
1048])
1049AT_CLEANUP
1050
1051AT_SETUP([OFPT_TABLE_MOD - OF1.2])
1052AT_KEYWORDS([ofp-print])
1053AT_CHECK([ovs-ofctl ofp-print "\
105403 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \
1055" 3], [0], [dnl
1056OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue
1057])
1058AT_CLEANUP
1059
307873b7 1060# ofp_table_mod.config is actually "reserved for future use" in OF1.3.
918f2b82
AZ
1061AT_SETUP([OFPT_TABLE_MOD - OF1.3])
1062AT_KEYWORDS([ofp-print])
1063AT_CHECK([ovs-ofctl ofp-print "\
106404 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1065" 3], [0], [dnl
1066OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2, flow_miss_config=controller
1067])
1068AT_CLEANUP
1069
37ab26e8
BP
1070AT_SETUP([OFPT_TABLE_MOD - OF1.4])
1071AT_KEYWORDS([ofp-print])
1072AT_CHECK([ovs-ofctl ofp-print "\
107305 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \
1074" 3], [0], [dnl
1075OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, flow_miss_config=controller
1076])
1077AT_CLEANUP
1078
fec00620
BP
1079AT_SETUP([OFPST_DESC request])
1080AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1081AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
1082OFPST_DESC request (xid=0x1):
1083])
1084AT_CLEANUP
1085
1086AT_SETUP([OFPST_DESC reply])
1087AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1088AT_CHECK([ovs-ofctl ofp-print "\
108901 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
109072 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
109100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
109200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
109900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110500 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
110620 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
110700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
110900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
111900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112100 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
112230 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
112300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
112900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113700 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
113800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
113900 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
114000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
114900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
115500 00 00 00 00 00 00 00 00 00 00 00 \
1156"], [0], [dnl
1157OFPST_DESC reply (xid=0x1):
e0edde6f 1158Manufacturer: Nicira, Inc.
fec00620
BP
1159Hardware: Open vSwitch
1160Software: 1.1.0pre2
1161Serial Num: None
1162DP Description: None
1163])
1164AT_CLEANUP
1165
0157ad3a 1166AT_SETUP([OFPST_FLOW request - OF1.0])
fec00620
BP
1167AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1168AT_CHECK([ovs-ofctl ofp-print "\
116901 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
1170ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
117200 00 00 00 ff 00 ff ff \
1173"], [0], [dnl
54ae6fa8 1174OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
1175])
1176AT_CLEANUP
1177
0157ad3a
SH
1178AT_SETUP([OFPST_FLOW request - OF1.2])
1179AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1180AT_CHECK([ovs-ofctl ofp-print "\
118103 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1182ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
118300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
118400 01 00 04 00 00 00 00 \
1185"], [0], [dnl
1186OFPST_FLOW request (OF1.2) (xid=0x2): @&t@
1187])
1188AT_CLEANUP
1189
2e1ae200
JR
1190AT_SETUP([OFPST_FLOW request - OF1.3])
1191AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1192AT_CHECK([ovs-ofctl ofp-print "\
119304 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \
1194ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
119500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
119600 01 00 04 00 00 00 00 \
1197"], [0], [dnl
1198OFPST_FLOW request (OF1.3) (xid=0x2): @&t@
1199])
1200AT_CLEANUP
1201
6ec5f0c5 1202AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
1203AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1204AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 120501 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
120600 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
120700 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
1208c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
1209ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
121000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
121100 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
121200 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
121300 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
1214c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
1215ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
121600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
121700 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
121800 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
121900 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
1220c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
1221ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
122200 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
122300 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 122400 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
122500 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
1226c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 122780 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
122800 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
122900 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
123000 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
123100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123300 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
123400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123500 00 00 00 00 00 00 00 \
fec00620
BP
1236"], [0], [dnl
1237OFPST_FLOW reply (xid=0x4):
b1634591
BP
1238 cookie=0x0, duration=4.200s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,arp_spa=192.168.0.1,arp_tpa=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1
1239 cookie=0x0, duration=8.900s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, priority=65535,icmp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
1240 cookie=0x0, duration=4.280s, table=0, n_packets=1, n_bytes=60, idle_timeout=5, priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=1,nw_tos=0,tp_src=0,tp_dst=0 actions=output:3
b9718b7b 1241 cookie=0x0, duration=9.096s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5, icmp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,icmp_type=8,icmp_code=0 actions=output:1
05b8f1c2 1242 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
1243])
1244AT_CLEANUP
1245
6ec5f0c5
SH
1246AT_SETUP([OFPST_FLOW reply - OF1.2])
1247AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1248AT_CHECK([ovs-ofctl ofp-print "\
124903 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
125000 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
125100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
125200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
125300 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
1254ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
125500 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
125600 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
125705 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
125820 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
125900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
126000 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
126100 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
12620a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
126300 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
126400 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
126500 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
126600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
126700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
126800 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
126952 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
127000 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
127100 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
127205 dc 00 00 00 00 00 00 \
1273"], [0], [dnl
1274OFPST_FLOW reply (OF1.2) (xid=0x2):
1275 cookie=0x0, duration=3.023s, table=0, n_packets=1, n_bytes=98, ip,metadata=0,in_port=2,dl_dst=ca:da:ad:d6:0d:37,nw_tos=0 actions=output:2
1276 cookie=0x0, duration=4.545s, table=0, n_packets=2, n_bytes=140, ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 actions=output:2
1277 cookie=0x0, duration=4.548s, table=0, n_packets=1, n_bytes=42, ip,metadata=0,in_port=2,dl_dst=52:54:00:97:00:69,nw_tos=0 actions=output:2
1278])
1279AT_CLEANUP
1280
617da9cd 1281AT_SETUP([OFPST_AGGREGATE request - OF1.0])
fec00620
BP
1282AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1283AT_CHECK([ovs-ofctl ofp-print "\
128401 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
1285ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
128700 00 00 00 ff 00 ff ff \
1288"], [0], [dnl
54ae6fa8 1289OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1290])
1291AT_CLEANUP
1292
617da9cd
SH
1293AT_SETUP([OFPST_AGGREGATE request - OF1.2])
1294AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1295AT_CHECK([ovs-ofctl ofp-print "\
129603 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1297ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
129800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
129900 01 00 04 00 00 00 00 \
1300"], [0], [dnl
1301OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@
1302])
1303AT_CLEANUP
1304
2e1ae200
JR
1305AT_SETUP([OFPST_AGGREGATE request - OF1.3])
1306AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1307AT_CHECK([ovs-ofctl ofp-print "\
130804 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \
1309ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \
131000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
131100 01 00 04 00 00 00 00 \
1312"], [0], [dnl
1313OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@
1314])
1315AT_CLEANUP
1316
617da9cd 1317AT_SETUP([OFPST_AGGREGATE reply - OF1.0])
fec00620
BP
1318AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1319AT_CHECK([ovs-ofctl ofp-print "\
132001 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
132100 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
132200 00 00 00 \
1323"], [0], [dnl
1324OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
1325])
1326AT_CLEANUP
1327
617da9cd
SH
1328AT_SETUP([OFPST_AGGREGATE reply - OF1.2])
1329AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1330AT_CHECK([ovs-ofctl ofp-print "\
133103 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
133200 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
133300 00 00 03 00 00 00 00 \
1334"], [0], [dnl
1335OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1336])
1337AT_CLEANUP
1338
2e1ae200
JR
1339AT_SETUP([OFPST_AGGREGATE reply - OF1.3])
1340AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1341AT_CHECK([ovs-ofctl ofp-print "\
134204 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \
134300 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \
134400 00 00 03 00 00 00 00 \
1345"], [0], [dnl
1346OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3
1347])
1348AT_CLEANUP
1349
307975da 1350AT_SETUP([OFPST_TABLE request - OF1.0])
fec00620
BP
1351AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1352AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
1353OFPST_TABLE request (xid=0x1):
1354])
1355AT_CLEANUP
1356
307975da
SH
1357AT_SETUP([OFPST_TABLE request - OF1.1])
1358AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1359AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl
1360OFPST_TABLE request (OF1.1) (xid=0x2):
1361])
1362AT_CLEANUP
1363
1364AT_SETUP([OFPST_TABLE request - OF1.2])
1365AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1366AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl
1367OFPST_TABLE request (OF1.2) (xid=0x2):
1368])
1369AT_CLEANUP
1370
2e1ae200
JR
1371AT_SETUP([OFPST_TABLE request - OF1.3])
1372AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1373AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl
1374OFPST_TABLE request (OF1.3) (xid=0x2):
1375])
1376AT_CLEANUP
1377
26df8b3e 1378AT_SETUP([OFPST_TABLE reply - OF1.0])
fec00620
BP
1379AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1380AT_CHECK([ovs-ofctl ofp-print "\
138101 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
138263 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
138300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
138400 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
138500 00 00 00 00 00 00 00 00 00 00 00 \
1386"], [0], [dnl
1387OFPST_TABLE reply (xid=0x1): 1 tables
1388 0: classifier: wild=0x3fffff, max=1048576, active=11
1389 lookup=0, matched=0
1390])
1391AT_CLEANUP
1392
26df8b3e
SH
1393AT_SETUP([OFPST_TABLE reply - OF1.2])
1394AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1395(mid="wild=0xfffffffff, max=1000000,"
1396 tail="
1397 match=0xfffffffff, instructions=0x00000007, config=0x00000000
1398 write_actions=0x00000000, apply_actions=0x00000000
1399 write_setfields=0x0000000fffffffff
1400 apply_setfields=0x0000000fffffffff
1401 metadata_match=0x0000000000000000
1402 metadata_write=0x0000000000000000"
1403 echo "OFPST_TABLE reply (OF1.2) (xid=0x2): 255 tables
1404 0: classifier: $mid active=1
1405 lookup=74614, matched=106024$tail"
1406 x=1
1407 while test $x -lt 254; do
1408 printf " %d: %-8s: $mid active=0
1409 lookup=0, matched=0$tail
1410" $x table$x
1411 x=`expr $x + 1`
1412 done
1413 echo " 254: table254: $mid active=2
1414 lookup=0, matched=0$tail") > expout
1415
1416(pad32="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
1417 pad7="00 00 00 00 00 00 00 "
1418 mid="00 00 00 0f ff ff ff ff \
141900 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \
142000 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \
142100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
142200 00 00 07 00 00 00 00 00 0f 42 40 "
1423 tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
1424
1425 echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 "
1426
1427 x=0
1428 printf "%02x $pad7" $x
1429 printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1430 echo -n "$mid 00 00 00 01 "
1431 echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 "
1432
1433 x=1
1434 while test $x -lt 254; do
1435 printf "%02x $pad7" $x
1436 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1437 echo -n "$mid 00 00 00 00 $tail "
1438 x=`expr $x + 1`
1439 done
1440
1441 x=254
1442 printf "%02x $pad7" $x
1443 printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' '
1444 echo -n "$mid 00 00 00 02 $tail") > in
1445AT_CHECK([ovs-ofctl ofp-print "$(cat in)"], [0], [expout])
1446AT_CLEANUP
1447
2e1ae200
JR
1448AT_SETUP([OFPST_TABLE reply - OF1.3])
1449AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1450AT_CHECK([ovs-ofctl ofp-print "\
145104 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \
145200 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \
145300 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \
145400 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \
1455"], [0], [dnl
1456OFPST_TABLE reply (OF1.3) (xid=0x1): 2 tables
1457 0: active=11, lookup=512, matched=256
1458 1: active=12, lookup=513, matched=257
1459])
1460AT_CLEANUP
1461
f8e4867e 1462AT_SETUP([OFPST_PORT request - 1.0])
fec00620
BP
1463AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1464AT_CHECK([ovs-ofctl ofp-print "\
146501 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
146600 00 00 00 \
1467"], [0], [dnl
e1db42d6 1468OFPST_PORT request (xid=0x1): port_no=ANY
fec00620
BP
1469])
1470AT_CLEANUP
1471
f8e4867e
SH
1472AT_SETUP([OFPST_PORT request - 1.1])
1473AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1474AT_CHECK([ovs-ofctl ofp-print "\
147502 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1476ff ff ff ff 00 00 00 00 \
1477"], [0], [dnl
e1db42d6 1478OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY
f8e4867e
SH
1479])
1480AT_CLEANUP
1481
1482AT_SETUP([OFPST_PORT request - 1.2])
1483AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1484AT_CHECK([ovs-ofctl ofp-print "\
148503 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1486ff ff ff ff 00 00 00 00 \
1487"], [0], [dnl
e1db42d6 1488OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY
f8e4867e
SH
1489])
1490AT_CLEANUP
1491
2e1ae200
JR
1492AT_SETUP([OFPST_PORT request - 1.3])
1493AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1494AT_CHECK([ovs-ofctl ofp-print "\
149504 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \
1496ff ff ff ff 00 00 00 00 \
1497"], [0], [dnl
e1db42d6 1498OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY
2e1ae200
JR
1499])
1500AT_CLEANUP
1501
f8e4867e 1502AT_SETUP([OFPST_PORT reply - OF1.0])
fec00620
BP
1503AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1504AT_CHECK([ovs-ofctl ofp-print "\
150501 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
150600 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
150700 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
150800 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
150900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151200 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
151300 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
151400 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
151500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
151800 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
151900 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
152000 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
152100 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
152200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152500 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
152600 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
152700 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
152800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
152900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
153100 00 00 00 00 00 00 00 00 00 00 00 \
1532"], [0], [dnl
1533OFPST_PORT reply (xid=0x1): 4 ports
1534 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
1535 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
e1db42d6 1536 port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
fec00620
BP
1537 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
1538 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
1539 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
1540 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
1541 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
1542])
1543AT_CLEANUP
1544
f8e4867e
SH
1545AT_SETUP([OFPST_PORT reply - OF1.2])
1546AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1547AT_CHECK([ovs-ofctl ofp-print "\
154803 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \
154900 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
155000 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
155100 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
155200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155500 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \
155600 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
155700 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
155800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
155900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156200 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
156300 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
156400 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
156500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
156800 00 00 00 00 00 00 00 \
1569"], [0], [dnl
1570OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports
1571 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1572 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
e1db42d6 1573 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
f8e4867e
SH
1574 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1575 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1576 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1577])
1578AT_CLEANUP
1579
65e0be10
BP
1580AT_SETUP([OFPST_PORT reply - OF1.3])
1581AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1582AT_CHECK([ovs-ofctl ofp-print "\
158304 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \
158400 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \
158500 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \
158600 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \
158700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
158900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159000 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \
1591ff ff ff fe 00 00 00 00 \
159200 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \
159300 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \
159400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
159700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1598ff ff ff ff ff ff ff ff \
159900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \
160000 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \
160100 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \
160200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
160500 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \
1606"], [0], [dnl
1607OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
1608 port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0
1609 tx pkts=136, bytes=11512, drop=0, errs=0, coll=0
1610 duration=1.001s
1611 port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1612 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1613 port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0
1614 tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0
1615 duration=0.123s
1616])
1617AT_CLEANUP
1618
64626975 1619AT_SETUP([OFPST_QUEUE request - OF1.0])
fec00620
BP
1620AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1621AT_CHECK([ovs-ofctl ofp-print "\
162201 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
1623ff ff ff ff \
1624"], [0], [dnl
7f05e7ab 1625OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL
fec00620
BP
1626])
1627AT_CLEANUP
1628
64626975
SH
1629AT_SETUP([OFPST_QUEUE request - OF1.1])
1630AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1631AT_CHECK([ovs-ofctl ofp-print "\
163202 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1633ff ff ff ff ff ff ff ff \
64626975 1634"], [0], [dnl
7f05e7ab 1635OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL
64626975
SH
1636])
1637AT_CLEANUP
1638
1639AT_SETUP([OFPST_QUEUE request - OF1.2])
1640AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1641AT_CHECK([ovs-ofctl ofp-print "\
164203 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
7f05e7ab 1643ff ff ff ff ff ff ff ff \
64626975 1644"], [0], [dnl
7f05e7ab 1645OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL
64626975
SH
1646])
1647AT_CLEANUP
1648
2e1ae200
JR
1649AT_SETUP([OFPST_QUEUE request - OF1.3])
1650AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1651AT_CHECK([ovs-ofctl ofp-print "\
165204 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \
1653ff ff ff ff ff ff ff ff \
1654"], [0], [dnl
1655OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL
1656])
1657AT_CLEANUP
1658
64626975 1659AT_SETUP([OFPST_QUEUE reply - OF1.0])
fec00620
BP
1660AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1661AT_CHECK([ovs-ofctl ofp-print "\
166201 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
166300 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
166400 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
166500 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
166600 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
166700 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
166800 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
166900 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
167000 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
167100 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
167200 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
167300 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
167400 00 00 00 00 00 00 00 00 00 00 00 \
1675"], [0], [dnl
1676OFPST_QUEUE reply (xid=0x1): 6 queues
6dc34a0d
BP
1677 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1678 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1679 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1680 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1681 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1682 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
fec00620
BP
1683])
1684AT_CLEANUP
1685
64626975
SH
1686AT_SETUP([OFPST_QUEUE reply - OF1.1])
1687AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1688AT_CHECK([ovs-ofctl ofp-print "\
168902 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
169000 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
169100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
169200 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
169300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
169400 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
169500 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
169600 00 00 02 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 01 00 00 00 01 00 00 00 00 00 00 00 00 \
169900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
170000 00 00 01 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 \
1702"], [0], [dnl
1703OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues
6dc34a0d
BP
1704 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1705 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1706 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1707 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1708 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1709 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1710])
1711AT_CLEANUP
1712
1713AT_SETUP([OFPST_QUEUE reply - OF1.2])
1714AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1715AT_CHECK([ovs-ofctl ofp-print "\
171603 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \
171700 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
171800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
171900 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
172000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172100 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
172200 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
172300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
172400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
172600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
172700 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
172800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1729"], [0], [dnl
1730OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues
6dc34a0d
BP
1731 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=?
1732 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=?
1733 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=?
1734 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=?
1735 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=?
1736 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
1737])
1738AT_CLEANUP
be0c30df
BP
1739
1740AT_SETUP([OFPST_QUEUE reply - OF1.3])
1741AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1742AT_CHECK([ovs-ofctl ofp-print "\
174304 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \
174400 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \
174500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \
174600 00 00 64 1d cd 65 00 \
174700 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \
174800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
174900 00 00 64 1d cd 65 00 \
175000 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \
175100 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \
175200 00 00 64 1d cd 65 00 \
175300 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \
175400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175500 00 00 64 1d cd 65 00 \
175600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
175700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
175800 00 00 64 1d cd 65 00 \
175900 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \
176000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
1761ff ff ff ff ff ff ff ff \
1762"], [0], [dnl
1763OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues
b1634591
BP
1764 port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s
1765 port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1766 port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s
1767 port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s
1768 port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s
6dc34a0d 1769 port 1 queue 2: bytes=0, pkts=0, errors=0, duration=?
64626975
SH
1770])
1771AT_CLEANUP
1772
7395c052
NZ
1773AT_SETUP([OFPST_GROUP request])
1774AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1775AT_CHECK([ovs-ofctl ofp-print "\
177602 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \
1777ff ff ff ff 00 00 00 00 \
1778"], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY
1779])
1780AT_CLEANUP
1781
1782AT_SETUP([OFPST_GROUP reply - OF1.1])
1783AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1784AT_CHECK([ovs-ofctl ofp-print "\
178502 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \
178600 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
178700 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
178800 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
178900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
179000 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
179100 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
179200 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
179300 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
179400 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1795"], [0], [dnl
1796OFPST_GROUP reply (OF1.1) (xid=0x2):
1797 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
1798 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
1799])
1800AT_CLEANUP
1801
1802AT_SETUP([OFPST_GROUP reply - OF1.3])
1803AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1804AT_CHECK([ovs-ofctl ofp-print "\
180504 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \
180600 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \
180700 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
180800 00 00 12 1d cd 65 00 \
180900 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
181000 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
181100 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \
181200 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \
181300 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \
181400 00 00 10 1d cd 65 00 \
181500 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
181600 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \
1817"], [0], [dnl
1818OFPST_GROUP reply (OF1.3) (xid=0x2):
b1634591
BP
1819 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
1820 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
1821])
1822AT_CLEANUP
1823
1824AT_SETUP([OFPST_GROUP_DESC request])
1825AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1826AT_CHECK([ovs-ofctl ofp-print "\
182702 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \
1828"], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2):
1829])
1830AT_CLEANUP
1831
1832AT_SETUP([OFPST_GROUP_DESC reply])
1833AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1834AT_CHECK([ovs-ofctl ofp-print "\
183502 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \
183600 68 01 00 00 00 20 00 \
183700 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
183800 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
183900 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
184000 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
184100 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
184200 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
1843"], [0], [dnl
1844OFPST_GROUP_DESC reply (OF1.1) (xid=0x2):
1845 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
1846])
1847AT_CLEANUP
1848
1849AT_SETUP([OFPST_GROUP_FEATURES request])
1850AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1851AT_CHECK([ovs-ofctl ofp-print "\
185203 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \
1853"], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2):
1854])
1855AT_CLEANUP
1856
1857AT_SETUP([OFPST_GROUP_FEATURES reply])
1858AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1859AT_CHECK([ovs-ofctl ofp-print "\
186003 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \
186100 00 00 0f 00 00 00 0f \
186200 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \
186300 00 00 01 00 00 00 03 00 00 00 07 00 00 00 0f \
1864"], [0], [dnl
1865OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2):
1866 Group table:
1867 Types: 0xf
1868 Capabilities: 0xf
1869 All group :
1870 max_groups = 0x1 actions=0x00000001
1871 Select group :
1872 max_groups = 0x2 actions=0x00000003
1873 Indirect group :
1874 max_groups = 0x3 actions=0x00000007
1875 Fast Failover group :
1876 max_groups = 0x4 actions=0x0000000f
1877])
1878AT_CLEANUP
1879
1880AT_SETUP([OFPST_PORT_DESC request - OF1.0])
1881AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1882AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
1883OFPST_PORT_DESC request (xid=0x1):
1884])
1885AT_CLEANUP
1886
2be393ed
JP
1887AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
1888AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1889AT_CHECK([ovs-ofctl ofp-print "\
189001 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
189100 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
189200 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
189300 00 02 8f 00 00 02 8f 00 00 00 00 \
1894"], [0], [dnl
1895OFPST_PORT_DESC reply (xid=0x0):
1896 3(eth0): addr:50:54:00:00:00:01
1897 config: PORT_DOWN
1898 state: LINK_DOWN
1899 current: 100MB-FD AUTO_NEG
1900 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1901 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1902 speed: 100 Mbps now, 100 Mbps max
1903])
1904AT_CLEANUP
1905
8c3cc785
BP
1906AT_SETUP([OFPST_PORT_DESC reply - OF1.4])
1907AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1908AT_CHECK([ovs-ofctl ofp-print "\
190905 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \
191000 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \
191165 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
191200 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \
191300 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \
191400 01 86 a0 00 01 86 a0 \
1915"], [0], [dnl
1916OFPST_PORT_DESC reply (OF1.4) (xid=0x2):
1917 3(eth0): addr:50:54:00:00:00:01
1918 config: 0
1919 state: 0
1920 current: 100MB-FD AUTO_NEG
1921 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1922 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
1923 speed: 100 Mbps now, 100 Mbps max
1924])
1925AT_CLEANUP
1926
638a19b0
JR
1927AT_SETUP([OFPT_METER_MOD request - OF1.3])
1928AT_KEYWORDS([ofp-print])
1929AT_CHECK([ovs-ofctl ofp-print "\
193004 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \
193100 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \
1932"], [0], [dnl
1933OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands=
1934type=drop rate=1024 burst_size=128
1935])
1936AT_CLEANUP
1937
f99d6aa0
BP
1938AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3])
1939AT_KEYWORDS([ofp-print])
1940AT_CHECK([ovs-ofctl ofp-print "\
194104 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01
194200 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00
1943"], [0], [dnl
1944OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND***
1945])
1946AT_CLEANUP
1947
142cdb01
BP
1948AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3])
1949AT_KEYWORDS([ofp-print])
1950AT_CHECK([ovs-ofctl ofp-print "\
195104 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01
1952"], [0], [dnl
1953OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND***
1954])
1955AT_CLEANUP
1956
13b1febe
BP
1957AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3])
1958AT_KEYWORDS([ofp-print])
1959AT_CHECK([ovs-ofctl ofp-print "\
196004 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \
196100 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \
1962"], [0], [dnl
1963OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS***
1964])
1965AT_CLEANUP
1966
638a19b0
JR
1967AT_SETUP([OFPST_METER request - OF1.3])
1968AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1969AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl
1970OFPST_METER request (OF1.3) (xid=0x2): meter=1
1971])
1972AT_CLEANUP
1973
1974AT_SETUP([OFPST_METER_CONFIG request - OF1.3])
1975AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1976AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl
1977OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1
1978])
1979AT_CLEANUP
1980
1981AT_SETUP([OFPST_METER_FEATURES request - OF1.3])
1982AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1983AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl
1984OFPST_METER_FEATURES request (OF1.3) (xid=0x2):
1985])
1986AT_CLEANUP
1987
1988AT_SETUP([OFPST_METER_FEATURES reply - OF1.3])
1989AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1990AT_CHECK([ovs-ofctl ofp-print "\
199104 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \
6e055a6c 199200 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \
638a19b0
JR
1993"], [0], [dnl
1994OFPST_METER_FEATURES reply (OF1.3) (xid=0x2):
1995max_meter:65536 max_bands:16 max_color:2
1996band_types: drop dscp_remark
1997capabilities: kbps pktps burst stats
1998])
1999AT_CLEANUP
2000
2001AT_SETUP([OFPST_METER_CONFIG reply - OF1.3])
2002AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2003AT_CHECK([ovs-ofctl ofp-print "\
200404 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \
200500 28 00 05 00 00 00 01 \
200600 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \
200700 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \
200800 18 00 09 00 00 00 02 \
200900 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \
2010"], [0], [dnl
2011OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
2012meter=1 kbps burst bands=
2013type=drop rate=65536 burst_size=1280
2014type=dscp_remark rate=1048576 burst_size=61440 prec_level=0
2015
2016meter=2 kbps stats bands=
2017type=drop rate=131072
2018])
2019AT_CLEANUP
2020
2021AT_SETUP([OFPST_METER reply - OF1.3])
2022AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2023AT_CHECK([ovs-ofctl ofp-print "\
202404 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \
202500 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \
202600 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \
0445637d 202700 00 01 8a 0a 6e 23 44 \
638a19b0
JR
202800 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \
202900 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \
203000 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \
203100 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \
0445637d 203200 00 01 87 0a 23 6e 44 \
638a19b0
JR
203300 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \
2034"], [0], [dnl
2035OFPST_METER reply (OF1.3) (xid=0x2):
0445637d 2036meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands:
638a19b0
JR
20370: packet_count:126 byte_count:13363
20381: packet_count:231 byte_count:37934
2039
0445637d 2040meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands:
638a19b0
JR
20410: packet_count:42 byte_count:1075
2042])
2043AT_CLEANUP
2044
5deff5aa
AW
2045AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3])
2046AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2047AT_CHECK([ovs-ofctl ofp-print "\
204804 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \
204909 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \
205000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
205100 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \
2052ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \
205300 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
205400 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
205500 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
205600 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \
205700 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \
205800 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \
205900 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \
20600d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \
20611d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \
20622d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \
20633d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \
20644d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \
20655d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \
20666d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \
20677d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \
20688d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \
20699d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \
2070ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \
2071bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \
2072cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \
2073dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \
2074ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \
2075fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \
207605 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \
207715 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \
207825 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \
207935 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \
208045 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \
208155 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \
208265 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \
208375 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \
208485 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \
208595 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \
2086a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \
2087b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \
2088c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \
2089d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \
2090e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \
2091f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \
209200 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
209300 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
209400 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
209500 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
209600 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
209700 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
209800 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
209900 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
210000 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \
210100 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
210200 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
210300 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
210400 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
210500 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
210600 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
210700 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
210800 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
210900 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \
211000 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \
211100 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \
211200 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \
211300 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \
211400 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \
211500 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \
211600 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \
211700 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \
211800 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \
211900 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \
212000 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \
212100 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \
212200 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \
212300 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \
212400 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \
212500 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \
212600 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
212780 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
212800 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
212900 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
213080 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
213180 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
213280 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
213380 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
213480 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
213580 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
213680 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
213780 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
213880 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
213980 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
214000 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \
214180 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
214200 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
214300 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
214480 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \
214580 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \
214680 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \
214780 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \
214880 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \
214980 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \
215080 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \
215180 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
215280 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \
215380 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \
215400 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
215580 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
215600 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
215700 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
215880 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
215980 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
216080 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
216180 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
216280 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
216380 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
216480 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \
216500 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
216680 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
216700 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
216800 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
216900 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
217080 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
217180 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
217200 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
217380 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
217480 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
217500 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \
217680 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \
217700 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \
217800 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \
217980 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \
218080 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \
218180 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \
218280 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \
218380 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \
218480 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \
218580 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \
218600 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \
218780 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \
218800 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \
218900 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \
219000 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \
219180 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \
219280 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \
219300 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \
219480 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \
219580 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \
2196"], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5):
2197 table 0:
2198 name="table0"
2199 metadata: match=0xffffffffffffffff write=0xffffffffffffffff
2200 config=Unknown
2201 max_entries=1000000
2202 instructions (table miss and others):
2203 next tables: 1-253
2204 instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table
2205 Write-Actions and Apply-Actions features:
2206 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
2207 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
2208 matching:
2209 tun_id: exact match or wildcard
2210 tun_src: exact match or wildcard
2211 tun_dst: exact match or wildcard
2212 metadata: exact match or wildcard
2213 in_port: exact match or wildcard
2214 in_port_oxm: exact match or wildcard
2215 pkt_mark: exact match or wildcard
2216 reg0: exact match or wildcard
2217 reg1: exact match or wildcard
2218 reg2: exact match or wildcard
2219 reg3: exact match or wildcard
2220 reg4: exact match or wildcard
2221 reg5: exact match or wildcard
2222 reg6: exact match or wildcard
2223 reg7: exact match or wildcard
2224 eth_src: exact match or wildcard
2225 eth_dst: exact match or wildcard
2226 eth_type: exact match or wildcard
2227 vlan_tci: exact match or wildcard
2228 vlan_vid: exact match or wildcard
2229 vlan_pcp: exact match or wildcard
2230 mpls_label: exact match or wildcard
2231 mpls_tc: exact match or wildcard
2232 mpls_bos: exact match or wildcard
2233 ip_src: exact match or wildcard
2234 ip_dst: exact match or wildcard
2235 ipv6_src: exact match or wildcard
2236 ipv6_dst: exact match or wildcard
2237 ipv6_label: exact match or wildcard
2238 nw_proto: exact match or wildcard
2239 nw_tos: exact match or wildcard
2240 ip_dscp: exact match or wildcard
2241 nw_ecn: exact match or wildcard
2242 nw_ttl: exact match or wildcard
2243 ip_frag: exact match or wildcard
2244 arp_op: exact match or wildcard
2245 arp_spa: exact match or wildcard
2246 arp_tpa: exact match or wildcard
2247 arp_sha: exact match or wildcard
2248 arp_tha: exact match or wildcard
2249 tcp_src: exact match or wildcard
2250 tcp_dst: exact match or wildcard
2251 tcp_flags: exact match or wildcard
2252 udp_src: exact match or wildcard
2253 udp_dst: exact match or wildcard
2254 sctp_src: exact match or wildcard
2255 sctp_dst: exact match or wildcard
2256 icmp_type: exact match or wildcard
2257 icmp_code: exact match or wildcard
2258 icmpv6_type: exact match or wildcard
2259 icmpv6_code: exact match or wildcard
2260 nd_target: exact match or wildcard
2261 nd_sll: exact match or wildcard
2262 nd_tll: exact match or wildcard
2263])
2264AT_CLEANUP
2265
58cf43df 2266AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0])
fec00620
BP
2267AT_KEYWORDS([ofp-print])
2268AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
2269OFPT_BARRIER_REQUEST (xid=0x1):
2270])
2271AT_CLEANUP
2272
58cf43df
SH
2273AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1])
2274AT_KEYWORDS([ofp-print])
2275AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl
2276OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1):
2277])
2278AT_CLEANUP
2279
2280AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2])
2281AT_KEYWORDS([ofp-print])
2282AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl
2283OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1):
2284])
2285AT_CLEANUP
2286
2e1ae200
JR
2287AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3])
2288AT_KEYWORDS([ofp-print])
2289AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl
2290OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1):
2291])
2292AT_CLEANUP
2293
58cf43df 2294AT_SETUP([OFPT_BARRIER_REPLY - OF1.0])
fec00620
BP
2295AT_KEYWORDS([ofp-print])
2296AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
2297OFPT_BARRIER_REPLY (xid=0x1):
2298])
2299AT_CLEANUP
2300
2e1ae200 2301AT_SETUP([OFPT_BARRIER_REPLY - OF1.1])
58cf43df
SH
2302AT_KEYWORDS([ofp-print])
2303AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl
2304OFPT_BARRIER_REPLY (OF1.1) (xid=0x1):
2305])
2306AT_CLEANUP
2307
2e1ae200 2308AT_SETUP([OFPT_BARRIER_REPLY - OF1.2])
58cf43df
SH
2309AT_KEYWORDS([ofp-print])
2310AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl
2311OFPT_BARRIER_REPLY (OF1.2) (xid=0x1):
2312])
2313AT_CLEANUP
2314
2e1ae200
JR
2315AT_SETUP([OFPT_BARRIER_REPLY - OF1.3])
2316AT_KEYWORDS([ofp-print])
2317AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl
2318OFPT_BARRIER_REPLY (OF1.3) (xid=0x1):
2319])
2320AT_CLEANUP
2321
e8f9a7bb
VG
2322AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0])
2323AT_KEYWORDS([ofp-print])
2324AT_CHECK([ovs-ofctl ofp-print "01 16 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl
2325OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1
2326])
2327AT_CLEANUP
2328
2329AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2])
2330AT_KEYWORDS([ofp-print])
2331AT_CHECK([ovs-ofctl ofp-print "\
233203 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl
2333OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1
2334])
2335AT_CLEANUP
2336
2337AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0])
2338AT_KEYWORDS([ofp-print])
2339AT_CHECK([ovs-ofctl ofp-print "01 17 00 40 00 00 00 01 \
234000 01 00 00 00 00 00 00 \
234100 00 55 55 00 28 00 00 \
234200 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
234300 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
234400 00 44 44 00 08 00 00 \
2345"], [0], [dnl
2346OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1
2347queue 21845: min_rate:50.0% max_rate:75.0%
2348queue 17476:
2349])
2350AT_CLEANUP
2351
2352AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2])
2353AT_KEYWORDS([ofp-print])
2354AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \
235500 00 00 01 00 00 00 00 \
235600 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \
235700 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \
235800 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \
235900 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \
2360"], [0], [dnl
2361OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1
2362queue 21845: min_rate:50.0% max_rate:75.0%
2363queue 17476:
2364])
2365AT_CLEANUP
2e1ae200
JR
2366
2367AT_SETUP([OFPT_SET_ASYNC - OF1.3])
2368AT_KEYWORDS([ofp-print])
2369AT_CHECK([ovs-ofctl ofp-print "\
237004 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \
237100 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \
2372"], [0], [dnl
2373OFPT_SET_ASYNC (OF1.3) (xid=0x0):
2374 master:
2375 PACKET_IN: no_match invalid_ttl 12
2376 PORT_STATUS: add delete
2377 FLOW_REMOVED: (off)
2378
2379 slave:
2380 PACKET_IN: no_match action invalid_ttl 12
2381 PORT_STATUS: add delete modify
2382 FLOW_REMOVED: idle hard
2383])
2384AT_CLEANUP
2385
6ea4776b
JR
2386AT_SETUP([OFPT_ROLE_REQUEST - OF1.2])
2387AT_KEYWORDS([ofp-print])
2388AT_CHECK([ovs-ofctl ofp-print "\
238903 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \
239000 00 00 00 00 00 00 03 \
2391"], [0], [dnl
2392OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3
2393])
2394AT_CLEANUP
2395
2396AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2])
2397AT_KEYWORDS([ofp-print])
2398AT_CHECK([ovs-ofctl ofp-print "\
239903 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \
240000 00 00 00 00 00 00 00 \
2401"], [0], [dnl
2402OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange
2403])
2404AT_CLEANUP
2405
fec00620
BP
2406AT_SETUP([NXT_ROLE_REQUEST])
2407AT_KEYWORDS([ofp-print])
2408AT_CHECK([ovs-ofctl ofp-print "\
240901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
241000 00 00 01 \
2411"], [0], [dnl
2412NXT_ROLE_REQUEST (xid=0x2): role=master
2413])
2414AT_CLEANUP
2415
6ea4776b
JR
2416AT_SETUP([OFPT_ROLE_REPLY - OF1.2])
2417AT_KEYWORDS([ofp-print])
2418AT_CHECK([ovs-ofctl ofp-print "\
241903 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \
147cc9d3 242012 34 56 78 ab cd ef 90 \
6ea4776b 2421"], [0], [dnl
147cc9d3 2422OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360
6ea4776b
JR
2423])
2424AT_CLEANUP
2425
fec00620
BP
2426AT_SETUP([NXT_ROLE_REPLY])
2427AT_KEYWORDS([ofp-print])
2428AT_CHECK([ovs-ofctl ofp-print "\
242901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
243000 00 00 02 \
2431"], [0], [dnl
2432NXT_ROLE_REPLY (xid=0x2): role=slave
2433])
2434AT_CLEANUP
2435
00467f73
AC
2436AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4])
2437AT_KEYWORDS([ofp-print])
2438AT_CHECK([ovs-ofctl ofp-print "\
243905 1e 00 18 00 00 00 0a \
244000 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \
2441"], [0], [dnl
9620f50c 2442OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed
00467f73
AC
2443])
2444AT_CLEANUP
2445
2446AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4])
2447AT_KEYWORDS([ofp-print])
2448AT_CHECK([ovs-ofctl ofp-print "\
244905 1e 00 18 00 00 00 0a \
245000 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \
2451"], [0], [dnl
9620f50c 2452OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed
00467f73
AC
2453])
2454AT_CLEANUP
2455
2456AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4])
2457AT_KEYWORDS([ofp-print])
2458AT_CHECK([ovs-ofctl ofp-print "\
245905 1e 00 18 00 00 00 0a \
246000 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \
2461"], [0], [dnl
9620f50c 2462OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed
00467f73
AC
2463])
2464AT_CLEANUP
2465
54834960
EJ
2466AT_SETUP([NXT_SET_PACKET_IN])
2467AT_KEYWORDS([ofp-print])
2468AT_CHECK([ovs-ofctl ofp-print "\
246901 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
247000 00 00 01 \
2471"], [0], [dnl
2472NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
2473])
2474AT_CLEANUP
2475
2476AT_SETUP([NXT_PACKET_IN])
2477AT_KEYWORDS([ofp-print])
2478AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 247901 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 2480ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 248100 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
248220 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
248300 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
248400 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c 248500 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
42edbe39 2486ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
248780 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
248800 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 248900 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \
54834960
EJ
249031 6d 00 00 00 00 00 00 00 00 \
2491"], [0], [dnl
42edbe39 2492NXT_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 2493tcp,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
2494])
2495AT_CLEANUP
2496
b4ccee75
SH
2497AT_SETUP([NXT_PACKET_IN, with hex output of packet data])
2498AT_KEYWORDS([ofp-print])
2499AT_CHECK([ovs-ofctl ofp-print "\
250001 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
2501ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
250200 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
250320 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
250400 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
250500 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
250600 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
2507ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \
250880 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
250900 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
dc235f7f 251000 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \
b4ccee75
SH
251131 6d 00 00 00 00 00 00 00 00 \
2512" 3], [0], [dnl
2513NXT_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 2514tcp,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
251500000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50
251600000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53
251700000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00
dc235f7f 251800000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00
b4ccee75
SH
2519])
2520AT_CLEANUP
2521
80d5aefd
BP
2522AT_SETUP([NXT_SET_ASYNC_CONFIG])
2523AT_KEYWORDS([ofp-print])
2524AT_CHECK([ovs-ofctl ofp-print "\
252501 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
252600 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
252700 00 00 00 00 00 00 03 \
2528"], [0], [dnl
2529NXT_SET_ASYNC_CONFIG (xid=0x0):
2530 master:
2531 PACKET_IN: no_match invalid_ttl 12
2532 PORT_STATUS: add delete
2533 FLOW_REMOVED: (off)
2534
2535 slave:
2536 PACKET_IN: no_match action invalid_ttl 12
2537 PORT_STATUS: add delete modify
2538 FLOW_REMOVED: idle hard
2539])
2540AT_CLEANUP
2541
a7349929
BP
2542AT_SETUP([NXT_SET_CONTROLLER_ID])
2543AT_KEYWORDS([ofp-print])
2544AT_CHECK([ovs-ofctl ofp-print "\
254501 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
254600 00 00 00 00 00 00 7b \
2547"], [0], [dnl
2548NXT_SET_CONTROLLER_ID (xid=0x3): id=123
2549])
2550AT_CLEANUP
2551
2b07c8b1
BP
2552AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
2553AT_KEYWORDS([ofp-print])
2554AT_CHECK([ovs-ofctl ofp-print "\
255501 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
255601 02 30 40 \
2557"], [0], [dnl
2558NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
2559])
2560AT_CLEANUP
2561
2562AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
2563AT_KEYWORDS([ofp-print])
2564AT_CHECK([ovs-ofctl ofp-print "\
256501 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
2566"], [0], [dnl
2567NXT_FLOW_MONITOR_PAUSED (xid=0x3):
2568])
2569AT_CLEANUP
2570
2571AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
2572AT_KEYWORDS([ofp-print])
2573AT_CHECK([ovs-ofctl ofp-print "\
257401 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
2575"], [0], [dnl
2576NXT_FLOW_MONITOR_RESUMED (xid=0x3):
2577])
2578AT_CLEANUP
2579
fec00620
BP
2580AT_SETUP([NXT_SET_FLOW_FORMAT])
2581AT_KEYWORDS([ofp-print])
2582AT_CHECK([ovs-ofctl ofp-print "\
258301 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
258400 00 00 02 \
2585"], [0], [dnl
2586NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
2587])
2588AT_CLEANUP
2589
2590# The flow is formatted with cls_rule_format() for the low-verbosity case.
2591AT_SETUP([NXT_FLOW_MOD, low verbosity])
2592AT_KEYWORDS([ofp-print])
2593AT_CHECK([ovs-ofctl ofp-print "\
259401 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
259500 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2596ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
259700 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
259800 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
259900 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2600" 2], [0], [dnl
de0f16bc 2601NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
2602])
2603AT_CLEANUP
2604
eec25dc1
BP
2605# The flow is formatted with ofp10_match_to_string() for the
2606# low-verbosity case.
fec00620
BP
2607AT_SETUP([NXT_FLOW_MOD, high verbosity])
2608AT_KEYWORDS([ofp-print])
2609AT_CHECK([ovs-ofctl ofp-print "\
261001 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
261100 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 2612ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
261300 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
261400 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
261500 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
2616" 3], [0], [dnl
de0f16bc 2617NXT_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
2618])
2619AT_CLEANUP
2620
7395c052
NZ
2621AT_SETUP([OFPT_GROUP_MOD])
2622AT_KEYWORDS([ofp-print])
2623AT_CHECK([ovs-ofctl ofp-print "\
262402 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \
262500 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \
262600 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \
262700 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \
262800 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \
262900 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \
263000 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
2631"], [0], [dnl
2632OFPT_GROUP_MOD (OF1.1) (xid=0x11223344):
2633 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
2634])
2635AT_CLEANUP
2636
fec00620
BP
2637AT_SETUP([NXT_FLOW_REMOVED])
2638AT_KEYWORDS([ofp-print])
2639AT_CHECK([ovs-ofctl ofp-print "\
264001 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
745bfd5e 264100 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \
fec00620
BP
264201 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
264300 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
264402 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
264500 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
26461e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
2647c0 a8 00 02 00 00 00 00 \
2648"], [0], [dnl
745bfd5e 2649NXT_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
2650])
2651AT_CLEANUP
2652
a1a7d333
BP
2653AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
2654AT_KEYWORDS([ofp-print])
2655AT_CHECK([ovs-ofctl ofp-print "\
265601 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
265701 00 00 00 00 00 00 00 \
2658"], [0], [dnl
2659NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
2660])
2661AT_CLEANUP
2662
fec00620
BP
2663AT_SETUP([NXST_FLOW request])
2664AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2665AT_CHECK([ovs-ofctl ofp-print "\
266601 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
266700 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2668"], [0], [dnl
54ae6fa8 2669NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
2670])
2671AT_CLEANUP
2672
2673AT_SETUP([NXST_FLOW reply])
2674AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2675AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 267601 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
267700 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
267802 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
267900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
268000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
268102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
268200 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
26830a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2684a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
268514 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
268600 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 268700 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
268800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
268900 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
269000 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
269100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2692a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
269300 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
269400 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 269533 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
269600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
269700 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
269802 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
269900 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27000a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2701a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
270214 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
270300 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 270400 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
270500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
270600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
270700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
270800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2709a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
271000 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
271100 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 271234 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
271300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
271400 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
271502 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
271600 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27170a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2718a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
271914 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
272000 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
272100 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
272200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
272300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
272400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
272500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2726a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
272700 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
272800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
272902 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
273000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
273100 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
273202 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
273300 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27340a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2735a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
273614 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
273700 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
273800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
273900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
274000 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
274100 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
274200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2743a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
274400 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
274500 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
274627 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
274700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
274800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
274902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
275000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27510a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2752a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
275314 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
275400 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
275500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
275600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
275700 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
275800 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
275900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2760a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
276100 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
276200 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
27630a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
276400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
276500 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
276602 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
276700 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27680a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
2769a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
277014 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
277100 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
277200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
277300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
277400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
277500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
277600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2777a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
277800 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
277900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
278004 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
278100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
278200 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
278302 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
278400 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
27850a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
2786a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
278714 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
278800 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
278900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
279000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
279100 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
279200 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
279300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
2794a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
279500 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
279600 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
27972e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
279800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
279900 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
280000 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
2801ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
280200 00 00 00 00 00 00 05 \
05b8f1c2
BP
280300 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
280400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
280500 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
2806"], [0],
2807[[NXST_FLOW reply (xid=0x4):
b9718b7b 2808 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 2809 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
2810 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
2811 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 2812 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 2813 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 2814 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
2815 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
2816 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
2817 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
2818 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
2819 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
2820 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
2821 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
2822 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 2823 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
2824]])
2825AT_CLEANUP
2826
2827AT_SETUP([NXST_AGGREGATE request])
2828AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
2829AT_CHECK([ovs-ofctl ofp-print "\
283001 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
283100 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
2832"], [0], [dnl
54ae6fa8 2833NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
2834])
2835AT_CLEANUP
2836
2837AT_SETUP([NXST_AGGREGATE reply])
2838AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2839AT_CHECK([ovs-ofctl ofp-print "\
284001 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
284100 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
284200 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
2843"], [0], [dnl
2844NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
2845])
2846AT_CLEANUP
2b07c8b1
BP
2847
2848AT_SETUP([NXST_FLOW_MONITOR request])
2849AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2850AT_CHECK([ovs-ofctl ofp-print "\
285101 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
285200 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
285300 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
2854"], [0], [dnl
2855NXST_FLOW_MONITOR request (xid=0x4):
2856 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
2857 id=8192 flags=delete table=2 in_port=1
2858])
2859AT_CLEANUP
2860
2861AT_SETUP([NXST_FLOW_MONITOR reply])
2862AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
2863AT_CHECK([ovs-ofctl ofp-print "\
286401 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
99f837f8 286500 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
286600 00 00 02 00 01 00 00 \
286700 08 00 03 00 01 86 a0 \
2868"], [0], [dnl
2869NXST_FLOW_MONITOR reply (xid=0x4):
2870 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
2871 event=ABBREV xid=0x186a0
2872])
2873AT_CLEANUP
777af88d
AC
2874
2875
2876AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2877AT_KEYWORDS([ofp-print])
2878AT_CHECK([ovs-ofctl ofp-print "\
287905 21 00 10 00 00 00 00 \
288000 00 00 01 00 00 00 01 \
2881"], [0], [dnl
2882OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2883 bundle_id=0x1 type=OPEN_REQUEST flags=atomic
2884])
2885AT_CLEANUP
2886
2887AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2888AT_KEYWORDS([ofp-print])
2889AT_CHECK([ovs-ofctl ofp-print "\
289005 21 00 10 00 00 00 00 \
289100 00 00 01 00 00 00 02 \
2892"], [0], [dnl
2893OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2894 bundle_id=0x1 type=OPEN_REQUEST flags=ordered
2895])
2896AT_CLEANUP
2897
2898AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REQUEST])
2899AT_KEYWORDS([ofp-print])
2900AT_CHECK([ovs-ofctl ofp-print "\
290105 21 00 10 00 00 00 00 \
290200 00 00 01 00 00 00 03 \
2903"], [0], [dnl
2904OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2905 bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered
2906])
2907AT_CLEANUP
2908
2909AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY])
2910AT_KEYWORDS([ofp-print])
2911AT_CHECK([ovs-ofctl ofp-print "\
291205 21 00 10 00 00 00 00 \
291300 00 00 01 00 01 00 01 \
2914"], [0], [dnl
2915OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2916 bundle_id=0x1 type=OPEN_REPLY flags=atomic
2917])
2918AT_CLEANUP
2919
2920AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST])
2921AT_KEYWORDS([ofp-print])
2922AT_CHECK([ovs-ofctl ofp-print "\
292305 21 00 10 00 00 00 00 \
292400 00 00 01 00 02 00 01 \
2925"], [0], [dnl
2926OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2927 bundle_id=0x1 type=CLOSE_REQUEST flags=atomic
2928])
2929AT_CLEANUP
2930
2931AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY])
2932AT_KEYWORDS([ofp-print])
2933AT_CHECK([ovs-ofctl ofp-print "\
293405 21 00 10 00 00 00 00 \
293500 00 00 01 00 03 00 01 \
2936"], [0], [dnl
2937OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2938 bundle_id=0x1 type=CLOSE_REPLY flags=atomic
2939])
2940AT_CLEANUP
2941
2942AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST])
2943AT_KEYWORDS([ofp-print])
2944AT_CHECK([ovs-ofctl ofp-print "\
294505 21 00 10 00 00 00 00 \
294600 00 00 01 00 04 00 01 \
2947"], [0], [dnl
2948OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2949 bundle_id=0x1 type=COMMIT_REQUEST flags=atomic
2950])
2951AT_CLEANUP
2952
2953AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY])
2954AT_KEYWORDS([ofp-print])
2955AT_CHECK([ovs-ofctl ofp-print "\
295605 21 00 10 00 00 00 00 \
295700 00 00 01 00 05 00 01 \
2958"], [0], [dnl
2959OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2960 bundle_id=0x1 type=COMMIT_REPLY flags=atomic
2961])
2962AT_CLEANUP
2963
2964AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST])
2965AT_KEYWORDS([ofp-print])
2966AT_CHECK([ovs-ofctl ofp-print "\
296705 21 00 10 00 00 00 00 \
296800 00 00 01 00 06 00 01 \
2969"], [0], [dnl
2970OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2971 bundle_id=0x1 type=DISCARD_REQUEST flags=atomic
2972])
2973AT_CLEANUP
2974
2975AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY])
2976AT_KEYWORDS([ofp-print])
2977AT_CHECK([ovs-ofctl ofp-print "\
297805 21 00 10 00 00 00 00 \
297900 00 00 01 00 07 00 01 \
2980"], [0], [dnl
2981OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0):
2982 bundle_id=0x1 type=DISCARD_REPLY flags=atomic
2983])
2984AT_CLEANUP
2985
2986AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - OFPT_HELLO])
2987AT_KEYWORDS([ofp-print])
2988AT_CHECK([ovs-ofctl ofp-print "\
298905 22 00 20 00 00 00 00 \
299000 00 00 01 00 01 00 01 02 00 00 08 00 00 00 00 \
299100 00 00 00 00 00 00 00 \
2992"], [0], [dnl
2993OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0):
2994 bundle_id=0x1 flags=atomic
2995OFPT_HELLO (OF1.1) (xid=0x0):
2996 version bitmap: 0x01, 0x02
2997])
2998AT_CLEANUP