]>
Commit | Line | Data |
---|---|---|
fec00620 BP |
1 | AT_BANNER([ofp-print]) |
2 | ||
3 | AT_SETUP([empty]) | |
4 | AT_KEYWORDS([ofp-print]) | |
5 | AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty | |
6 | ]) | |
7 | AT_CLEANUP | |
8 | ||
9 | AT_SETUP([too short]) | |
10 | AT_KEYWORDS([ofp-print]) | |
11 | AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl | |
12 | OpenFlow packet too short (only 2 bytes): | |
13 | 00000000 aa bb |.. | | |
14 | ]) | |
15 | AT_CLEANUP | |
16 | ||
17 | AT_SETUP([wrong OpenFlow version]) | |
18 | AT_KEYWORDS([ofp-print]) | |
90bf1e07 BP |
19 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011], |
20 | [0], [dnl | |
21 | ***decode error: OFPBRC_BAD_TYPE*** | |
22 | 00000000 00 bb 00 08 ee ff 00 11- |........ | | |
982697a4 | 23 | ], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187) |
fec00620 BP |
24 | ]) |
25 | AT_CLEANUP | |
26 | ||
27 | AT_SETUP([truncated message]) | |
28 | AT_KEYWORDS([ofp-print]) | |
f25b4a81 | 29 | AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl |
fec00620 | 30 | (***truncated to 8 bytes from 52445***) |
f25b4a81 | 31 | 00000000 01 10 cc dd ee ff 00 11- |........ | |
fec00620 BP |
32 | ]) |
33 | AT_CLEANUP | |
34 | ||
35 | AT_SETUP([message only uses part of buffer]) | |
36 | AT_KEYWORDS([ofp-print]) | |
f25b4a81 | 37 | AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl |
fec00620 | 38 | (***only uses 9 bytes out of 10***) |
f25b4a81 | 39 | 00000000 01 10 00 09 ee ff 00 11-22 33 |........"3 | |
fec00620 BP |
40 | ]) |
41 | # " | |
42 | AT_CLEANUP | |
43 | ||
44 | AT_SETUP([OFPT_HELLO - ordinary]) | |
45 | AT_KEYWORDS([ofp-print]) | |
46 | AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl | |
47 | OFPT_HELLO (xid=0x0): | |
de6c85b0 | 48 | version bitmap: 0x01 |
fec00620 BP |
49 | ]) |
50 | AT_CLEANUP | |
51 | ||
52 | AT_SETUP([OFPT_HELLO with extra data]) | |
53 | AT_KEYWORDS([ofp-print]) | |
54 | AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0], | |
55 | [dnl | |
56 | OFPT_HELLO (xid=0x0): | |
de6c85b0 SH |
57 | version bitmap: 0x01 |
58 | unknown data in hello: | |
59 | 00000000 01 00 00 13 00 00 00 00-65 78 74 72 61 20 64 61 |........extra da| | |
60 | 00000010 74 61 0a |ta. | | |
61 | ]) | |
62 | AT_CLEANUP | |
63 | ||
64 | AT_SETUP([OFPT_HELLO with version bitmap]) | |
65 | AT_KEYWORDS([ofp-print]) | |
66 | AT_CHECK([ovs-ofctl ofp-print "01 00 00 10 00 00 00 00 00 01 00 08 00 00 00 f0"], [0], | |
67 | [dnl | |
68 | OFPT_HELLO (xid=0x0): | |
69 | version bitmap: 0x04, 0x05, 0x06, 0x07 | |
70 | ]) | |
71 | AT_CLEANUP | |
72 | ||
73 | AT_SETUP([OFPT_HELLO with version bitmap and extra data]) | |
74 | AT_KEYWORDS([ofp-print]) | |
75 | AT_CHECK([ovs-ofctl ofp-print "\ | |
76 | 01 00 00 1b 00 00 00 00 ff ff 00 06 01 02 00 00 \ | |
77 | 00 01 00 08 00 00 00 f0 61 62 63"], [0], | |
78 | [dnl | |
79 | OFPT_HELLO (xid=0x0): | |
80 | version bitmap: 0x04, 0x05, 0x06, 0x07 | |
81 | unknown data in hello: | |
82 | 00000000 01 00 00 1b 00 00 00 00-ff ff 00 06 01 02 00 00 |................| | |
83 | 00000010 00 01 00 08 00 00 00 f0-61 62 63 |........abc | | |
fec00620 BP |
84 | ]) |
85 | AT_CLEANUP | |
86 | ||
681ea7a0 BP |
87 | AT_SETUP([OFPT_HELLO with higher than supported version]) |
88 | AT_KEYWORDS([ofp-print]) | |
89 | AT_CHECK([ovs-ofctl ofp-print "0f 00 00 08 00 00 00 00"], [0], | |
90 | [dnl | |
91 | OFPT_HELLO (OF 0x0f) (xid=0x0): | |
92 | version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f | |
93 | ]) | |
94 | AT_CHECK([ovs-ofctl ofp-print "40 00 00 08 00 00 00 00"], [0], | |
95 | [dnl | |
96 | OFPT_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 | ]) | |
99 | AT_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 | |
101 | OFPT_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 | ]) | |
104 | AT_CLEANUP | |
105 | ||
106 | AT_SETUP([OFPT_HELLO with contradictory version bitmaps]) | |
107 | AT_KEYWORDS([ofp-print]) | |
108 | dnl Bitmap claims support for no versions at all. | |
109 | AT_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: | |
113 | 00000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 00 |................| | |
114 | ], [dnl | |
115 | ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f) | |
116 | ]) | |
117 | dnl Bitmap claims support for only versions above 0x1f. | |
118 | AT_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: | |
122 | 00000000 3f 00 00 18 00 00 00 00-00 01 00 0c 00 00 00 00 |?...............| | |
123 | 00000010 aa aa aa aa 00 00 00 00- |........ | | |
124 | ], [dnl | |
125 | ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f) | |
126 | ]) | |
127 | dnl Bitmap claims support for nonexistent version 0x00. | |
128 | AT_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 | |
129 | OFPT_HELLO (xid=0x0): | |
130 | version bitmap: 0x04, 0x05, 0x06, 0x07 | |
131 | ], [dnl | |
132 | ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00 | |
133 | ]) | |
134 | dnl Bitmap claims support for only nonexistent version 0x00. | |
135 | AT_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 | |
136 | OFPT_HELLO (xid=0x0): | |
137 | version bitmap: 0x01 | |
138 | unknown data in hello: | |
139 | 00000000 01 00 00 10 00 00 00 00-00 01 00 08 00 00 00 01 |................| | |
140 | ], [dnl | |
141 | ofp_util|WARN|peer claims to support invalid OpenFlow version 0x00 | |
142 | ofp_util|WARN|peer does not support any OpenFlow version (between 0x01 and 0x1f) | |
143 | ]) | |
144 | AT_CLEANUP | |
145 | ||
2e0525bc | 146 | dnl OFPT_ERROR tests are in ofp-errors.at. |
90bf1e07 | 147 | |
fec00620 BP |
148 | AT_SETUP([OFPT_ECHO_REQUEST, empty payload]) |
149 | AT_KEYWORDS([ofp-print]) | |
150 | AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl | |
151 | OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload | |
152 | ]) | |
153 | AT_CLEANUP | |
154 | ||
155 | AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload]) | |
156 | AT_KEYWORDS([ofp-print]) | |
157 | AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl | |
158 | OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload | |
159 | 00000000 25 53 54 1a 9d |%ST.. | | |
160 | ]) | |
161 | AT_CLEANUP | |
162 | ||
163 | AT_SETUP([OFPT_ECHO_REPLY, empty payload]) | |
164 | AT_KEYWORDS([ofp-print]) | |
165 | AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl | |
166 | OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload | |
167 | ]) | |
168 | AT_CLEANUP | |
169 | ||
170 | AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload]) | |
171 | AT_KEYWORDS([ofp-print]) | |
172 | AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl | |
173 | OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload | |
174 | 00000000 a3 30 ef af 9e |.0... | | |
175 | ]) | |
176 | AT_CLEANUP | |
177 | ||
178 | AT_SETUP([OFPT_FEATURES_REQUEST]) | |
179 | AT_KEYWORDS([ofp-print]) | |
180 | AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl | |
181 | OFPT_FEATURES_REQUEST (xid=0x1): | |
182 | ]) | |
183 | AT_CLEANUP | |
184 | ||
9e1fd49b | 185 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.0]) |
fec00620 BP |
186 | AT_KEYWORDS([ofp-print]) |
187 | AT_CHECK([ovs-ofctl ofp-print "\ | |
188 | 01 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
189 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \ | |
190 | ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \ | |
191 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
192 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
193 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
194 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
195 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
196 | 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \ | |
197 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
198 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
199 | 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \ | |
200 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
201 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
202 | "], [0], [dnl | |
9e1fd49b | 203 | OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001 |
fec00620 | 204 | n_tables:2, n_buffers:256 |
9e1fd49b | 205 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP |
08d1e234 | 206 | actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst |
0ab14c8e BP |
207 | 1(eth1): addr:50:54:00:00:00:02 |
208 | config: 0 | |
209 | state: 0 | |
210 | current: 100MB-FD AUTO_NEG | |
211 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
212 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 213 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
214 | 2(eth2): addr:50:54:00:00:00:03 |
215 | config: 0 | |
216 | state: 0 | |
217 | current: 100MB-FD AUTO_NEG | |
218 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
219 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 220 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
221 | 3(eth0): addr:50:54:00:00:00:01 |
222 | config: 0 | |
223 | state: 0 | |
224 | current: 100MB-FD AUTO_NEG | |
225 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
226 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 227 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
228 | LOCAL(br0): addr:50:54:00:00:00:01 |
229 | config: PORT_DOWN | |
230 | state: LINK_DOWN | |
d02a5f8e | 231 | speed: 0 Mbps now, 0 Mbps max |
fec00620 BP |
232 | ]) |
233 | AT_CLEANUP | |
234 | ||
9e1fd49b | 235 | AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0]) |
fec00620 BP |
236 | AT_KEYWORDS([ofp-print]) |
237 | AT_CHECK([ovs-ofctl ofp-print "\ | |
238 | 01 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
239 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \ | |
240 | ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \ | |
241 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
242 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
243 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
244 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
245 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
246 | 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \ | |
247 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
248 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
249 | 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \ | |
250 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
251 | 00 00 02 08 00 00 02 8f 00 00 02 8f \ | |
252 | "], [0], [dnl | |
90bf1e07 | 253 | ***decode error: OFPBRC_BAD_LEN*** |
fec00620 BP |
254 | 00000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....| |
255 | 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................| | |
256 | 00000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....| | |
257 | 00000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................| | |
258 | 00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
259 | 00000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....| | |
260 | 00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
261 | 00000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................| | |
262 | 00000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....| | |
263 | 00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
264 | 000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................| | |
265 | 000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....| | |
266 | 000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
267 | 000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ | | |
268 | ], [stderr]) | |
269 | AT_CHECK([sed 's/.*|//' stderr], [0], [dnl | |
5a020ef3 | 270 | received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes) |
fec00620 BP |
271 | ]) |
272 | AT_CLEANUP | |
273 | ||
9e1fd49b BP |
274 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.1]) |
275 | AT_KEYWORDS([ofp-print]) | |
276 | AT_CHECK([ovs-ofctl ofp-print "\ | |
277 | 02 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
2e1ae200 | 278 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \ |
9e1fd49b BP |
279 | ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \ |
280 | 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
281 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
282 | 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
283 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
284 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
285 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
286 | 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
287 | "], [0], [dnl | |
288 | OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001 | |
289 | n_tables:2, n_buffers:256 | |
290 | capabilities: 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 | ]) | |
303 | AT_CLEANUP | |
304 | ||
305 | AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1]) | |
306 | AT_KEYWORDS([ofp-print]) | |
307 | AT_CHECK([ovs-ofctl ofp-print "\ | |
308 | 02 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
2e1ae200 | 309 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 00 00 \ |
9e1fd49b BP |
310 | ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \ |
311 | 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
312 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
313 | 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
314 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
315 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
316 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
317 | "], [0], [dnl | |
318 | ***decode error: OFPBRC_BAD_LEN*** | |
319 | 00000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....| | |
2e1ae200 | 320 | 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 00 00 |................| |
9e1fd49b BP |
321 | 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......| |
322 | 00000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............| | |
323 | 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................| | |
324 | 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................| | |
325 | 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......| | |
326 | 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............| | |
327 | 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.| | |
328 | ], [stderr]) | |
329 | AT_CHECK([sed 's/.*|//' stderr], [0], [dnl | |
330 | received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes) | |
331 | ]) | |
332 | AT_CLEANUP | |
333 | ||
60202987 SH |
334 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.2]) |
335 | AT_KEYWORDS([ofp-print]) | |
336 | AT_CHECK([ovs-ofctl ofp-print "\ | |
337 | 03 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
2e1ae200 | 338 | 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \ |
60202987 SH |
339 | ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \ |
340 | 62 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
341 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
342 | 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
343 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
344 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
345 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
346 | 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
347 | "], [0], [dnl | |
348 | OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001 | |
349 | n_tables:255, n_buffers:256 | |
350 | capabilities: 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 | ]) | |
363 | AT_CLEANUP | |
364 | ||
365 | AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2]) | |
366 | AT_KEYWORDS([ofp-print]) | |
367 | AT_CHECK([ovs-ofctl ofp-print "\ | |
368 | 03 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
2e1ae200 | 369 | 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \ |
60202987 SH |
370 | ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \ |
371 | 62 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
372 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
373 | 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
374 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
375 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
376 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
377 | "], [0], [dnl | |
378 | OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): | |
379 | (***truncated to 144 bytes from 160***) | |
380 | 00000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....| | |
2e1ae200 | 381 | 00000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 00 00 |...........w....| |
60202987 SH |
382 | 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......| |
383 | 00000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............| | |
384 | 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................| | |
385 | 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................| | |
386 | 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......| | |
387 | 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............| | |
388 | 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.| | |
389 | ], [stderr]) | |
390 | AT_CHECK([sed 's/.*|//' stderr], [0], [dnl | |
391 | ]) | |
392 | AT_CLEANUP | |
393 | ||
2e1ae200 JR |
394 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.3]) |
395 | AT_KEYWORDS([ofp-print]) | |
396 | AT_CHECK([ovs-ofctl ofp-print "\ | |
397 | 04 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
398 | 00 00 01 00 ff 00 00 00 00 00 01 77 00 00 00 00 \ | |
399 | "], [0], [dnl | |
400 | OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001 | |
401 | n_tables:255, n_buffers:256 | |
402 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED | |
403 | ]) | |
404 | AT_CLEANUP | |
405 | ||
50b73fe1 JR |
406 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.4]) |
407 | AT_KEYWORDS([ofp-print]) | |
408 | AT_CHECK([ovs-ofctl ofp-print "\ | |
409 | 05 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
410 | 00 00 01 00 ff 00 00 00 00 00 07 6f 00 00 00 00 \ | |
411 | "], [0], [dnl | |
412 | OFPT_FEATURES_REPLY (OF1.4) (xid=0x1): dpid:0000505400000001 | |
413 | n_tables:255, n_buffers:256 | |
414 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS IP_REASM QUEUE_STATS PORT_BLOCKED BUNDLES FLOW_MONITORING | |
415 | ]) | |
416 | AT_CLEANUP | |
417 | ||
418 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.5]) | |
419 | AT_KEYWORDS([ofp-print]) | |
420 | AT_CHECK([ovs-ofctl ofp-print "\ | |
421 | 06 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
422 | 00 00 01 00 ff 00 00 00 00 00 07 6f 00 00 00 00 \ | |
423 | "], [0], [dnl | |
424 | OFPT_FEATURES_REPLY (OF1.5) (xid=0x1): dpid:0000505400000001 | |
425 | n_tables:255, n_buffers:256 | |
426 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS IP_REASM QUEUE_STATS PORT_BLOCKED BUNDLES FLOW_MONITORING | |
427 | ]) | |
428 | AT_CLEANUP | |
429 | ||
2e1ae200 JR |
430 | AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3]) |
431 | AT_KEYWORDS([ofp-print]) | |
432 | AT_CHECK([ovs-ofctl ofp-print "\ | |
433 | 04 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
434 | 00 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \ | |
435 | "], [0], [dnl | |
436 | OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001 | |
437 | n_tables:255, n_buffers:256, auxiliary_id:1 | |
438 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED | |
439 | ]) | |
440 | AT_CLEANUP | |
441 | ||
fec00620 BP |
442 | AT_SETUP([OFPT_GET_CONFIG_REQUEST]) |
443 | AT_KEYWORDS([ofp-print]) | |
444 | AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl | |
445 | OFPT_GET_CONFIG_REQUEST (xid=0x1): | |
446 | ]) | |
447 | AT_CLEANUP | |
448 | ||
449 | AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form]) | |
450 | AT_KEYWORDS([ofp-print]) | |
451 | AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl | |
452 | OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0 | |
453 | ]) | |
454 | AT_CLEANUP | |
455 | ||
456 | ||
457 | AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len]) | |
458 | AT_KEYWORDS([ofp-print]) | |
459 | AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl | |
460 | OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255 | |
461 | ]) | |
462 | AT_CLEANUP | |
463 | ||
7cfb9651 | 464 | AT_SETUP([OFPT_PACKET_IN - OF1.0]) |
fec00620 | 465 | AT_KEYWORDS([ofp-print]) |
fec00620 BP |
466 | AT_CHECK([ovs-ofctl ofp-print "\ |
467 | 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \ | |
468 | 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \ | |
469 | 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \ | |
470 | c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \ | |
dc235f7f | 471 | 50 02 02 00 26 e8 00 00 00 00 00 00 00 00 \ |
897a8e07 | 472 | "], [0], [dnl |
f0fd1a17 | 473 | OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111 |
e6d9ab56 | 474 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8 |
fec00620 BP |
475 | ]) |
476 | AT_CLEANUP | |
477 | ||
210ba964 | 478 | AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data]) |
b4ccee75 SH |
479 | AT_KEYWORDS([ofp-print]) |
480 | AT_CHECK([ovs-ofctl ofp-print "\ | |
481 | 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \ | |
482 | 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \ | |
483 | 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \ | |
484 | c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \ | |
dc235f7f | 485 | 50 10 02 00 26 e8 00 00 00 00 00 00 00 00 \ |
b4ccee75 SH |
486 | " 3], [0], [dnl |
487 | OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111 | |
e6d9ab56 | 488 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=ack tcp_csum:26e8 |
b4ccee75 SH |
489 | 00000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00 |
490 | 00000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8 | |
dc235f7f | 491 | 00000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 10 |
b4ccee75 SH |
492 | 00000030 02 00 26 e8 00 00 00 00-00 00 00 00 |
493 | ]) | |
494 | AT_CLEANUP | |
495 | ||
4d197ebb BP |
496 | AT_SETUP([OFPT_PACKET_IN - OF1.1]) |
497 | AT_KEYWORDS([ofp-print]) | |
498 | AT_CHECK([ovs-ofctl ofp-print "\ | |
499 | 02 0a 00 54 00 00 00 00 00 00 01 11 00 00 00 03 \ | |
500 | 00 00 00 03 00 3c 00 00 \ | |
501 | 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \ | |
502 | 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \ | |
503 | c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \ | |
504 | 50 02 02 00 26 e8 00 00 00 00 00 00 00 00 \ | |
505 | "], [0], [dnl | |
506 | OFPT_PACKET_IN (OF1.1) (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111 | |
e6d9ab56 | 507 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0,tcp_flags=syn tcp_csum:26e8 |
4d197ebb BP |
508 | ]) |
509 | AT_CLEANUP | |
510 | ||
7cfb9651 SH |
511 | AT_SETUP([OFPT_PACKET_IN - OF1.2]) |
512 | AT_KEYWORDS([ofp-print]) | |
513 | AT_CHECK([ovs-ofctl ofp-print "\ | |
514 | 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
515 | 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \ | |
516 | 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \ | |
eb19e5f0 | 517 | 00 01 08 00 06 04 00 01 00 23 20 83 c1 5f 00 00 \ |
7cfb9651 SH |
518 | 00 00 00 23 20 83 c1 5f 00 00 00 00 \ |
519 | "], [0], [dnl | |
520 | OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
e6d9ab56 | 521 | rarp,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 |
522 | ]) |
523 | AT_CLEANUP | |
524 | ||
b4ccee75 SH |
525 | AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data]) |
526 | AT_KEYWORDS([ofp-print]) | |
527 | AT_CHECK([ovs-ofctl ofp-print "\ | |
528 | 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
529 | 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \ | |
530 | 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \ | |
531 | 00 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \ | |
532 | 00 00 00 23 20 83 c1 5f 00 00 00 00 \ | |
533 | " 3], [0], [dnl | |
534 | OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
e6d9ab56 | 535 | rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f |
b4ccee75 SH |
536 | 00000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01 |
537 | 00000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00 | |
538 | 00000020 00 23 20 83 c1 5f 00 00-00 00 | |
539 | ]) | |
540 | AT_CLEANUP | |
541 | ||
2e1ae200 JR |
542 | AT_SETUP([OFPT_PACKET_IN - OF1.3]) |
543 | AT_KEYWORDS([ofp-print]) | |
544 | AT_CHECK([ovs-ofctl ofp-print "\ | |
545 | 04 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
546 | 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \ | |
547 | ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \ | |
548 | 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \ | |
549 | 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \ | |
550 | 00 00 00 00 \ | |
551 | "], [0], [dnl | |
552 | OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
e6d9ab56 | 553 | rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f |
b6a3dd9c JT |
554 | ]) |
555 | AT_CLEANUP | |
556 | ||
557 | AT_SETUP([OFPT_PACKET_IN - OF1.4]) | |
558 | AT_KEYWORDS([ofp-print]) | |
559 | AT_CHECK([ovs-ofctl ofp-print "\ | |
560 | 05 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
561 | 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \ | |
562 | ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \ | |
563 | 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \ | |
564 | 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \ | |
565 | 00 00 00 00 \ | |
566 | "], [0], [dnl | |
567 | OFPT_PACKET_IN (OF1.4) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
e6d9ab56 | 568 | rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f |
b6a3dd9c JT |
569 | ]) |
570 | AT_CLEANUP | |
571 | ||
572 | AT_SETUP([OFPT_PACKET_IN - OF1.5]) | |
573 | AT_KEYWORDS([ofp-print]) | |
574 | AT_CHECK([ovs-ofctl ofp-print "\ | |
575 | 06 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
576 | 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \ | |
577 | ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \ | |
578 | 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \ | |
579 | 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \ | |
580 | 00 00 00 00 \ | |
581 | "], [0], [dnl | |
582 | OFPT_PACKET_IN (OF1.5) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
e6d9ab56 | 583 | rarp,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 |
584 | ]) |
585 | AT_CLEANUP | |
586 | ||
b4ccee75 SH |
587 | AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data]) |
588 | AT_KEYWORDS([ofp-print]) | |
589 | AT_CHECK([ovs-ofctl ofp-print "\ | |
590 | 04 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
591 | 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \ | |
592 | ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \ | |
593 | 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \ | |
594 | 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \ | |
595 | 00 00 00 00 \ | |
596 | " 3], [0], [dnl | |
597 | OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
e6d9ab56 | 598 | rarp,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f |
b4ccee75 SH |
599 | 00000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01 |
600 | 00000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00 | |
601 | 00000020 00 23 20 83 c1 5f 00 00-00 00 | |
602 | ]) | |
603 | AT_CLEANUP | |
604 | ||
eefbf181 | 605 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.0]) |
fec00620 BP |
606 | AT_KEYWORDS([ofp-print]) |
607 | AT_CHECK([ovs-ofctl ofp-print "\ | |
608 | 01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \ | |
609 | 00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \ | |
610 | 00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \ | |
611 | 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \ | |
612 | 30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \ | |
613 | 00 00 00 00 00 00 00 3c \ | |
614 | "], [0], [dnl | |
b1634591 | 615 | OFPT_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 |
616 | ]) |
617 | AT_CLEANUP | |
618 | ||
eefbf181 SH |
619 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.2]) |
620 | AT_KEYWORDS([ofp-print]) | |
621 | AT_CHECK([ovs-ofctl ofp-print "\ | |
622 | 03 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \ | |
623 | 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \ | |
624 | 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \ | |
625 | 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl | |
b1634591 | 626 | OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438 |
eefbf181 SH |
627 | ]) |
628 | AT_CLEANUP | |
629 | ||
2e1ae200 JR |
630 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.3]) |
631 | AT_KEYWORDS([ofp-print]) | |
632 | AT_CHECK([ovs-ofctl ofp-print "\ | |
633 | 04 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \ | |
634 | 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \ | |
635 | 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \ | |
636 | 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl | |
b1634591 | 637 | OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.010s idle60 hard120 pkts1234567 bytes1869134438 |
2e1ae200 JR |
638 | ]) |
639 | AT_CLEANUP | |
640 | ||
c7b02b80 S |
641 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.5]) |
642 | AT_KEYWORDS([ofp-print]) | |
643 | AT_CHECK([ovs-ofctl ofp-print "\ | |
644 | 06 0b 00 80 00 00 00 02 01 00 00 00 11 00 22 00 \ | |
645 | 00 00 00 00 00 00 00 01 00 01 00 2d 80 00 00 04 \ | |
646 | 00 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \ | |
647 | 0a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \ | |
648 | 00 00 00 00 00 00 00 00 00 00 00 34 80 02 00 08 \ | |
649 | 00 00 00 98 29 e6 ed c0 80 02 02 08 00 00 00 98 \ | |
650 | 00 00 00 00 80 02 08 08 00 00 00 00 00 00 00 02 \ | |
651 | 80 02 0a 08 00 00 00 00 00 00 00 80 00 00 00 00 \ | |
652 | "], [0], [dnl | |
653 | OFPT_FLOW_REMOVED (OF1.5) (xid=0x2): priority=0,ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 reason=idle table_id=1 cookie:0x1 duration152.703s idle4352 hard8704 pkts2 bytes128 | |
654 | ]) | |
655 | AT_CLEANUP | |
656 | ||
9e1fd49b | 657 | AT_SETUP([OFPT_PORT_STATUS - OF1.0]) |
fec00620 BP |
658 | AT_KEYWORDS([ofp-print]) |
659 | AT_CHECK([ovs-ofctl ofp-print "\ | |
660 | 01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
661 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
662 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
663 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
664 | "], [0], [dnl | |
0ab14c8e BP |
665 | OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 |
666 | config: PORT_DOWN | |
667 | state: LINK_DOWN | |
668 | current: 100MB-FD AUTO_NEG | |
669 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
670 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b BP |
671 | speed: 100 Mbps now, 100 Mbps max |
672 | ]) | |
673 | AT_CLEANUP | |
674 | ||
675 | AT_SETUP([OFPT_PORT_STATUS - OF1.1]) | |
676 | AT_KEYWORDS([ofp-print]) | |
677 | AT_CHECK([ovs-ofctl ofp-print "\ | |
678 | 02 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
679 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
680 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
681 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
682 | 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
683 | "], [0], [dnl | |
684 | OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 | |
685 | config: 0 | |
686 | state: 0 | |
687 | current: 100MB-FD AUTO_NEG | |
688 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
689 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
690 | speed: 100 Mbps now, 100 Mbps max | |
fec00620 BP |
691 | ]) |
692 | AT_CLEANUP | |
693 | ||
8c3cc785 BP |
694 | AT_SETUP([OFPT_PORT_STATUS - OF1.4]) |
695 | AT_KEYWORDS([ofp-print]) | |
696 | AT_CHECK([ovs-ofctl ofp-print "\ | |
697 | 05 0c 00 58 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
698 | 00 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \ | |
699 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
700 | 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \ | |
701 | 00 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \ | |
702 | 00 01 86 a0 00 01 86 a0 \ | |
703 | "], [0], [dnl | |
704 | OFPT_PORT_STATUS (OF1.4) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 | |
705 | config: 0 | |
706 | state: 0 | |
707 | current: 100MB-FD AUTO_NEG | |
708 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
709 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
710 | speed: 100 Mbps now, 100 Mbps max | |
711 | ]) | |
712 | AT_CLEANUP | |
713 | ||
eb5ee596 | 714 | AT_SETUP([OFPT_PACKET_OUT - OF1.0]) |
fec00620 BP |
715 | AT_KEYWORDS([ofp-print]) |
716 | AT_CHECK([ovs-ofctl ofp-print "\ | |
717 | 01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \ | |
718 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
719 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
720 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
721 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
722 | 00 00 00 00 \ | |
723 | "], [0], [dnl | |
c6a93eb7 | 724 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114 |
fec00620 BP |
725 | ]) |
726 | AT_CLEANUP | |
727 | ||
4b2d9d11 SH |
728 | AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet]) |
729 | AT_KEYWORDS([ofp-print]) | |
730 | AT_CHECK([ovs-ofctl ofp-print "\ | |
731 | 01 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \ | |
732 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
733 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
734 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
735 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
736 | 00 00 00 00 \ | |
737 | "], [0], [dnl | |
738 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60 | |
e6d9ab56 | 739 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75 |
4b2d9d11 SH |
740 | ]) |
741 | AT_CLEANUP | |
742 | ||
b4ccee75 SH |
743 | AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data]) |
744 | AT_KEYWORDS([ofp-print]) | |
745 | AT_CHECK([ovs-ofctl ofp-print "\ | |
746 | 01 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \ | |
747 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
748 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
749 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
750 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
751 | 00 00 00 00 \ | |
752 | " 3], [0], [dnl | |
753 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60 | |
e6d9ab56 | 754 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75 |
b4ccee75 SH |
755 | 00000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00 |
756 | 00000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8 | |
757 | 00000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14 | |
758 | 00000030 00 00 6d 75 00 00 00 00-00 00 00 00 | |
759 | ]) | |
760 | AT_CLEANUP | |
761 | ||
eb5ee596 SH |
762 | AT_SETUP([OFPT_PACKET_OUT - OF1.1]) |
763 | AT_KEYWORDS([ofp-print]) | |
764 | AT_CHECK([ovs-ofctl ofp-print "\ | |
765 | 03 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \ | |
766 | 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
767 | 05 dc 00 00 00 00 00 00 \ | |
768 | "], [0], [dnl | |
769 | OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00 | |
770 | ]) | |
771 | AT_CLEANUP | |
772 | ||
4b2d9d11 SH |
773 | AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet]) |
774 | AT_KEYWORDS([ofp-print]) | |
775 | AT_CHECK([ovs-ofctl ofp-print "\ | |
776 | 03 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \ | |
777 | 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
778 | 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \ | |
779 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
780 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
781 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
782 | 00 00 00 00 \ | |
783 | "], [0], [dnl | |
784 | OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60 | |
e6d9ab56 | 785 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75 |
4b2d9d11 SH |
786 | ]) |
787 | AT_CLEANUP | |
788 | ||
577bfa9f YHW |
789 | AT_SETUP([OFPT_PACKET_OUT - OF1.5]) |
790 | AT_KEYWORDS([ofp-print packet-out]) | |
791 | AT_CHECK([ovs-ofctl ofp-print "\ | |
792 | 06 0d 00 30 11 22 33 44 ff ff ff 00 00 10 00 00 \ | |
793 | 00 01 00 10 80 00 00 04 00 00 00 01 00 00 00 00 \ | |
794 | 00 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \ | |
795 | "], [0], [dnl | |
796 | OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): in_port=1 actions=FLOOD buffer=0xffffff00 | |
797 | ]) | |
798 | ||
799 | dnl missing in_port | |
800 | AT_CHECK([ovs-ofctl ofp-print "\ | |
801 | 06 0d 00 40 11 22 33 44 ff ff ff 00 00 10 00 00 \ | |
802 | 00 01 00 20 80 00 04 08 00 00 00 00 00 00 00 03 \ | |
803 | 80 00 4C 08 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
804 | 00 00 00 10 ff ff ff fb 05 dc 00 00 00 00 00 00 \ | |
805 | "], [0], [dnl | |
806 | OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_BAD_PORT*** | |
2d071a32 BP |
807 | 00000000 06 0d 00 40 11 22 33 44-ff ff ff 00 00 10 00 00 |...@."3D........| |
808 | 00000010 00 01 00 20 80 00 04 08-00 00 00 00 00 00 00 03 |... ............| | |
809 | 00000020 80 00 4c 08 00 00 00 00-00 00 00 05 00 00 00 00 |..L.............| | |
810 | 00000030 00 00 00 10 ff ff ff fb-05 dc 00 00 00 00 00 00 |................| | |
577bfa9f | 811 | ]) |
d7892c81 YHW |
812 | |
813 | AT_CHECK([ovs-ofctl ofp-print "\ | |
814 | 06 0d 00 48 11 22 33 44 ff ff ff 00 00 10 00 00 \ | |
815 | 00 01 00 28 80 00 00 04 00 00 00 01 80 00 04 08 \ | |
816 | 00 00 00 00 00 00 00 03 80 00 4C 08 00 00 00 00 \ | |
817 | 00 00 00 05 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
818 | 05 dc 00 00 00 00 00 00 \ | |
819 | "], [0], [dnl | |
820 | OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): tun_id=0x5,metadata=0x3,in_port=1 actions=FLOOD buffer=0xffffff00 | |
821 | ]) | |
822 | ||
823 | dnl include non pipeline field | |
824 | AT_CHECK([ovs-ofctl ofp-print "\ | |
825 | 06 0d 00 38 11 22 33 44 ff ff ff 00 00 10 00 00 \ | |
826 | 00 01 00 18 80 00 00 04 00 00 00 01 80 00 16 04 \ | |
827 | 11 22 33 44 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
828 | 05 dc 00 00 00 00 00 00 \ | |
829 | "], [0], [dnl | |
830 | OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): ***decode error: OFPBRC_PIPELINE_FIELDS_ONLY*** | |
2d071a32 BP |
831 | 00000000 06 0d 00 38 11 22 33 44-ff ff ff 00 00 10 00 00 |...8."3D........| |
832 | dnl " | |
833 | 00000010 00 01 00 18 80 00 00 04-00 00 00 01 80 00 16 04 |................| | |
834 | 00000020 11 22 33 44 00 00 00 00-00 00 00 10 ff ff ff fb |."3D............| | |
835 | 00000030 05 dc 00 00 00 00 00 00- |........ | | |
d7892c81 YHW |
836 | ]) |
837 | ||
838 | AT_CLEANUP | |
839 | ||
840 | AT_SETUP([OFPT_PACKET_OUT - OF1.5, with packet]) | |
841 | AT_KEYWORDS([ofp-print packet-out]) | |
842 | AT_CHECK([ovs-ofctl ofp-print "\ | |
843 | 06 0d 00 74 11 22 33 44 ff ff ff ff 00 10 00 00 \ | |
844 | 00 01 00 18 80 00 00 04 00 00 00 01 80 00 04 08 \ | |
845 | 00 00 00 00 00 00 00 03 00 00 00 10 ff ff ff fb \ | |
846 | 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \ | |
847 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
848 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
849 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
850 | 00 00 00 00 | |
851 | "], [0], [dnl | |
852 | OFPT_PACKET_OUT (OF1.5) (xid=0x11223344): metadata=0x3,in_port=1 actions=FLOOD data_len=60 | |
853 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75 | |
854 | ]) | |
577bfa9f YHW |
855 | AT_CLEANUP |
856 | ||
fec00620 | 857 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
1bf6eeb0 | 858 | AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity]) |
fec00620 | 859 | AT_KEYWORDS([ofp-print]) |
1c0b7503 | 860 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
fec00620 BP |
861 | 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \ |
862 | 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \ | |
863 | 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \ | |
864 | 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
865 | 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
866 | " 2], [0], [dnl | |
666d0863 | 867 | OFPT_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 | 868 | ], [dnl |
0d71302e BP |
869 | ofp_match|INFO|normalization changed ofp_match, details: |
870 | ofp_match|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 | |
871 | ofp_match|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 |
872 | ]) |
873 | AT_CLEANUP | |
874 | ||
75fa58f8 BP |
875 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
876 | AT_SETUP([OFPT_FLOW_MOD - OF1.1 - low verbosity]) | |
877 | AT_KEYWORDS([ofp-print]) | |
878 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
879 | 020e 0090 01020304 \ | |
880 | da1aa3e035d87158 ffffffffffffffff \ | |
881 | 02 01 003c 0078 9c40 ffffffff ffffffff ffffffff 0003 \ | |
882 | 0000 \ | |
883 | \ | |
884 | 0000 0058 00000000 000003f7 \ | |
885 | 000000000000ffffffffffff 000000000000ffffffffffff \ | |
886 | 0000 00 00 0806 00 00 c0a88000000000ff 00000000ffffffff 0000 0000 \ | |
887 | 00000000 00 000000 0000000000000000ffffffffffffffff \ | |
888 | \ | |
889 | 0001 0008 03 000000 \ | |
890 | " 2], [0], [dnl | |
891 | OFPT_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 | |
892 | ]) | |
893 | AT_CLEANUP | |
894 | ||
1bf6eeb0 SH |
895 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
896 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity]) | |
897 | AT_KEYWORDS([ofp-print]) | |
898 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
899 | 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
0e197060 | 900 | 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \ |
1bf6eeb0 SH |
901 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ |
902 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
903 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
904 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
905 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
906 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
907 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
908 | " 2], [0], [dnl | |
0e197060 | 909 | OFPT_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 |
910 | ], [dnl |
911 | ]) | |
912 | AT_CLEANUP | |
913 | ||
eec25dc1 BP |
914 | # The flow is formatted with ofp10_match_to_string() for the |
915 | # high-verbosity case. | |
1bf6eeb0 | 916 | AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity]) |
fec00620 | 917 | AT_KEYWORDS([ofp-print]) |
1c0b7503 | 918 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
fec00620 BP |
919 | 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \ |
920 | 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \ | |
921 | 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \ | |
922 | 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
923 | 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
924 | " 3], [0], [dnl | |
de0f16bc | 925 | OFPT_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 | 926 | ], [dnl |
0d71302e BP |
927 | ofp_match|INFO|normalization changed ofp_match, details: |
928 | ofp_match|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 | |
929 | ofp_match|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 |
930 | ]) |
931 | AT_CLEANUP | |
932 | ||
1bf6eeb0 SH |
933 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
934 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity]) | |
935 | AT_KEYWORDS([ofp-print]) | |
936 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
937 | 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
0e197060 | 938 | 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \ |
1bf6eeb0 SH |
939 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ |
940 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
941 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
942 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
943 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
944 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
945 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
946 | " 2], [0], [dnl | |
0e197060 | 947 | OFPT_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 |
948 | ], [dnl |
949 | ]) | |
950 | AT_CLEANUP | |
951 | ||
2e1ae200 JR |
952 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
953 | AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity]) | |
954 | AT_KEYWORDS([ofp-print]) | |
955 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
956 | 04 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
0e197060 | 957 | 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \ |
2e1ae200 JR |
958 | ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \ |
959 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
960 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
961 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
962 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
963 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
964 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
965 | " 2], [0], [dnl | |
0e197060 | 966 | OFPT_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 |
967 | ], [dnl |
968 | ]) | |
969 | AT_CLEANUP | |
970 | ||
d55b18c8 IY |
971 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src]) |
972 | AT_KEYWORDS([ofp-print]) | |
973 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
974 | 03 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \ | |
975 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
976 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
977 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
978 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \ | |
979 | c0 a8 03 5c 00 00 00 00 \ | |
980 | " 2], [0], [dnl | |
981 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src | |
982 | ], [dnl | |
983 | ]) | |
984 | AT_CLEANUP | |
985 | ||
986 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst]) | |
987 | AT_KEYWORDS([ofp-print]) | |
988 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
989 | 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \ | |
990 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
991 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
992 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
993 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \ | |
994 | c0 a8 4a 7a 00 00 00 00 \ | |
995 | " 2], [0], [dnl | |
996 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst | |
997 | ], [dnl | |
998 | ]) | |
999 | AT_CLEANUP | |
1000 | ||
0d56eaf2 JS |
1001 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_src]) |
1002 | AT_KEYWORDS([ofp-print]) | |
1003 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1004 | 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \ | |
1005 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
1006 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1007 | 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \ | |
1008 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \ | |
1009 | 0d 06 00 00 00 00 00 00 \ | |
1010 | " 2], [0], [dnl | |
1011 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:3334->sctp_src | |
1012 | ], [dnl | |
1013 | ]) | |
1014 | AT_CLEANUP | |
1015 | ||
1016 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field sctp_dst]) | |
1017 | AT_KEYWORDS([ofp-print]) | |
1018 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1019 | 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \ | |
1020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
1021 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1022 | 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \ | |
1023 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \ | |
1024 | 11 5d 00 00 00 00 00 00 \ | |
1025 | " 2], [0], [dnl | |
1026 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,sctp actions=set_field:4445->sctp_dst | |
1027 | ], [dnl | |
1028 | ]) | |
1029 | AT_CLEANUP | |
1030 | ||
508a9338 BP |
1031 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - experimenter OXM]) |
1032 | AT_KEYWORDS([ofp-print]) | |
1033 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1034 | 03 0e 00 48 52 33 45 07 00 00 00 00 00 00 00 00 \ | |
1035 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
1036 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1037 | 00 01 00 14 ff ff 01 0c 00 00 23 20 01 23 45 67 \ | |
1038 | 0f ff ff ff 00 00 00 00 | |
1039 | " 2], [0], [dnl | |
1040 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,dp_hash=0x1234567/0xfffffff actions=drop | |
1041 | ], [dnl | |
1042 | ]) | |
1043 | AT_CLEANUP | |
1044 | ||
e60e935b SRCSA |
1045 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field nd_target, nd_sll]) |
1046 | AT_KEYWORDS([ofp-print]) | |
1047 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1048 | 03 0e 00 78 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1049 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
1050 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1051 | 00 01 00 14 80 00 0a 02 86 dd 80 00 14 01 3a 80 \ | |
1052 | 00 3a 01 87 00 00 00 00 00 04 00 30 00 00 00 00 \ | |
1053 | 00 19 00 18 80 00 3e 10 00 00 00 00 00 00 00 00 \ | |
1054 | 00 00 00 00 00 00 00 01 00 19 00 10 80 00 40 06 \ | |
1055 | aa aa aa aa aa aa 00 00 | |
1056 | " 2], [0], [dnl | |
1057 | OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD priority=255,icmp6,icmp_type=135 actions=set_field:::1->nd_target,set_field:aa:aa:aa:aa:aa:aa->nd_sll | |
1058 | ], [dnl | |
1059 | ]) | |
1060 | AT_CLEANUP | |
1061 | ||
b2a27ddc BP |
1062 | dnl This triggered a buggy "instructions out of order" message earlier. |
1063 | AT_SETUP([OFPT_FLOW_MOD - OF1.3 - meter]) | |
1064 | AT_KEYWORDS([ofp-print]) | |
1065 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1066 | 04 0e 00 40 cf fe 6b 86 00 00 00 00 00 00 00 00 \ | |
1067 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 e8 \ | |
1068 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1069 | 00 01 00 04 00 00 00 00 00 06 00 08 00 00 00 01"], [0], [dnl | |
1070 | OFPT_FLOW_MOD (OF1.3) (xid=0xcffe6b86): ADD priority=1000 actions=meter:1 | |
1071 | ]) | |
1072 | AT_CLEANUP | |
1073 | ||
d55b18c8 IY |
1074 | AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src]) |
1075 | AT_KEYWORDS([ofp-print]) | |
1076 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1077 | 03 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \ | |
1078 | 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \ | |
1079 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1080 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1081 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
1082 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \ | |
1083 | c0 a8 03 5c 00 00 00 00 \ | |
1084 | " 2], [0], [dnl | |
1085 | OFPST_FLOW reply (OF1.2) (xid=0x52334504): | |
1086 | cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src | |
1087 | ], [dnl | |
1088 | ]) | |
1089 | AT_CLEANUP | |
1090 | ||
1091 | AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst]) | |
1092 | AT_KEYWORDS([ofp-print]) | |
1093 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1094 | 03 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \ | |
1095 | 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \ | |
1096 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1097 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1098 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
1099 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \ | |
1100 | c0 a8 4a 7a 00 00 00 00 \ | |
1101 | " 2], [0], [dnl | |
1102 | OFPST_FLOW reply (OF1.2) (xid=0x52334509): | |
1103 | cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst | |
1104 | ], [dnl | |
1105 | ]) | |
1106 | AT_CLEANUP | |
1107 | ||
0d56eaf2 JS |
1108 | AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_src]) |
1109 | AT_KEYWORDS([ofp-print]) | |
1110 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1111 | 03 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \ | |
1112 | 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \ | |
1113 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1114 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1115 | 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \ | |
1116 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 22 02 \ | |
1117 | 0d 06 00 00 00 00 00 00 \ | |
1118 | " 2], [0], [dnl | |
1119 | OFPST_FLOW reply (OF1.2) (xid=0x52334504): | |
1120 | cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:3334->sctp_src | |
1121 | ], [dnl | |
1122 | ]) | |
1123 | AT_CLEANUP | |
1124 | ||
1125 | AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field sctp_dst]) | |
1126 | AT_KEYWORDS([ofp-print]) | |
1127 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
1128 | 03 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \ | |
1129 | 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \ | |
1130 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1131 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1132 | 00 01 00 0f 80 00 0a 02 08 00 80 00 14 01 84 00 \ | |
1133 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 24 02 \ | |
1134 | 11 5d 00 00 00 00 00 00 \ | |
1135 | " 2], [0], [dnl | |
1136 | OFPST_FLOW reply (OF1.2) (xid=0x52334509): | |
1137 | cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,sctp actions=set_field:4445->sctp_dst | |
1138 | ], [dnl | |
1139 | ]) | |
1140 | AT_CLEANUP | |
1141 | ||
9e1fd49b | 1142 | AT_SETUP([OFPT_PORT_MOD - OF1.0]) |
fec00620 BP |
1143 | AT_KEYWORDS([ofp-print]) |
1144 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1145 | 01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \ | |
1146 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
1147 | " 3], [0], [dnl | |
3e461c2c | 1148 | OFPT_PORT_MOD (xid=0x3): port: 3: addr:50:54:00:00:00:01 |
9e1fd49b BP |
1149 | config: PORT_DOWN |
1150 | mask: PORT_DOWN | |
1151 | advertise: UNCHANGED | |
1152 | ]) | |
1153 | AT_CLEANUP | |
1154 | ||
1155 | AT_SETUP([OFPT_PORT_MOD - OF1.1]) | |
1156 | AT_KEYWORDS([ofp-print]) | |
1157 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1158 | 02 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
1159 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
1160 | 00 00 00 00 00 00 00 00 \ | |
1161 | " 3], [0], [dnl | |
3e461c2c | 1162 | OFPT_PORT_MOD (OF1.1) (xid=0x3): port: 3: addr:50:54:00:00:00:01 |
9e1fd49b BP |
1163 | config: PORT_DOWN |
1164 | mask: PORT_DOWN | |
fec00620 BP |
1165 | advertise: UNCHANGED |
1166 | ]) | |
1167 | AT_CLEANUP | |
1168 | ||
bb2bc3c1 SH |
1169 | AT_SETUP([OFPT_PORT_MOD - OF1.2]) |
1170 | AT_KEYWORDS([ofp-print]) | |
1171 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1172 | 03 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
1173 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
1174 | 00 00 00 00 00 00 00 00 \ | |
1175 | " 3], [0], [dnl | |
3e461c2c | 1176 | OFPT_PORT_MOD (OF1.2) (xid=0x3): port: 3: addr:50:54:00:00:00:01 |
bb2bc3c1 SH |
1177 | config: PORT_DOWN |
1178 | mask: PORT_DOWN | |
1179 | advertise: UNCHANGED | |
1180 | ]) | |
1181 | AT_CLEANUP | |
1182 | ||
2e1ae200 JR |
1183 | AT_SETUP([OFPT_PORT_MOD - OF1.3]) |
1184 | AT_KEYWORDS([ofp-print]) | |
1185 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1186 | 04 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
1187 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
1188 | 00 00 00 00 00 00 00 00 \ | |
1189 | " 3], [0], [dnl | |
3e461c2c | 1190 | OFPT_PORT_MOD (OF1.3) (xid=0x3): port: 3: addr:50:54:00:00:00:01 |
2e1ae200 JR |
1191 | config: PORT_DOWN |
1192 | mask: PORT_DOWN | |
1193 | advertise: UNCHANGED | |
1194 | ]) | |
1195 | AT_CLEANUP | |
1196 | ||
18cc69d9 BP |
1197 | AT_SETUP([OFPT_PORT_MOD - OF1.4]) |
1198 | AT_KEYWORDS([ofp-print]) | |
1199 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1200 | 05 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
1201 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
1202 | 00 00 00 08 00 00 00 01 | |
1203 | " 3], [0], [dnl | |
3e461c2c | 1204 | OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01 |
18cc69d9 BP |
1205 | config: PORT_DOWN |
1206 | mask: PORT_DOWN | |
1207 | advertise: 10MB-HD | |
1208 | ]) | |
1209 | AT_CLEANUP | |
1210 | ||
918f2b82 AZ |
1211 | AT_SETUP([OFPT_TABLE_MOD - OF1.1]) |
1212 | AT_KEYWORDS([ofp-print]) | |
1213 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1214 | 02 11 00 10 00 00 00 02 02 00 00 00 00 00 00 02 \ | |
1215 | " 3], [0], [dnl | |
1216 | OFPT_TABLE_MOD (OF1.1) (xid=0x2): table_id=2, flow_miss_config=drop | |
1217 | ]) | |
1218 | AT_CLEANUP | |
1219 | ||
1220 | AT_SETUP([OFPT_TABLE_MOD - OF1.2]) | |
1221 | AT_KEYWORDS([ofp-print]) | |
1222 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1223 | 03 11 00 10 00 00 00 02 02 00 00 00 00 00 00 01 \ | |
1224 | " 3], [0], [dnl | |
1225 | OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2, flow_miss_config=continue | |
1226 | ]) | |
1227 | AT_CLEANUP | |
1228 | ||
1229 | AT_SETUP([OFPT_TABLE_MOD - OF1.3]) | |
1230 | AT_KEYWORDS([ofp-print]) | |
1231 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1232 | 04 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \ | |
1233 | " 3], [0], [dnl | |
3c1bb396 | 1234 | OFPT_TABLE_MOD (OF1.3) (xid=0x2): table_id=2 |
918f2b82 AZ |
1235 | ]) |
1236 | AT_CLEANUP | |
1237 | ||
37ab26e8 BP |
1238 | AT_SETUP([OFPT_TABLE_MOD - OF1.4]) |
1239 | AT_KEYWORDS([ofp-print]) | |
1240 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1241 | 05 11 00 10 00 00 00 02 02 00 00 00 00 00 00 00 \ | |
1242 | " 3], [0], [dnl | |
de7d3c07 | 1243 | OFPT_TABLE_MOD (OF1.4) (xid=0x2): table_id=2, eviction=off, vacancy=off |
37ab26e8 BP |
1244 | ]) |
1245 | AT_CLEANUP | |
1246 | ||
fec00620 BP |
1247 | AT_SETUP([OFPST_DESC request]) |
1248 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1249 | AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl | |
1250 | OFPST_DESC request (xid=0x1): | |
1251 | ]) | |
1252 | AT_CLEANUP | |
1253 | ||
1254 | AT_SETUP([OFPST_DESC reply]) | |
1255 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1256 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1257 | 01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \ | |
e0edde6f RS |
1258 | 72 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \ |
1259 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
fec00620 BP |
1260 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ |
1261 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1262 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1263 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1264 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1265 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1266 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1267 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1268 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1269 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1270 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1271 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1272 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1273 | 00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \ | |
1274 | 20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \ | |
1275 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1276 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1277 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1278 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1279 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1280 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1281 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1282 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1283 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1284 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1285 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1286 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1287 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1288 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1289 | 00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \ | |
1290 | 30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \ | |
1291 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1292 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1293 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1294 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1295 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1296 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1297 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1298 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1299 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1300 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1301 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1302 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1303 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1304 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1305 | 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \ | |
1306 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1307 | 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \ | |
1308 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1309 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1310 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1311 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1312 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1313 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1314 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1315 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1316 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1317 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1318 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1319 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1320 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1321 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1322 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1323 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1324 | "], [0], [dnl | |
1325 | OFPST_DESC reply (xid=0x1): | |
e0edde6f | 1326 | Manufacturer: Nicira, Inc. |
fec00620 BP |
1327 | Hardware: Open vSwitch |
1328 | Software: 1.1.0pre2 | |
1329 | Serial Num: None | |
1330 | DP Description: None | |
1331 | ]) | |
1332 | AT_CLEANUP | |
1333 | ||
0157ad3a | 1334 | AT_SETUP([OFPST_FLOW request - OF1.0]) |
fec00620 BP |
1335 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1336 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1337 | 01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \ | |
1338 | ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1339 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1340 | 00 00 00 00 ff 00 ff ff \ | |
1341 | "], [0], [dnl | |
f92ef1a8 | 1342 | OFPST_FLOW request (xid=0x4): |
fec00620 BP |
1343 | ]) |
1344 | AT_CLEANUP | |
1345 | ||
0157ad3a SH |
1346 | AT_SETUP([OFPST_FLOW request - OF1.2]) |
1347 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1348 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1349 | 03 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \ | |
1350 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1351 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1352 | 00 01 00 04 00 00 00 00 \ | |
1353 | "], [0], [dnl | |
f92ef1a8 | 1354 | OFPST_FLOW request (OF1.2) (xid=0x2): |
0157ad3a SH |
1355 | ]) |
1356 | AT_CLEANUP | |
1357 | ||
2e1ae200 JR |
1358 | AT_SETUP([OFPST_FLOW request - OF1.3]) |
1359 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1360 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1361 | 04 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \ | |
1362 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1363 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1364 | 00 01 00 04 00 00 00 00 \ | |
1365 | "], [0], [dnl | |
f92ef1a8 | 1366 | OFPST_FLOW request (OF1.3) (xid=0x2): |
2e1ae200 JR |
1367 | ]) |
1368 | AT_CLEANUP | |
1369 | ||
c7b02b80 S |
1370 | AT_SETUP([OFPST_FLOW request - OF1.5]) |
1371 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1372 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1373 | 06 12 00 38 00 00 00 04 00 01 00 00 00 00 00 00 \ | |
1374 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1375 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1376 | 00 01 00 04 00 00 00 00 \ | |
1377 | "], [0], [dnl | |
1378 | OFPST_FLOW request (OF1.5) (xid=0x4): | |
1379 | ]) | |
1380 | AT_CLEANUP | |
1381 | ||
6ec5f0c5 | 1382 | AT_SETUP([OFPST_FLOW reply - OF1.0]) |
fec00620 BP |
1383 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1384 | AT_CHECK([ovs-ofctl ofp-print "\ | |
05b8f1c2 | 1385 | 01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \ |
fec00620 BP |
1386 | 00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \ |
1387 | 00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \ | |
1388 | c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \ | |
1389 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1390 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \ | |
1391 | 00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \ | |
1392 | 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \ | |
1393 | 00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \ | |
1394 | c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \ | |
1395 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1396 | 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \ | |
1397 | 00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \ | |
1398 | 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \ | |
1399 | 00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \ | |
1400 | c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \ | |
1401 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1402 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \ | |
1403 | 00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \ | |
fbc7ed06 | 1404 | 00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \ |
fec00620 BP |
1405 | 00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \ |
1406 | c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \ | |
fbc7ed06 | 1407 | 80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
1408 | 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \ |
1409 | 00 00 04 fa 00 00 00 08 00 01 00 00 \ | |
05b8f1c2 BP |
1410 | 00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \ |
1411 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1412 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1413 | 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \ | |
1414 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1415 | 00 00 00 00 00 00 00 00 \ | |
fec00620 BP |
1416 | "], [0], [dnl |
1417 | OFPST_FLOW reply (xid=0x4): | |
b1634591 BP |
1418 | 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 |
1419 | 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 | |
1420 | 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 | 1421 | 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 | 1422 | cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop |
fec00620 BP |
1423 | ]) |
1424 | AT_CLEANUP | |
1425 | ||
6ec5f0c5 SH |
1426 | AT_SETUP([OFPST_FLOW reply - OF1.2]) |
1427 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1428 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1429 | 03 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \ | |
1430 | 00 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \ | |
1431 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1432 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \ | |
1433 | 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \ | |
1434 | ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \ | |
1435 | 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \ | |
1436 | 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \ | |
1437 | 05 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \ | |
1438 | 20 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \ | |
1439 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \ | |
1440 | 00 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \ | |
1441 | 00 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \ | |
1442 | 0a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \ | |
1443 | 00 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
1444 | 00 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \ | |
1445 | 00 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \ | |
1446 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1447 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \ | |
1448 | 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \ | |
1449 | 52 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \ | |
1450 | 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \ | |
1451 | 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \ | |
1452 | 05 dc 00 00 00 00 00 00 \ | |
1453 | "], [0], [dnl | |
1454 | OFPST_FLOW reply (OF1.2) (xid=0x2): | |
1455 | 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 | |
1456 | 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 | |
1457 | 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 | |
1458 | ]) | |
1459 | AT_CLEANUP | |
1460 | ||
c7b02b80 S |
1461 | AT_SETUP([OFPST_FLOW reply - OF1.5]) |
1462 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1463 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1464 | 06 13 01 00 00 00 00 04 00 01 00 00 00 00 00 00 \ | |
1465 | 00 78 00 00 00 00 80 00 00 00 00 00 00 05 00 00 \ | |
1466 | 00 00 00 00 00 00 00 00 00 01 00 0c 80 00 00 04 \ | |
1467 | 00 00 00 02 00 00 00 00 00 00 00 34 80 02 00 08 \ | |
1468 | 00 00 00 c4 0b 06 e0 40 80 02 02 08 00 00 00 c4 \ | |
1469 | 00 00 00 00 80 02 08 08 00 00 00 00 00 00 00 02 \ | |
1470 | 80 02 0a 08 00 00 00 00 00 00 00 80 00 00 00 00 \ | |
1471 | 00 04 00 18 00 00 00 00 00 00 00 10 ff ff ff fa \ | |
1472 | 00 00 00 00 00 00 00 00 00 78 00 00 00 00 0f a0 \ | |
1473 | 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 \ | |
1474 | 00 01 00 0c 80 00 00 04 00 00 00 03 00 00 00 00 \ | |
1475 | 00 00 00 34 80 02 00 08 00 00 00 b3 25 40 be 40 \ | |
1476 | 80 02 02 08 00 00 00 b3 00 00 00 00 80 02 08 08 \ | |
1477 | 00 00 00 00 00 00 00 02 80 02 0a 08 00 00 00 00 \ | |
1478 | 00 00 00 80 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
1479 | 00 00 00 10 ff ff ff fa 00 00 00 00 00 00 00 00 \ | |
1480 | "], [0], [dnl | |
1481 | OFPST_FLOW reply (OF1.5) (xid=0x4): | |
1482 | cookie=0x0, duration=196.185s, table=0, n_packets=2, n_bytes=128, send_flow_rem reset_counts idle_age=196, in_port=2 actions=NORMAL | |
1483 | cookie=0x0, duration=179.625s, table=0, n_packets=2, n_bytes=128, send_flow_rem reset_counts idle_age=179, priority=4000,in_port=3 actions=NORMAL | |
1484 | ]) | |
1485 | AT_CLEANUP | |
1486 | ||
617da9cd | 1487 | AT_SETUP([OFPST_AGGREGATE request - OF1.0]) |
fec00620 BP |
1488 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1489 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1490 | 01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \ | |
1491 | ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1492 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1493 | 00 00 00 00 ff 00 ff ff \ | |
1494 | "], [0], [dnl | |
f92ef1a8 | 1495 | OFPST_AGGREGATE request (xid=0x4): |
fec00620 BP |
1496 | ]) |
1497 | AT_CLEANUP | |
1498 | ||
617da9cd SH |
1499 | AT_SETUP([OFPST_AGGREGATE request - OF1.2]) |
1500 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1501 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1502 | 03 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1503 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1504 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1505 | 00 01 00 04 00 00 00 00 \ | |
1506 | "], [0], [dnl | |
f92ef1a8 | 1507 | OFPST_AGGREGATE request (OF1.2) (xid=0x2): |
617da9cd SH |
1508 | ]) |
1509 | AT_CLEANUP | |
1510 | ||
2e1ae200 JR |
1511 | AT_SETUP([OFPST_AGGREGATE request - OF1.3]) |
1512 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1513 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1514 | 04 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1515 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1516 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1517 | 00 01 00 04 00 00 00 00 \ | |
1518 | "], [0], [dnl | |
f92ef1a8 | 1519 | OFPST_AGGREGATE request (OF1.3) (xid=0x2): |
2e1ae200 JR |
1520 | ]) |
1521 | AT_CLEANUP | |
1522 | ||
c7b02b80 S |
1523 | AT_SETUP([OFPST_AGGREGATE request - OF1.5]) |
1524 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1525 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1526 | 06 12 00 60 00 00 00 04 00 02 00 00 00 00 00 00 \ | |
1527 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1528 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1529 | 00 01 00 04 00 00 00 00 00 00 00 24 80 02 06 04 \ | |
1530 | 00 00 00 00 80 02 08 08 00 00 00 00 00 00 00 00 \ | |
1531 | 80 02 0a 08 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1532 | "], [0], [dnl | |
1533 | OFPST_AGGREGATE request (OF1.5) (xid=0x4): | |
1534 | ]) | |
1535 | AT_CLEANUP | |
1536 | ||
617da9cd | 1537 | AT_SETUP([OFPST_AGGREGATE reply - OF1.0]) |
fec00620 BP |
1538 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1539 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1540 | 01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \ | |
1541 | 00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \ | |
1542 | 00 00 00 00 \ | |
1543 | "], [0], [dnl | |
1544 | OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4 | |
1545 | ]) | |
1546 | AT_CLEANUP | |
1547 | ||
617da9cd SH |
1548 | AT_SETUP([OFPST_AGGREGATE reply - OF1.2]) |
1549 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1550 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1551 | 03 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1552 | 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \ | |
1553 | 00 00 00 03 00 00 00 00 \ | |
1554 | "], [0], [dnl | |
1555 | OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3 | |
1556 | ]) | |
1557 | AT_CLEANUP | |
1558 | ||
2e1ae200 JR |
1559 | AT_SETUP([OFPST_AGGREGATE reply - OF1.3]) |
1560 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1561 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1562 | 04 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1563 | 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \ | |
1564 | 00 00 00 03 00 00 00 00 \ | |
1565 | "], [0], [dnl | |
1566 | OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3 | |
1567 | ]) | |
1568 | AT_CLEANUP | |
1569 | ||
c7b02b80 S |
1570 | AT_SETUP([OFPST_AGGREGATE reply - OF1.5]) |
1571 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1572 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1573 | 06 13 00 38 00 00 00 04 00 02 00 00 00 00 00 00 \ | |
1574 | 00 00 00 24 80 02 06 04 00 00 00 03 80 02 08 08 \ | |
1575 | 00 00 00 00 00 00 00 79 80 02 0a 08 00 00 00 00 \ | |
1576 | 00 00 4b 4f 00 00 00 00 \ | |
1577 | "], [0], [dnl | |
1578 | OFPST_AGGREGATE reply (OF1.5) (xid=0x4): packet_count=121 byte_count=19279 flow_count=3 | |
1579 | ]) | |
1580 | AT_CLEANUP | |
1581 | ||
307975da | 1582 | AT_SETUP([OFPST_TABLE request - OF1.0]) |
fec00620 BP |
1583 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1584 | AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl | |
1585 | OFPST_TABLE request (xid=0x1): | |
1586 | ]) | |
1587 | AT_CLEANUP | |
1588 | ||
307975da SH |
1589 | AT_SETUP([OFPST_TABLE request - OF1.1]) |
1590 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1591 | AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl | |
1592 | OFPST_TABLE request (OF1.1) (xid=0x2): | |
1593 | ]) | |
1594 | AT_CLEANUP | |
1595 | ||
1596 | AT_SETUP([OFPST_TABLE request - OF1.2]) | |
1597 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1598 | AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl | |
1599 | OFPST_TABLE request (OF1.2) (xid=0x2): | |
1600 | ]) | |
1601 | AT_CLEANUP | |
1602 | ||
2e1ae200 JR |
1603 | AT_SETUP([OFPST_TABLE request - OF1.3]) |
1604 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1605 | AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl | |
1606 | OFPST_TABLE request (OF1.3) (xid=0x2): | |
1607 | ]) | |
1608 | AT_CLEANUP | |
1609 | ||
26df8b3e | 1610 | AT_SETUP([OFPST_TABLE reply - OF1.0]) |
fec00620 BP |
1611 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1612 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1613 | 01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \ | |
1614 | 63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \ | |
1615 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1616 | 00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \ | |
1617 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1618 | "], [0], [dnl | |
3c1bb396 BP |
1619 | OFPST_TABLE reply (xid=0x1): |
1620 | table 0 ("classifier"): | |
1621 | active=11, lookup=0, matched=0 | |
1622 | max_entries=1048576 | |
1623 | matching: | |
1624 | in_port: exact match or wildcard | |
1625 | eth_src: exact match or wildcard | |
1626 | eth_dst: exact match or wildcard | |
1627 | eth_type: exact match or wildcard | |
1628 | vlan_vid: exact match or wildcard | |
1629 | vlan_pcp: exact match or wildcard | |
1630 | ip_src: exact match or wildcard | |
1631 | ip_dst: exact match or wildcard | |
1632 | nw_proto: exact match or wildcard | |
1633 | nw_tos: exact match or wildcard | |
1634 | tcp_src: exact match or wildcard | |
1635 | tcp_dst: exact match or wildcard | |
fec00620 BP |
1636 | ]) |
1637 | AT_CLEANUP | |
1638 | ||
26df8b3e SH |
1639 | AT_SETUP([OFPST_TABLE reply - OF1.2]) |
1640 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
8811fc0a BP |
1641 | (echo 'OFPST_TABLE reply (OF1.2) (xid=0x2): |
1642 | table 0 ("classifier"): | |
1643 | active=1, lookup=74614, matched=106024 | |
3c1bb396 BP |
1644 | config=controller |
1645 | max_entries=1000000 | |
1646 | instructions (table miss and others): | |
1647 | instructions: write_metadata,goto_table | |
1648 | Write-Actions and Apply-Actions features: | |
1649 | supported on Set-Field: metadata in_port_oxm eth_src eth_dst eth_type vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst ipv6_label nw_proto ip_dscp nw_ecn arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst icmp_type icmp_code icmpv6_type icmpv6_code nd_target nd_sll nd_tll | |
1650 | matching: | |
1651 | metadata: exact match or wildcard | |
1652 | in_port_oxm: exact match or wildcard | |
1653 | eth_src: exact match or wildcard | |
1654 | eth_dst: exact match or wildcard | |
1655 | eth_type: exact match or wildcard | |
1656 | vlan_vid: exact match or wildcard | |
1657 | vlan_pcp: exact match or wildcard | |
1658 | mpls_label: exact match or wildcard | |
1659 | mpls_tc: exact match or wildcard | |
1660 | ip_src: exact match or wildcard | |
1661 | ip_dst: exact match or wildcard | |
1662 | ipv6_src: exact match or wildcard | |
1663 | ipv6_dst: exact match or wildcard | |
1664 | ipv6_label: exact match or wildcard | |
1665 | nw_proto: exact match or wildcard | |
1666 | ip_dscp: exact match or wildcard | |
1667 | nw_ecn: exact match or wildcard | |
1668 | arp_op: exact match or wildcard | |
1669 | arp_spa: exact match or wildcard | |
1670 | arp_tpa: exact match or wildcard | |
1671 | arp_sha: exact match or wildcard | |
1672 | arp_tha: exact match or wildcard | |
1673 | tcp_src: exact match or wildcard | |
1674 | tcp_dst: exact match or wildcard | |
1675 | udp_src: exact match or wildcard | |
1676 | udp_dst: exact match or wildcard | |
1677 | sctp_src: exact match or wildcard | |
1678 | sctp_dst: exact match or wildcard | |
1679 | icmp_type: exact match or wildcard | |
1680 | icmp_code: exact match or wildcard | |
1681 | icmpv6_type: exact match or wildcard | |
1682 | icmpv6_code: exact match or wildcard | |
1683 | nd_target: exact match or wildcard | |
1684 | nd_sll: exact match or wildcard | |
8811fc0a BP |
1685 | nd_tll: exact match or wildcard |
1686 | ||
1687 | table 1 ("table1"): | |
1688 | active=0, lookup=0, matched=0 | |
1689 | (same features) | |
1690 | ' | |
1691 | for i in `seq 2 253`; do | |
1692 | printf ' table %d ("table%d"): ditto\n' $i $i | |
26df8b3e | 1693 | done |
8811fc0a BP |
1694 | echo ' table 254 ("table254"): |
1695 | active=2, lookup=0, matched=0 | |
1696 | (same features)') > expout | |
26df8b3e SH |
1697 | |
1698 | (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" | |
1699 | pad7="00 00 00 00 00 00 00 " | |
1700 | mid="00 00 00 0f ff ff ff ff \ | |
1701 | 00 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \ | |
1702 | 00 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \ | |
1703 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1704 | 00 00 00 07 00 00 00 00 00 0f 42 40 " | |
1705 | tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" | |
1706 | ||
45a9c31d | 1707 | printf "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 " |
26df8b3e SH |
1708 | |
1709 | x=0 | |
1710 | printf "%02x $pad7" $x | |
1711 | printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' ' | |
45a9c31d BP |
1712 | printf "$mid 00 00 00 01 " |
1713 | printf "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 " | |
26df8b3e SH |
1714 | |
1715 | x=1 | |
1716 | while test $x -lt 254; do | |
1717 | printf "%02x $pad7" $x | |
1718 | printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' ' | |
45a9c31d | 1719 | printf "$mid 00 00 00 00 $tail " |
26df8b3e SH |
1720 | x=`expr $x + 1` |
1721 | done | |
1722 | ||
1723 | x=254 | |
1724 | printf "%02x $pad7" $x | |
1725 | printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' ' | |
45a9c31d | 1726 | printf "$mid 00 00 00 02 $tail") > in |
8b227701 | 1727 | AT_CHECK([ovs-ofctl ofp-print - < in], [0], [expout]) |
26df8b3e SH |
1728 | AT_CLEANUP |
1729 | ||
2e1ae200 JR |
1730 | AT_SETUP([OFPST_TABLE reply - OF1.3]) |
1731 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1732 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1733 | 04 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \ | |
1734 | 00 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \ | |
1735 | 00 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \ | |
1736 | 00 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \ | |
1737 | "], [0], [dnl | |
3c1bb396 BP |
1738 | OFPST_TABLE reply (OF1.3) (xid=0x1): |
1739 | table 0: | |
1740 | active=11, lookup=512, matched=256 | |
1741 | ||
1742 | table 1: | |
1743 | active=12, lookup=513, matched=257 | |
2e1ae200 JR |
1744 | ]) |
1745 | AT_CLEANUP | |
1746 | ||
f8e4867e | 1747 | AT_SETUP([OFPST_PORT request - 1.0]) |
fec00620 BP |
1748 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1749 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1750 | 01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \ | |
1751 | 00 00 00 00 \ | |
1752 | "], [0], [dnl | |
e1db42d6 | 1753 | OFPST_PORT request (xid=0x1): port_no=ANY |
fec00620 BP |
1754 | ]) |
1755 | AT_CLEANUP | |
1756 | ||
f8e4867e SH |
1757 | AT_SETUP([OFPST_PORT request - 1.1]) |
1758 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1759 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1760 | 02 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1761 | ff ff ff ff 00 00 00 00 \ | |
1762 | "], [0], [dnl | |
e1db42d6 | 1763 | OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY |
f8e4867e SH |
1764 | ]) |
1765 | AT_CLEANUP | |
1766 | ||
1767 | AT_SETUP([OFPST_PORT request - 1.2]) | |
1768 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1769 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1770 | 03 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1771 | ff ff ff ff 00 00 00 00 \ | |
1772 | "], [0], [dnl | |
e1db42d6 | 1773 | OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY |
f8e4867e SH |
1774 | ]) |
1775 | AT_CLEANUP | |
1776 | ||
2e1ae200 JR |
1777 | AT_SETUP([OFPST_PORT request - 1.3]) |
1778 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1779 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1780 | 04 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1781 | ff ff ff ff 00 00 00 00 \ | |
1782 | "], [0], [dnl | |
e1db42d6 | 1783 | OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY |
2e1ae200 JR |
1784 | ]) |
1785 | AT_CLEANUP | |
1786 | ||
f8e4867e | 1787 | AT_SETUP([OFPST_PORT reply - OF1.0]) |
fec00620 BP |
1788 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1789 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1790 | 01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \ | |
1791 | 00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \ | |
1792 | 00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \ | |
1793 | 00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1794 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1795 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1796 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1797 | 00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \ | |
1798 | 00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \ | |
1799 | 00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \ | |
1800 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1801 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1802 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1803 | 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
1804 | 00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \ | |
1805 | 00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \ | |
1806 | 00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1807 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1808 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1809 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1810 | 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \ | |
1811 | 00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \ | |
1812 | 00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \ | |
1813 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1814 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1815 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1816 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1817 | "], [0], [dnl | |
1818 | OFPST_PORT reply (xid=0x1): 4 ports | |
1819 | port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0 | |
1820 | tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0 | |
e1db42d6 | 1821 | port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0 |
fec00620 BP |
1822 | tx pkts=501, bytes=56092, drop=0, errs=0, coll=0 |
1823 | port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0 | |
1824 | tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0 | |
1825 | port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0 | |
1826 | tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0 | |
1827 | ]) | |
1828 | AT_CLEANUP | |
1829 | ||
f8e4867e SH |
1830 | AT_SETUP([OFPST_PORT reply - OF1.2]) |
1831 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1832 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1833 | 03 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1834 | 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \ | |
1835 | 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \ | |
1836 | 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \ | |
1837 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1838 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1839 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1840 | 00 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \ | |
1841 | 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \ | |
1842 | 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \ | |
1843 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1844 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1845 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1846 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1847 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \ | |
1848 | 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \ | |
1849 | 00 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \ | |
1850 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1851 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1852 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1853 | 00 00 00 00 00 00 00 00 \ | |
1854 | "], [0], [dnl | |
1855 | OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports | |
1856 | port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0 | |
1857 | tx pkts=136, bytes=11512, drop=0, errs=0, coll=0 | |
e1db42d6 | 1858 | port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 |
f8e4867e SH |
1859 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 |
1860 | port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 | |
1861 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 | |
1862 | ]) | |
1863 | AT_CLEANUP | |
1864 | ||
65e0be10 BP |
1865 | AT_SETUP([OFPST_PORT reply - OF1.3]) |
1866 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1867 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1868 | 04 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1869 | 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \ | |
1870 | 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \ | |
1871 | 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \ | |
1872 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1873 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1874 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1875 | 00 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \ | |
1876 | ff ff ff fe 00 00 00 00 \ | |
1877 | 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \ | |
1878 | 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \ | |
1879 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1880 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1881 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1882 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1883 | ff ff ff ff ff ff ff ff \ | |
1884 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \ | |
1885 | 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \ | |
1886 | 00 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \ | |
1887 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1888 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1889 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1890 | 00 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \ | |
1891 | "], [0], [dnl | |
1892 | OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports | |
1893 | port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0 | |
1894 | tx pkts=136, bytes=11512, drop=0, errs=0, coll=0 | |
1895 | duration=1.001s | |
1896 | port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 | |
1897 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 | |
1898 | port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 | |
1899 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 | |
1900 | duration=0.123s | |
1901 | ]) | |
1902 | AT_CLEANUP | |
1903 | ||
5469537b BP |
1904 | AT_SETUP([OFPST_PORT reply - OF1.4]) |
1905 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1906 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1907 | 05 13 00 88 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1908 | 00 78 00 00 00 00 00 02 00 00 00 01 00 0f 42 40 \ | |
1909 | 00 00 00 00 00 01 95 56 00 00 00 00 00 00 00 88 \ | |
1910 | 00 00 00 00 02 5d 08 98 00 00 00 00 00 00 2c f8 \ | |
1911 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1912 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1913 | 00 00 00 28 00 00 00 00 00 00 00 00 00 00 00 fc \ | |
1914 | 00 00 00 00 00 00 00 fd 00 00 00 00 00 00 00 fe \ | |
1915 | 00 00 00 00 00 00 00 ff \ | |
1916 | "], [0], [dnl | |
1917 | OFPST_PORT reply (OF1.4) (xid=0x2): 1 ports | |
1918 | port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=252, over=253, crc=254 | |
1919 | tx pkts=136, bytes=11512, drop=0, errs=0, coll=255 | |
1920 | duration=1.001s | |
1921 | ]) | |
1922 | AT_CLEANUP | |
1923 | ||
64626975 | 1924 | AT_SETUP([OFPST_QUEUE request - OF1.0]) |
fec00620 BP |
1925 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1926 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1927 | 01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \ | |
1928 | ff ff ff ff \ | |
1929 | "], [0], [dnl | |
3e461c2c | 1930 | OFPST_QUEUE request (xid=0x1): port=ANY queue=ALL |
fec00620 BP |
1931 | ]) |
1932 | AT_CLEANUP | |
1933 | ||
64626975 SH |
1934 | AT_SETUP([OFPST_QUEUE request - OF1.1]) |
1935 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1936 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1937 | 02 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \ | |
7f05e7ab | 1938 | ff ff ff ff ff ff ff ff \ |
64626975 | 1939 | "], [0], [dnl |
3e461c2c | 1940 | OFPST_QUEUE request (OF1.1) (xid=0x2): port=ANY queue=ALL |
64626975 SH |
1941 | ]) |
1942 | AT_CLEANUP | |
1943 | ||
1944 | AT_SETUP([OFPST_QUEUE request - OF1.2]) | |
1945 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1946 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1947 | 03 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \ | |
7f05e7ab | 1948 | ff ff ff ff ff ff ff ff \ |
64626975 | 1949 | "], [0], [dnl |
3e461c2c | 1950 | OFPST_QUEUE request (OF1.2) (xid=0x2): port=ANY queue=ALL |
64626975 SH |
1951 | ]) |
1952 | AT_CLEANUP | |
1953 | ||
2e1ae200 JR |
1954 | AT_SETUP([OFPST_QUEUE request - OF1.3]) |
1955 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1956 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1957 | 04 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \ | |
1958 | ff ff ff ff ff ff ff ff \ | |
1959 | "], [0], [dnl | |
3e461c2c | 1960 | OFPST_QUEUE request (OF1.3) (xid=0x2): port=ANY queue=ALL |
2e1ae200 JR |
1961 | ]) |
1962 | AT_CLEANUP | |
1963 | ||
64626975 | 1964 | AT_SETUP([OFPST_QUEUE reply - OF1.0]) |
fec00620 BP |
1965 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1966 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1967 | 01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \ | |
1968 | 00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \ | |
1969 | 00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \ | |
1970 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1971 | 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
1972 | 00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \ | |
1973 | 00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
1974 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1975 | 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \ | |
1976 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1977 | 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \ | |
1978 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1979 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1980 | "], [0], [dnl | |
1981 | OFPST_QUEUE reply (xid=0x1): 6 queues | |
6dc34a0d BP |
1982 | port 3 queue 1: bytes=302, pkts=1, errors=0, duration=? |
1983 | port 3 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
1984 | port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=? | |
1985 | port 2 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
1986 | port 1 queue 1: bytes=0, pkts=0, errors=0, duration=? | |
1987 | port 1 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
fec00620 BP |
1988 | ]) |
1989 | AT_CLEANUP | |
1990 | ||
64626975 SH |
1991 | AT_SETUP([OFPST_QUEUE reply - OF1.1]) |
1992 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1993 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1994 | 02 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \ | |
1995 | 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \ | |
1996 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
1997 | 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1998 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1999 | 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \ | |
2000 | 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \ | |
2001 | 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2002 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2003 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2004 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2005 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2006 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2007 | "], [0], [dnl | |
2008 | OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues | |
6dc34a0d BP |
2009 | port 3 queue 1: bytes=302, pkts=1, errors=0, duration=? |
2010 | port 3 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
2011 | port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=? | |
2012 | port 2 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
2013 | port 1 queue 1: bytes=0, pkts=0, errors=0, duration=? | |
2014 | port 1 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
64626975 SH |
2015 | ]) |
2016 | AT_CLEANUP | |
2017 | ||
2018 | AT_SETUP([OFPST_QUEUE reply - OF1.2]) | |
2019 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2020 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2021 | 03 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \ | |
2022 | 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \ | |
2023 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2024 | 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2025 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2026 | 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \ | |
2027 | 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \ | |
2028 | 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2029 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2030 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2031 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2032 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2033 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2034 | "], [0], [dnl | |
2035 | OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues | |
6dc34a0d BP |
2036 | port 3 queue 1: bytes=302, pkts=1, errors=0, duration=? |
2037 | port 3 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
2038 | port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=? | |
2039 | port 2 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
2040 | port 1 queue 1: bytes=0, pkts=0, errors=0, duration=? | |
2041 | port 1 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
2042 | ]) | |
2043 | AT_CLEANUP | |
be0c30df BP |
2044 | |
2045 | AT_SETUP([OFPST_QUEUE reply - OF1.3]) | |
2046 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2047 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2048 | 04 13 01 00 00 00 00 01 00 05 00 00 00 00 00 00 \ | |
2049 | 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \ | |
2050 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2051 | 00 00 00 64 1d cd 65 00 \ | |
2052 | 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2053 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2054 | 00 00 00 64 1d cd 65 00 \ | |
2055 | 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \ | |
2056 | 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \ | |
2057 | 00 00 00 64 1d cd 65 00 \ | |
2058 | 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2059 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2060 | 00 00 00 64 1d cd 65 00 \ | |
2061 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2062 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2063 | 00 00 00 64 1d cd 65 00 \ | |
2064 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2065 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2066 | ff ff ff ff ff ff ff ff \ | |
2067 | "], [0], [dnl | |
2068 | OFPST_QUEUE reply (OF1.3) (xid=0x1): 6 queues | |
b1634591 BP |
2069 | port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s |
2070 | port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s | |
2071 | port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s | |
2072 | port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s | |
2073 | port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s | |
6dc34a0d | 2074 | port 1 queue 2: bytes=0, pkts=0, errors=0, duration=? |
64626975 SH |
2075 | ]) |
2076 | AT_CLEANUP | |
2077 | ||
1bb2cdbe BP |
2078 | AT_SETUP([OFPST_QUEUE reply - OF1.4]) |
2079 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2080 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2081 | 05 13 01 30 00 00 00 01 00 05 00 00 00 00 00 00 \ | |
2082 | 00 30 00 00 00 00 00 00 \ | |
2083 | 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \ | |
2084 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2085 | 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \ | |
2086 | 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2087 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2088 | 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \ | |
2089 | 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \ | |
2090 | 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \ | |
2091 | 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \ | |
2092 | 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2093 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2094 | 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \ | |
2095 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2096 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2097 | 00 00 00 64 1d cd 65 00 00 30 00 00 00 00 00 00 \ | |
2098 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2099 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2100 | ff ff ff ff ff ff ff ff \ | |
2101 | "], [0], [dnl | |
2102 | OFPST_QUEUE reply (OF1.4) (xid=0x1): 6 queues | |
2103 | port 3 queue 1: bytes=302, pkts=1, errors=0, duration=100.500s | |
2104 | port 3 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s | |
2105 | port 2 queue 1: bytes=2100, pkts=20, errors=0, duration=100.500s | |
2106 | port 2 queue 2: bytes=0, pkts=0, errors=0, duration=100.500s | |
2107 | port 1 queue 1: bytes=0, pkts=0, errors=0, duration=100.500s | |
2108 | port 1 queue 2: bytes=0, pkts=0, errors=0, duration=? | |
2109 | ]) | |
2110 | AT_CLEANUP | |
2111 | ||
7b809df9 BP |
2112 | AT_SETUP([NXST_GROUP request - OF1.0]) |
2113 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2114 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2115 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \ | |
2116 | ff ff ff ff 00 00 00 00 \ | |
2117 | "], [0], [NXST_GROUP request (xid=0x4): group_id=ANY | |
2118 | ]) | |
2119 | AT_CLEANUP | |
2120 | ||
2121 | AT_SETUP([OFPST_GROUP request - OF1.1]) | |
7395c052 NZ |
2122 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
2123 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2124 | 02 12 00 18 00 00 00 02 00 06 00 00 00 00 00 00 \ | |
2125 | ff ff ff ff 00 00 00 00 \ | |
2126 | "], [0], [OFPST_GROUP request (OF1.1) (xid=0x2): group_id=ANY | |
2127 | ]) | |
2128 | AT_CLEANUP | |
2129 | ||
7b809df9 BP |
2130 | AT_SETUP([NXST_GROUP reply - OF1.0]) |
2131 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2132 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2133 | 01 11 00 b8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 07 00 00 00 00 \ | |
2134 | 00 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \ | |
2135 | 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \ | |
2136 | 00 00 00 12 1d cd 65 00 \ | |
2137 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2138 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2139 | 00 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \ | |
2140 | 00 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \ | |
2141 | 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \ | |
2142 | 00 00 00 10 1d cd 65 00 \ | |
2143 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2144 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2145 | "], [0], [dnl | |
2146 | NXST_GROUP reply (xid=0x4): | |
2147 | 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 | |
2148 | 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 | |
2149 | ]) | |
2150 | AT_CLEANUP | |
2151 | ||
7395c052 NZ |
2152 | AT_SETUP([OFPST_GROUP reply - OF1.1]) |
2153 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2154 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2155 | 02 13 00 a0 00 00 00 02 00 06 00 00 00 00 00 00 \ | |
2156 | 00 50 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \ | |
2157 | 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \ | |
2158 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2159 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2160 | 00 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \ | |
2161 | 00 40 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \ | |
2162 | 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \ | |
2163 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2164 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2165 | "], [0], [dnl | |
2166 | OFPST_GROUP reply (OF1.1) (xid=0x2): | |
2167 | 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 | |
2168 | 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 | |
2169 | ]) | |
2170 | AT_CLEANUP | |
2171 | ||
2172 | AT_SETUP([OFPST_GROUP reply - OF1.3]) | |
2173 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2174 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2175 | 04 13 00 b0 00 00 00 02 00 06 00 00 00 00 00 00 \ | |
2176 | 00 58 00 00 87 65 43 21 00 00 00 04 00 00 00 00 \ | |
2177 | 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \ | |
2178 | 00 00 00 12 1d cd 65 00 \ | |
2179 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2180 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2181 | 00 00 00 00 00 00 66 66 00 00 00 00 00 33 33 33 \ | |
2182 | 00 48 00 00 00 00 00 05 00 00 00 02 00 00 00 00 \ | |
2183 | 00 00 00 00 00 00 88 88 00 00 00 00 00 77 77 77 \ | |
2184 | 00 00 00 10 1d cd 65 00 \ | |
2185 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2186 | 00 00 00 00 00 00 11 11 00 00 00 00 00 22 22 22 \ | |
2187 | "], [0], [dnl | |
2188 | OFPST_GROUP reply (OF1.3) (xid=0x2): | |
b1634591 BP |
2189 | 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 |
2190 | 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 |
2191 | ]) |
2192 | AT_CLEANUP | |
2193 | ||
7b809df9 BP |
2194 | AT_SETUP([NXST_GROUP_DESC request - OF1.0]) |
2195 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2196 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2197 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \ | |
2198 | 00 00 00 01 00 00 00 00 | |
2199 | "], [0], [NXST_GROUP_DESC request (xid=0x4): group_id=1 | |
2200 | ]) | |
2201 | AT_CLEANUP | |
2202 | ||
19187a71 | 2203 | AT_SETUP([OFPST_GROUP_DESC request - OF1.1]) |
7395c052 NZ |
2204 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
2205 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2206 | 02 12 00 10 00 00 00 02 00 07 00 00 00 00 00 00 \ | |
19187a71 BP |
2207 | "], [0], [OFPST_GROUP_DESC request (OF1.1) (xid=0x2): group_id=ALL |
2208 | ]) | |
2209 | AT_CLEANUP | |
2210 | ||
2211 | AT_SETUP([OFPST_GROUP_DESC request - OF1.5]) | |
2212 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2213 | AT_CHECK([ovs-ofctl ofp-print "\ | |
d4d3f33e MT |
2214 | 06 12 00 18 00 00 00 02 00 07 00 00 00 00 00 00 \ |
2215 | 00 00 00 01 00 00 00 00 | |
19187a71 | 2216 | "], [0], [OFPST_GROUP_DESC request (OF1.5) (xid=0x2): group_id=1 |
7395c052 NZ |
2217 | ]) |
2218 | AT_CLEANUP | |
2219 | ||
7b809df9 BP |
2220 | AT_SETUP([NXST_GROUP_DESC reply - OF1.0]) |
2221 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2222 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2223 | 01 11 00 c8 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 08 00 00 00 00 \ | |
2224 | 00 b0 01 00 00 00 20 00 00 60 00 00 00 00 00 00 \ | |
2225 | 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
2226 | 00 00 00 08 00 64 00 00 \ | |
2227 | 00 01 00 08 00 00 00 01 \ | |
2228 | 00 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \ | |
2229 | 00 00 00 08 00 c8 00 00 \ | |
2230 | 00 01 00 08 00 00 00 02 \ | |
2231 | 00 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \ | |
2232 | 00 00 00 08 00 c8 00 00 \ | |
2233 | 00 01 00 08 00 00 00 03 \ | |
2234 | ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \ | |
2235 | 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2236 | 00 00 00 00 00 00 00 00 \ | |
2237 | 80 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \ | |
2238 | 14 01 ff 00 00 00 00 00 \ | |
2239 | "], [0], [dnl | |
2240 | NXST_GROUP_DESC reply (xid=0x4): | |
2241 | group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 | |
2242 | ]) | |
2243 | AT_CLEANUP | |
2244 | ||
76c41209 | 2245 | AT_SETUP([OFPST_GROUP_DESC reply - OF1.1]) |
7395c052 NZ |
2246 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
2247 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2248 | 02 13 00 78 00 00 00 02 00 07 00 00 00 00 00 00 \ | |
2249 | 00 68 01 00 00 00 20 00 \ | |
2250 | 00 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \ | |
2251 | 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
2252 | 00 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \ | |
2253 | 00 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2254 | 00 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \ | |
2255 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
2256 | "], [0], [dnl | |
2257 | OFPST_GROUP_DESC reply (OF1.1) (xid=0x2): | |
2258 | 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 | |
2259 | ]) | |
2260 | AT_CLEANUP | |
2261 | ||
76c41209 SH |
2262 | AT_SETUP([OFPST_GROUP_DESC reply - OF1.5]) |
2263 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2264 | AT_CHECK([ovs-ofctl ofp-print "\ | |
0c4b9393 | 2265 | 06 13 00 d8 00 00 00 02 00 07 00 00 00 00 00 00 \ |
3986cae6 | 2266 | 00 c8 01 00 00 00 20 00 00 78 00 00 00 00 00 00 \ |
76c41209 SH |
2267 | 00 28 00 10 00 00 00 00 00 00 00 10 00 00 00 01 \ |
2268 | 00 00 00 00 00 00 00 00 00 00 00 08 00 64 00 00 \ | |
2269 | 00 01 00 08 00 00 00 01 \ | |
2270 | 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \ | |
2271 | 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \ | |
2272 | 00 01 00 08 00 00 00 02 \ | |
2273 | 00 28 00 10 00 00 00 02 00 00 00 10 00 00 00 03 \ | |
2274 | 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \ | |
2275 | 00 01 00 08 00 00 00 03 \ | |
0c4b9393 SH |
2276 | ff ff 00 3b 00 00 15 40 00 00 00 01 00 00 00 00 \ |
2277 | 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2278 | 00 00 00 00 00 00 00 00 \ | |
2279 | 80 00 18 04 ff ff ff 00 80 00 1a 02 ff ff 80 00 \ | |
2280 | 14 01 ff 00 00 00 00 00 \ | |
76c41209 SH |
2281 | "], [0], [dnl |
2282 | OFPST_GROUP_DESC reply (OF1.5) (xid=0x2): | |
68dfc25b | 2283 | group_id=8192,type=select,selection_method=hash,fields(ip_dst=255.255.255.0,nw_proto,tcp_src),bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 |
76c41209 SH |
2284 | ]) |
2285 | AT_CLEANUP | |
2286 | ||
7b809df9 BP |
2287 | AT_SETUP([NXST_GROUP_FEATURES request]) |
2288 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2289 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2290 | 01 10 00 18 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \ | |
2291 | "], [0], [NXST_GROUP_FEATURES request (xid=0x4): | |
2292 | ]) | |
2293 | AT_CLEANUP | |
2294 | ||
7395c052 NZ |
2295 | AT_SETUP([OFPST_GROUP_FEATURES request]) |
2296 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2297 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2298 | 03 12 00 10 00 00 00 02 00 08 00 00 00 00 00 00 \ | |
2299 | "], [0], [OFPST_GROUP_FEATURES request (OF1.2) (xid=0x2): | |
2300 | ]) | |
2301 | AT_CLEANUP | |
2302 | ||
7b809df9 BP |
2303 | AT_SETUP([NXST_GROUP_FEATURES reply]) |
2304 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2305 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2306 | 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 09 00 00 00 00 \ | |
2307 | 00 00 00 0f 00 00 00 0f \ | |
2308 | 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \ | |
2309 | 00 00 00 01 00 00 00 07 00 00 00 0f 00 00 00 1f \ | |
2310 | "], [0], [dnl | |
2311 | NXST_GROUP_FEATURES reply (xid=0x4): | |
2312 | Group table: | |
2313 | Types: 0xf | |
2314 | Capabilities: 0xf | |
2315 | all group: | |
2316 | max_groups=0x1 | |
2317 | actions: output | |
2318 | select group: | |
2319 | max_groups=0x2 | |
2320 | actions: output set_vlan_vid set_vlan_pcp | |
2321 | indirect group: | |
2322 | max_groups=0x3 | |
2323 | actions: output set_vlan_vid set_vlan_pcp strip_vlan | |
2324 | fast failover group: | |
2325 | max_groups=0x4 | |
2326 | actions: output set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src | |
2327 | ]) | |
2328 | AT_CLEANUP | |
2329 | ||
7395c052 NZ |
2330 | AT_SETUP([OFPST_GROUP_FEATURES reply]) |
2331 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2332 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2333 | 03 13 00 38 00 00 00 02 00 08 00 00 00 00 00 00 \ | |
2334 | 00 00 00 0f 00 00 00 0f \ | |
2335 | 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 \ | |
08d1e234 | 2336 | 00 00 00 01 00 02 00 01 00 06 00 01 00 0e 00 01 \ |
7395c052 NZ |
2337 | "], [0], [dnl |
2338 | OFPST_GROUP_FEATURES reply (OF1.2) (xid=0x2): | |
2339 | Group table: | |
2340 | Types: 0xf | |
2341 | Capabilities: 0xf | |
08d1e234 BP |
2342 | all group: |
2343 | max_groups=0x1 | |
2344 | actions: output | |
2345 | select group: | |
2346 | max_groups=0x2 | |
2347 | actions: output push_vlan | |
2348 | indirect group: | |
2349 | max_groups=0x3 | |
2350 | actions: output strip_vlan push_vlan | |
2351 | fast failover group: | |
2352 | max_groups=0x4 | |
2353 | actions: output strip_vlan push_vlan push_mpls | |
7395c052 NZ |
2354 | ]) |
2355 | AT_CLEANUP | |
2356 | ||
2357 | AT_SETUP([OFPST_PORT_DESC request - OF1.0]) | |
2358 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2359 | AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl | |
70ae4f93 BP |
2360 | OFPST_PORT_DESC request (xid=0x1): port=ANY |
2361 | ]) | |
2362 | AT_CLEANUP | |
2363 | ||
2364 | AT_SETUP([OFPST_PORT_DESC request - OF1.5]) | |
2365 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2366 | AT_CHECK([ovs-ofctl ofp-print "\ | |
7448d548 MT |
2367 | 06 12 00 18 00 00 00 02 00 0d 00 00 00 00 00 00 \ |
2368 | 00 00 00 05 00 00 00 00"], [0], [dnl | |
70ae4f93 | 2369 | OFPST_PORT_DESC request (OF1.5) (xid=0x2): port=5 |
7395c052 NZ |
2370 | ]) |
2371 | AT_CLEANUP | |
2372 | ||
2be393ed JP |
2373 | AT_SETUP([OFPST_PORT_DESC reply - OF1.0]) |
2374 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2375 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2376 | 01 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \ | |
2377 | 00 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \ | |
2378 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \ | |
2379 | 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
2380 | "], [0], [dnl | |
2381 | OFPST_PORT_DESC reply (xid=0x0): | |
2382 | 3(eth0): addr:50:54:00:00:00:01 | |
2383 | config: PORT_DOWN | |
2384 | state: LINK_DOWN | |
2385 | current: 100MB-FD AUTO_NEG | |
2386 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
2387 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
2388 | speed: 100 Mbps now, 100 Mbps max | |
2389 | ]) | |
2390 | AT_CLEANUP | |
2391 | ||
8c3cc785 BP |
2392 | AT_SETUP([OFPST_PORT_DESC reply - OF1.4]) |
2393 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2394 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2395 | 05 13 00 58 00 00 00 02 00 0d 00 00 00 00 00 00 \ | |
2396 | 00 00 00 03 00 48 00 00 50 54 00 00 00 01 00 00 \ | |
2397 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2398 | 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 \ | |
2399 | 00 00 20 08 00 00 28 0f 00 00 28 0f 00 00 00 00 \ | |
2400 | 00 01 86 a0 00 01 86 a0 \ | |
2401 | "], [0], [dnl | |
2402 | OFPST_PORT_DESC reply (OF1.4) (xid=0x2): | |
2403 | 3(eth0): addr:50:54:00:00:00:01 | |
2404 | config: 0 | |
2405 | state: 0 | |
2406 | current: 100MB-FD AUTO_NEG | |
2407 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
2408 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
2409 | speed: 100 Mbps now, 100 Mbps max | |
2410 | ]) | |
2411 | AT_CLEANUP | |
2412 | ||
638a19b0 JR |
2413 | AT_SETUP([OFPT_METER_MOD request - OF1.3]) |
2414 | AT_KEYWORDS([ofp-print]) | |
2415 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2416 | 04 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \ | |
2417 | 00 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \ | |
2418 | "], [0], [dnl | |
2419 | OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands= | |
2420 | type=drop rate=1024 burst_size=128 | |
2421 | ]) | |
2422 | AT_CLEANUP | |
2423 | ||
f99d6aa0 BP |
2424 | AT_SETUP([OFPT_METER_MOD request - bad band - OF1.3]) |
2425 | AT_KEYWORDS([ofp-print]) | |
2426 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2427 | 04 1d 00 20 85 01 d7 38 00 00 00 00 00 00 00 01 | |
2428 | 00 05 00 10 00 00 00 02 00 00 00 02 00 00 00 00 | |
2429 | "], [0], [dnl | |
2430 | OFPT_METER_MOD (OF1.3) (xid=0x8501d738): ***decode error: OFPMMFC_BAD_BAND*** | |
2d071a32 BP |
2431 | 00000000 04 1d 00 20 85 01 d7 38-00 00 00 00 00 00 00 01 |... ...8........| |
2432 | 00000010 00 05 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................| | |
f99d6aa0 BP |
2433 | ]) |
2434 | AT_CLEANUP | |
2435 | ||
142cdb01 BP |
2436 | AT_SETUP([OFPT_METER_MOD request - bad command - OF1.3]) |
2437 | AT_KEYWORDS([ofp-print]) | |
2438 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2439 | 04 1d 00 10 28 a6 26 52 00 08 00 00 00 00 00 01 | |
2440 | "], [0], [dnl | |
2441 | OFPT_METER_MOD (OF1.3) (xid=0x28a62652): ***decode error: OFPMMFC_BAD_COMMAND*** | |
2d071a32 | 2442 | 00000000 04 1d 00 10 28 a6 26 52-00 08 00 00 00 00 00 01 |....@{:@.&R........| |
142cdb01 BP |
2443 | ]) |
2444 | AT_CLEANUP | |
2445 | ||
13b1febe BP |
2446 | AT_SETUP([OFPT_METER_MOD request - bad flags - OF1.3]) |
2447 | AT_KEYWORDS([ofp-print]) | |
2448 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2449 | 04 1d 00 20 82 b3 a1 a4 00 00 00 03 00 00 00 01 \ | |
2450 | 00 01 00 10 00 00 00 02 00 00 00 02 00 00 00 00 \ | |
2451 | "], [0], [dnl | |
2452 | OFPT_METER_MOD (OF1.3) (xid=0x82b3a1a4): ***decode error: OFPMMFC_BAD_FLAGS*** | |
2d071a32 BP |
2453 | 00000000 04 1d 00 20 82 b3 a1 a4-00 00 00 03 00 00 00 01 |... ............| |
2454 | 00000010 00 01 00 10 00 00 00 02-00 00 00 02 00 00 00 00 |................| | |
13b1febe BP |
2455 | ]) |
2456 | AT_CLEANUP | |
2457 | ||
638a19b0 JR |
2458 | AT_SETUP([OFPST_METER request - OF1.3]) |
2459 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2460 | AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl | |
2461 | OFPST_METER request (OF1.3) (xid=0x2): meter=1 | |
2462 | ]) | |
2463 | AT_CLEANUP | |
2464 | ||
2465 | AT_SETUP([OFPST_METER_CONFIG request - OF1.3]) | |
2466 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2467 | AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl | |
2468 | OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1 | |
2469 | ]) | |
2470 | AT_CLEANUP | |
2471 | ||
2472 | AT_SETUP([OFPST_METER_FEATURES request - OF1.3]) | |
2473 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2474 | AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl | |
2475 | OFPST_METER_FEATURES request (OF1.3) (xid=0x2): | |
2476 | ]) | |
2477 | AT_CLEANUP | |
2478 | ||
2479 | AT_SETUP([OFPST_METER_FEATURES reply - OF1.3]) | |
2480 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2481 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2482 | 04 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \ | |
6e055a6c | 2483 | 00 01 00 00 00 00 00 06 00 00 00 0F 10 02 00 00 \ |
638a19b0 JR |
2484 | "], [0], [dnl |
2485 | OFPST_METER_FEATURES reply (OF1.3) (xid=0x2): | |
2486 | max_meter:65536 max_bands:16 max_color:2 | |
2487 | band_types: drop dscp_remark | |
2488 | capabilities: kbps pktps burst stats | |
2489 | ]) | |
2490 | AT_CLEANUP | |
2491 | ||
2492 | AT_SETUP([OFPST_METER_CONFIG reply - OF1.3]) | |
2493 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2494 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2495 | 04 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \ | |
2496 | 00 28 00 05 00 00 00 01 \ | |
2497 | 00 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \ | |
2498 | 00 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \ | |
2499 | 00 18 00 09 00 00 00 02 \ | |
2500 | 00 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \ | |
2501 | "], [0], [dnl | |
2502 | OFPST_METER_CONFIG reply (OF1.3) (xid=0x2): | |
2503 | meter=1 kbps burst bands= | |
2504 | type=drop rate=65536 burst_size=1280 | |
2505 | type=dscp_remark rate=1048576 burst_size=61440 prec_level=0 | |
2506 | ||
2507 | meter=2 kbps stats bands= | |
2508 | type=drop rate=131072 | |
2509 | ]) | |
2510 | AT_CLEANUP | |
2511 | ||
2512 | AT_SETUP([OFPST_METER reply - OF1.3]) | |
2513 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2514 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2515 | 04 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \ | |
2516 | 00 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \ | |
2517 | 00 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \ | |
0445637d | 2518 | 00 00 01 8a 0a 6e 23 44 \ |
638a19b0 JR |
2519 | 00 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \ |
2520 | 00 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \ | |
2521 | 00 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \ | |
2522 | 00 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \ | |
0445637d | 2523 | 00 00 01 87 0a 23 6e 44 \ |
638a19b0 JR |
2524 | 00 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \ |
2525 | "], [0], [dnl | |
2526 | OFPST_METER reply (OF1.3) (xid=0x2): | |
0445637d | 2527 | meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.174990148s bands: |
638a19b0 JR |
2528 | 0: packet_count:126 byte_count:13363 |
2529 | 1: packet_count:231 byte_count:37934 | |
2530 | ||
0445637d | 2531 | meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.170094148s bands: |
638a19b0 JR |
2532 | 0: packet_count:42 byte_count:1075 |
2533 | ]) | |
2534 | AT_CLEANUP | |
2535 | ||
5deff5aa AW |
2536 | AT_SETUP([OFPST_TABLE_FEATURES request - OF1.3]) |
2537 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2538 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2539 | 04 13 09 40 00 00 00 d5 00 0c 00 01 00 00 00 00 \ | |
2540 | 09 30 00 00 00 00 00 00 74 61 62 6c 65 30 00 00 \ | |
2541 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2542 | 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \ | |
2543 | ff ff ff ff ff ff ff ff 00 00 00 03 00 0f 42 40 \ | |
2544 | 00 00 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \ | |
2545 | 00 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \ | |
2546 | 00 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \ | |
2547 | 00 01 00 2c 00 01 00 08 00 00 00 00 00 02 00 08 \ | |
2548 | 00 00 00 00 00 03 00 08 00 00 00 00 00 04 00 08 \ | |
2549 | 00 00 00 00 00 05 00 08 00 00 00 00 00 00 00 00 \ | |
2550 | 00 02 01 01 01 02 03 04 05 06 07 08 09 0a 0b 0c \ | |
2551 | 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c \ | |
2552 | 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c \ | |
2553 | 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c \ | |
2554 | 3d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c \ | |
2555 | 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c \ | |
2556 | 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c \ | |
2557 | 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c \ | |
2558 | 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c \ | |
2559 | 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c \ | |
2560 | 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac \ | |
2561 | ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc \ | |
2562 | bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc \ | |
2563 | cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc \ | |
2564 | dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec \ | |
2565 | ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc \ | |
2566 | fd 00 00 00 00 00 00 00 00 03 01 01 01 02 03 04 \ | |
2567 | 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 \ | |
2568 | 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 \ | |
2569 | 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 \ | |
2570 | 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 \ | |
2571 | 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 \ | |
2572 | 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 \ | |
2573 | 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 \ | |
2574 | 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 \ | |
2575 | 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 \ | |
2576 | 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 \ | |
2577 | a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 \ | |
2578 | b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 \ | |
2579 | c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 \ | |
2580 | d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 \ | |
2581 | e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 \ | |
2582 | f5 f6 f7 f8 f9 fa fb fc fd 00 00 00 00 00 00 00 \ | |
2583 | 00 04 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \ | |
2584 | 00 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \ | |
2585 | 00 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \ | |
2586 | 00 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \ | |
2587 | 00 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \ | |
2588 | 00 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \ | |
2589 | 00 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \ | |
2590 | 00 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \ | |
2591 | 00 00 00 00 00 00 00 00 00 05 00 84 00 00 00 08 \ | |
2592 | 00 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \ | |
2593 | 00 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \ | |
2594 | 00 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \ | |
2595 | 00 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \ | |
2596 | 00 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \ | |
2597 | 00 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \ | |
2598 | 00 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \ | |
2599 | 00 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \ | |
2600 | 00 06 00 84 00 00 00 08 00 00 00 00 00 0b 00 08 \ | |
2601 | 00 00 00 00 00 0c 00 08 00 00 00 00 00 0f 00 08 \ | |
2602 | 00 00 00 00 00 10 00 08 00 00 00 00 00 11 00 08 \ | |
2603 | 00 00 00 00 00 12 00 08 00 00 00 00 00 13 00 08 \ | |
2604 | 00 00 00 00 00 14 00 08 00 00 00 00 00 15 00 08 \ | |
2605 | 00 00 00 00 00 16 00 08 00 00 00 00 00 17 00 08 \ | |
2606 | 00 00 00 00 00 18 00 08 00 00 00 00 00 19 00 08 \ | |
2607 | 00 00 00 00 00 1a 00 08 00 00 00 00 00 1b 00 08 \ | |
2608 | 00 00 00 00 00 00 00 00 00 07 00 84 00 00 00 08 \ | |
2609 | 00 00 00 00 00 0b 00 08 00 00 00 00 00 0c 00 08 \ | |
2610 | 00 00 00 00 00 0f 00 08 00 00 00 00 00 10 00 08 \ | |
2611 | 00 00 00 00 00 11 00 08 00 00 00 00 00 12 00 08 \ | |
2612 | 00 00 00 00 00 13 00 08 00 00 00 00 00 14 00 08 \ | |
2613 | 00 00 00 00 00 15 00 08 00 00 00 00 00 16 00 08 \ | |
2614 | 00 00 00 00 00 17 00 08 00 00 00 00 00 18 00 08 \ | |
2615 | 00 00 00 00 00 19 00 08 00 00 00 00 00 1a 00 08 \ | |
2616 | 00 00 00 00 00 1b 00 08 00 00 00 00 00 00 00 00 \ | |
2617 | 00 08 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \ | |
2618 | 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \ | |
2619 | 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \ | |
2620 | 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \ | |
2621 | 80 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \ | |
2622 | 80 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \ | |
2623 | 80 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \ | |
2624 | 80 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \ | |
2625 | 80 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \ | |
2626 | 80 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \ | |
2627 | 80 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \ | |
2628 | 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \ | |
2629 | 80 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \ | |
2630 | 80 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \ | |
2631 | 00 0a 00 dc 80 00 4c 08 00 01 3e 04 00 01 40 04 \ | |
2632 | 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \ | |
2633 | 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \ | |
2634 | 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \ | |
2635 | 80 00 08 06 80 00 06 06 80 00 0a 02 00 00 08 02 \ | |
2636 | 80 00 0c 02 80 00 0e 01 80 00 44 04 80 00 46 01 \ | |
2637 | 80 00 48 01 80 00 16 04 80 00 18 04 80 00 34 10 \ | |
2638 | 80 00 36 10 80 00 38 04 80 00 14 01 00 00 0a 01 \ | |
2639 | 80 00 10 01 80 00 12 01 00 01 3a 01 00 01 34 01 \ | |
2640 | 80 00 2a 02 80 00 2c 04 80 00 2e 04 80 00 30 06 \ | |
2641 | 80 00 32 06 80 00 1a 02 80 00 1c 02 00 01 44 02 \ | |
2642 | 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \ | |
2643 | 80 00 26 01 80 00 28 01 80 00 3a 01 80 00 3c 01 \ | |
2644 | 80 00 3e 10 80 00 40 06 80 00 42 06 00 00 00 00 \ | |
2645 | 00 0c 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \ | |
2646 | 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \ | |
2647 | 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \ | |
2648 | 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \ | |
2649 | 80 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \ | |
2650 | 80 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \ | |
2651 | 80 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \ | |
2652 | 80 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \ | |
2653 | 80 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \ | |
2654 | 80 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \ | |
2655 | 80 00 22 02 80 00 24 02 00 0d 00 a8 80 00 4c 08 \ | |
2656 | 00 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \ | |
2657 | 80 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \ | |
2658 | 00 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \ | |
2659 | 00 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \ | |
2660 | 00 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \ | |
2661 | 80 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \ | |
2662 | 80 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \ | |
2663 | 00 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \ | |
2664 | 80 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \ | |
2665 | 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \ | |
2666 | 00 0e 00 a8 80 00 4c 08 00 01 3e 04 00 01 40 04 \ | |
2667 | 80 00 04 08 00 00 00 02 80 00 00 04 00 01 42 04 \ | |
2668 | 00 01 00 04 00 01 02 04 00 01 04 04 00 01 06 04 \ | |
2669 | 00 01 08 04 00 01 0a 04 00 01 0c 04 00 01 0e 04 \ | |
2670 | 80 00 08 06 80 00 06 06 00 00 08 02 80 00 0c 02 \ | |
2671 | 80 00 0e 01 80 00 44 04 80 00 46 01 80 00 16 04 \ | |
2672 | 80 00 18 04 80 00 34 10 80 00 36 10 00 00 0a 01 \ | |
2673 | 80 00 10 01 80 00 12 01 00 01 3a 01 80 00 2a 02 \ | |
2674 | 80 00 2c 04 80 00 2e 04 80 00 30 06 80 00 32 06 \ | |
2675 | 80 00 1a 02 80 00 1c 02 80 00 1e 02 80 00 20 02 \ | |
2676 | 80 00 22 02 80 00 24 02 00 0f 00 a8 80 00 4c 08 \ | |
2677 | 00 01 3e 04 00 01 40 04 80 00 04 08 00 00 00 02 \ | |
2678 | 80 00 00 04 00 01 42 04 00 01 00 04 00 01 02 04 \ | |
2679 | 00 01 04 04 00 01 06 04 00 01 08 04 00 01 0a 04 \ | |
2680 | 00 01 0c 04 00 01 0e 04 80 00 08 06 80 00 06 06 \ | |
2681 | 00 00 08 02 80 00 0c 02 80 00 0e 01 80 00 44 04 \ | |
2682 | 80 00 46 01 80 00 16 04 80 00 18 04 80 00 34 10 \ | |
2683 | 80 00 36 10 00 00 0a 01 80 00 10 01 80 00 12 01 \ | |
2684 | 00 01 3a 01 80 00 2a 02 80 00 2c 04 80 00 2e 04 \ | |
2685 | 80 00 30 06 80 00 32 06 80 00 1a 02 80 00 1c 02 \ | |
2686 | 80 00 1e 02 80 00 20 02 80 00 22 02 80 00 24 02 \ | |
e428148a | 2687 | "], [0], [OFPST_TABLE_FEATURES reply (OF1.3) (xid=0xd5): flags=[[more]] |
3c1bb396 | 2688 | table 0 ("table0"): |
5deff5aa | 2689 | metadata: match=0xffffffffffffffff write=0xffffffffffffffff |
5deff5aa AW |
2690 | max_entries=1000000 |
2691 | instructions (table miss and others): | |
2692 | next tables: 1-253 | |
2693 | instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table | |
2694 | Write-Actions and Apply-Actions features: | |
08d1e234 | 2695 | actions: output group set_field strip_vlan push_vlan mod_nw_ttl dec_ttl set_mpls_ttl dec_mpls_ttl push_mpls pop_mpls set_queue |
3c1bb396 | 2696 | supported on Set-Field: tun_id tun_src tun_dst metadata in_port in_port_oxm pkt_mark reg0 reg1 reg2 reg3 reg4 reg5 reg6 reg7 eth_src eth_dst vlan_tci vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst nw_tos ip_dscp nw_ecn nw_ttl arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst |
5deff5aa AW |
2697 | matching: |
2698 | tun_id: exact match or wildcard | |
2699 | tun_src: exact match or wildcard | |
2700 | tun_dst: exact match or wildcard | |
2701 | metadata: exact match or wildcard | |
2702 | in_port: exact match or wildcard | |
2703 | in_port_oxm: exact match or wildcard | |
2704 | pkt_mark: exact match or wildcard | |
2705 | reg0: exact match or wildcard | |
2706 | reg1: exact match or wildcard | |
2707 | reg2: exact match or wildcard | |
2708 | reg3: exact match or wildcard | |
2709 | reg4: exact match or wildcard | |
2710 | reg5: exact match or wildcard | |
2711 | reg6: exact match or wildcard | |
2712 | reg7: exact match or wildcard | |
2713 | eth_src: exact match or wildcard | |
2714 | eth_dst: exact match or wildcard | |
2715 | eth_type: exact match or wildcard | |
2716 | vlan_tci: exact match or wildcard | |
2717 | vlan_vid: exact match or wildcard | |
2718 | vlan_pcp: exact match or wildcard | |
2719 | mpls_label: exact match or wildcard | |
2720 | mpls_tc: exact match or wildcard | |
2721 | mpls_bos: exact match or wildcard | |
2722 | ip_src: exact match or wildcard | |
2723 | ip_dst: exact match or wildcard | |
2724 | ipv6_src: exact match or wildcard | |
2725 | ipv6_dst: exact match or wildcard | |
2726 | ipv6_label: exact match or wildcard | |
2727 | nw_proto: exact match or wildcard | |
2728 | nw_tos: exact match or wildcard | |
2729 | ip_dscp: exact match or wildcard | |
2730 | nw_ecn: exact match or wildcard | |
2731 | nw_ttl: exact match or wildcard | |
2732 | ip_frag: exact match or wildcard | |
2733 | arp_op: exact match or wildcard | |
2734 | arp_spa: exact match or wildcard | |
2735 | arp_tpa: exact match or wildcard | |
2736 | arp_sha: exact match or wildcard | |
2737 | arp_tha: exact match or wildcard | |
2738 | tcp_src: exact match or wildcard | |
2739 | tcp_dst: exact match or wildcard | |
2740 | tcp_flags: exact match or wildcard | |
2741 | udp_src: exact match or wildcard | |
2742 | udp_dst: exact match or wildcard | |
2743 | sctp_src: exact match or wildcard | |
2744 | sctp_dst: exact match or wildcard | |
2745 | icmp_type: exact match or wildcard | |
2746 | icmp_code: exact match or wildcard | |
2747 | icmpv6_type: exact match or wildcard | |
2748 | icmpv6_code: exact match or wildcard | |
2749 | nd_target: exact match or wildcard | |
2750 | nd_sll: exact match or wildcard | |
2751 | nd_tll: exact match or wildcard | |
2752 | ]) | |
2753 | AT_CLEANUP | |
2754 | ||
58cf43df | 2755 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0]) |
fec00620 BP |
2756 | AT_KEYWORDS([ofp-print]) |
2757 | AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl | |
2758 | OFPT_BARRIER_REQUEST (xid=0x1): | |
2759 | ]) | |
2760 | AT_CLEANUP | |
2761 | ||
58cf43df SH |
2762 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1]) |
2763 | AT_KEYWORDS([ofp-print]) | |
2764 | AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl | |
2765 | OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1): | |
2766 | ]) | |
2767 | AT_CLEANUP | |
2768 | ||
2769 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2]) | |
2770 | AT_KEYWORDS([ofp-print]) | |
2771 | AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl | |
2772 | OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1): | |
2773 | ]) | |
2774 | AT_CLEANUP | |
2775 | ||
2e1ae200 JR |
2776 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3]) |
2777 | AT_KEYWORDS([ofp-print]) | |
2778 | AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl | |
2779 | OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1): | |
2780 | ]) | |
2781 | AT_CLEANUP | |
2782 | ||
58cf43df | 2783 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.0]) |
fec00620 BP |
2784 | AT_KEYWORDS([ofp-print]) |
2785 | AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl | |
2786 | OFPT_BARRIER_REPLY (xid=0x1): | |
2787 | ]) | |
2788 | AT_CLEANUP | |
2789 | ||
2e1ae200 | 2790 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.1]) |
58cf43df SH |
2791 | AT_KEYWORDS([ofp-print]) |
2792 | AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl | |
2793 | OFPT_BARRIER_REPLY (OF1.1) (xid=0x1): | |
2794 | ]) | |
2795 | AT_CLEANUP | |
2796 | ||
2e1ae200 | 2797 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.2]) |
58cf43df SH |
2798 | AT_KEYWORDS([ofp-print]) |
2799 | AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl | |
2800 | OFPT_BARRIER_REPLY (OF1.2) (xid=0x1): | |
2801 | ]) | |
2802 | AT_CLEANUP | |
2803 | ||
2e1ae200 JR |
2804 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.3]) |
2805 | AT_KEYWORDS([ofp-print]) | |
2806 | AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl | |
2807 | OFPT_BARRIER_REPLY (OF1.3) (xid=0x1): | |
2808 | ]) | |
2809 | AT_CLEANUP | |
2810 | ||
e8f9a7bb VG |
2811 | AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.0]) |
2812 | AT_KEYWORDS([ofp-print]) | |
2ffc8767 | 2813 | AT_CHECK([ovs-ofctl ofp-print "01 14 00 0c 00 00 00 01 00 01 00 00"], [0], [dnl |
e8f9a7bb VG |
2814 | OFPT_QUEUE_GET_CONFIG_REQUEST (xid=0x1): port=1 |
2815 | ]) | |
2816 | AT_CLEANUP | |
2817 | ||
2818 | AT_SETUP([OFPT_QUEUE_GET_CONFIG_REQUEST - OF1.2]) | |
2819 | AT_KEYWORDS([ofp-print]) | |
2820 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2821 | 03 16 00 10 00 00 00 01 00 00 00 01 00 00 00 00"], [0], [dnl | |
2822 | OFPT_QUEUE_GET_CONFIG_REQUEST (OF1.2) (xid=0x1): port=1 | |
2823 | ]) | |
2824 | AT_CLEANUP | |
2825 | ||
e016fb63 BP |
2826 | AT_SETUP([OFPST_QUEUE_DESC request - OF1.4]) |
2827 | AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REQUEST]) | |
2828 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2829 | 05 12 00 18 00 00 00 01 00 0f 00 00 00 00 00 00 \ | |
2830 | 00 00 00 01 00 00 00 02"], [0], | |
2831 | [OFPST_QUEUE_DESC request (OF1.4) (xid=0x1): port=1 queue=2 | |
2832 | ]) | |
2833 | AT_CLEANUP | |
2834 | ||
e8f9a7bb VG |
2835 | AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0]) |
2836 | AT_KEYWORDS([ofp-print]) | |
2ffc8767 | 2837 | AT_CHECK([ovs-ofctl ofp-print "01 15 00 40 00 00 00 01 \ |
e8f9a7bb VG |
2838 | 00 01 00 00 00 00 00 00 \ |
2839 | 00 00 55 55 00 28 00 00 \ | |
2840 | 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \ | |
2841 | 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \ | |
2842 | 00 00 44 44 00 08 00 00 \ | |
2843 | "], [0], [dnl | |
2844 | OFPT_QUEUE_GET_CONFIG_REPLY (xid=0x1): port=1 | |
e8f9a7bb | 2845 | queue 17476: |
a28239c0 | 2846 | queue 21845: min_rate:50.0% max_rate:75.0% |
e8f9a7bb VG |
2847 | ]) |
2848 | AT_CLEANUP | |
2849 | ||
d2e5fa1f BP |
2850 | AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.1]) |
2851 | AT_KEYWORDS([ofp-print]) | |
2852 | AT_CHECK([ovs-ofctl ofp-print "02 17 00 40 00 00 00 01 \ | |
2853 | 00 00 00 01 00 00 00 00 \ | |
2854 | 00 00 55 55 00 28 00 00 \ | |
2855 | 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \ | |
2856 | 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \ | |
2857 | 00 00 44 44 00 08 00 00 \ | |
2858 | "], [0], [dnl | |
2859 | OFPT_QUEUE_GET_CONFIG_REPLY (OF1.1) (xid=0x1): port=1 | |
d2e5fa1f | 2860 | queue 17476: |
a28239c0 | 2861 | queue 21845: min_rate:50.0% max_rate:75.0% |
d2e5fa1f BP |
2862 | ]) |
2863 | AT_CLEANUP | |
2864 | ||
e8f9a7bb VG |
2865 | AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.2]) |
2866 | AT_KEYWORDS([ofp-print]) | |
2867 | AT_CHECK([ovs-ofctl ofp-print "03 17 00 50 00 00 00 01 \ | |
2868 | 00 00 00 01 00 00 00 00 \ | |
2869 | 00 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \ | |
2870 | 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \ | |
2871 | 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \ | |
2872 | 00 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \ | |
2873 | "], [0], [dnl | |
2874 | OFPT_QUEUE_GET_CONFIG_REPLY (OF1.2) (xid=0x1): port=1 | |
e8f9a7bb | 2875 | queue 17476: |
a28239c0 | 2876 | queue 21845: min_rate:50.0% max_rate:75.0% |
e8f9a7bb VG |
2877 | ]) |
2878 | AT_CLEANUP | |
2e1ae200 | 2879 | |
e016fb63 BP |
2880 | AT_SETUP([OFPT_QUEUE_GET_CONFIG_REPLY - OF1.3]) |
2881 | AT_KEYWORDS([ofp-print]) | |
2882 | AT_CHECK([ovs-ofctl ofp-print "04 17 00 50 00 00 00 01 \ | |
2883 | 00 00 00 01 00 00 00 00 \ | |
2884 | 00 00 55 55 00 00 00 01 00 30 00 00 00 00 00 00 \ | |
2885 | 00 01 00 10 00 00 00 00 01 f4 00 00 00 00 00 00 \ | |
2886 | 00 02 00 10 00 00 00 00 02 ee 00 00 00 00 00 00 \ | |
2887 | 00 00 44 44 00 08 00 01 00 10 00 00 00 00 00 00 \ | |
2888 | "], [0], [dnl | |
2889 | OFPT_QUEUE_GET_CONFIG_REPLY (OF1.3) (xid=0x1): port=1 | |
e016fb63 | 2890 | queue 17476: |
a28239c0 | 2891 | queue 21845: min_rate:50.0% max_rate:75.0% |
e016fb63 BP |
2892 | ]) |
2893 | AT_CLEANUP | |
2894 | ||
2895 | # OF1.4 renamed OFPT_QUEUE_GET_CONFIG_REPLY to OFPST_QUEUE_DESC. | |
2896 | AT_SETUP([OFPST_QUEUE_DESC reply - OF1.4]) | |
2897 | AT_KEYWORDS([ofp-print OFPT_QUEUE_GET_CONFIG_REPLY]) | |
2898 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2899 | 05 13 00 48 00 00 00 01 00 0f 00 00 00 00 00 00 \ | |
2900 | ||
2901 | 00 00 00 01 00 00 55 55 00 20 00 00 00 00 00 00 \ | |
2902 | 00 01 00 08 01 f4 00 00 \ | |
2903 | 00 02 00 08 02 ee 00 00 \ | |
2904 | ||
2905 | 00 00 00 02 00 00 44 44 00 18 00 00 00 00 00 00 \ | |
2906 | 00 02 00 08 00 64 00 00 \ | |
2907 | "], [0], [dnl | |
2908 | OFPST_QUEUE_DESC reply (OF1.4) (xid=0x1): port=1 | |
2909 | queue 21845: min_rate:50.0% max_rate:75.0% | |
2910 | port=2 | |
2911 | queue 17476: max_rate:10.0% | |
2912 | ]) | |
2913 | AT_CLEANUP | |
2914 | ||
2e1ae200 JR |
2915 | AT_SETUP([OFPT_SET_ASYNC - OF1.3]) |
2916 | AT_KEYWORDS([ofp-print]) | |
904e5202 BP |
2917 | dnl This message has bit 12 set for the PACKET_IN messages (master and slave). |
2918 | dnl Those aren't supported bits so they get silently ignored on decoding. | |
2919 | dnl That seems reasonable because OF1.3 doesn't define any error codes for | |
2920 | dnl OFPT_SET_ASYNC. | |
2e1ae200 JR |
2921 | AT_CHECK([ovs-ofctl ofp-print "\ |
2922 | 04 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \ | |
2923 | 00 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \ | |
2924 | "], [0], [dnl | |
2925 | OFPT_SET_ASYNC (OF1.3) (xid=0x0): | |
2926 | master: | |
904e5202 | 2927 | PACKET_IN: no_match invalid_ttl |
2e1ae200 JR |
2928 | PORT_STATUS: add delete |
2929 | FLOW_REMOVED: (off) | |
904e5202 BP |
2930 | ROLE_STATUS: (off) |
2931 | TABLE_STATUS: (off) | |
2932 | REQUESTFORWARD: (off) | |
2e1ae200 JR |
2933 | |
2934 | slave: | |
904e5202 | 2935 | PACKET_IN: no_match action invalid_ttl |
2e1ae200 JR |
2936 | PORT_STATUS: add delete modify |
2937 | FLOW_REMOVED: idle hard | |
904e5202 BP |
2938 | ROLE_STATUS: (off) |
2939 | TABLE_STATUS: (off) | |
2940 | REQUESTFORWARD: (off) | |
2e1ae200 JR |
2941 | ]) |
2942 | AT_CLEANUP | |
2943 | ||
6ea4776b JR |
2944 | AT_SETUP([OFPT_ROLE_REQUEST - OF1.2]) |
2945 | AT_KEYWORDS([ofp-print]) | |
2946 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2947 | 03 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \ | |
2948 | 00 00 00 00 00 00 00 03 \ | |
2949 | "], [0], [dnl | |
2950 | OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3 | |
2951 | ]) | |
2952 | AT_CLEANUP | |
2953 | ||
2954 | AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2]) | |
2955 | AT_KEYWORDS([ofp-print]) | |
2956 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2957 | 03 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
2958 | 00 00 00 00 00 00 00 00 \ | |
2959 | "], [0], [dnl | |
2960 | OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange | |
2961 | ]) | |
2962 | AT_CLEANUP | |
2963 | ||
fec00620 BP |
2964 | AT_SETUP([NXT_ROLE_REQUEST]) |
2965 | AT_KEYWORDS([ofp-print]) | |
2966 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2967 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \ | |
2968 | 00 00 00 01 \ | |
2969 | "], [0], [dnl | |
2970 | NXT_ROLE_REQUEST (xid=0x2): role=master | |
2971 | ]) | |
2972 | AT_CLEANUP | |
2973 | ||
6ea4776b JR |
2974 | AT_SETUP([OFPT_ROLE_REPLY - OF1.2]) |
2975 | AT_KEYWORDS([ofp-print]) | |
2976 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2977 | 03 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \ | |
147cc9d3 | 2978 | 12 34 56 78 ab cd ef 90 \ |
6ea4776b | 2979 | "], [0], [dnl |
147cc9d3 | 2980 | OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360 |
6ea4776b JR |
2981 | ]) |
2982 | AT_CLEANUP | |
2983 | ||
fec00620 BP |
2984 | AT_SETUP([NXT_ROLE_REPLY]) |
2985 | AT_KEYWORDS([ofp-print]) | |
2986 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2987 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \ | |
2988 | 00 00 00 02 \ | |
2989 | "], [0], [dnl | |
2990 | NXT_ROLE_REPLY (xid=0x2): role=slave | |
2991 | ]) | |
2992 | AT_CLEANUP | |
2993 | ||
b0e07d50 BP |
2994 | AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.3]) |
2995 | AT_KEYWORDS([ofp-print]) | |
2996 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2997 | 04 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \ | |
2998 | 00 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \ | |
2999 | "], [0], [dnl | |
3000 | ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=experimenter_data_changed | |
3001 | ]) | |
3002 | AT_CLEANUP | |
3003 | ||
3004 | AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.3]) | |
3005 | AT_KEYWORDS([ofp-print]) | |
3006 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3007 | 04 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \ | |
3008 | 00 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \ | |
3009 | "], [0], [dnl | |
3010 | ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master reason=configuration_changed | |
3011 | ]) | |
3012 | AT_CLEANUP | |
3013 | ||
3014 | AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.3]) | |
3015 | AT_KEYWORDS([ofp-print]) | |
3016 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3017 | 04 04 00 20 00 00 00 0a 4f 4e 46 00 00 00 07 77 \ | |
3018 | 00 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \ | |
3019 | "], [0], [dnl | |
3020 | ONFT_ROLE_STATUS (OF1.3) (xid=0xa): role=master generation_id=16 reason=configuration_changed | |
3021 | ]) | |
3022 | AT_CLEANUP | |
3023 | ||
00467f73 AC |
3024 | AT_SETUP([OFP_ROLE_STATUS - master, experimenter - OF1.4]) |
3025 | AT_KEYWORDS([ofp-print]) | |
3026 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3027 | 05 1e 00 18 00 00 00 0a \ | |
3028 | 00 00 00 02 02 00 00 00 ff ff ff ff ff ff ff ff \ | |
3029 | "], [0], [dnl | |
9620f50c | 3030 | OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=experimenter_data_changed |
00467f73 AC |
3031 | ]) |
3032 | AT_CLEANUP | |
3033 | ||
3034 | AT_SETUP([OFP_ROLE_STATUS - master, config - OF1.4]) | |
3035 | AT_KEYWORDS([ofp-print]) | |
3036 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3037 | 05 1e 00 18 00 00 00 0a \ | |
3038 | 00 00 00 02 01 00 00 00 ff ff ff ff ff ff ff ff \ | |
3039 | "], [0], [dnl | |
9620f50c | 3040 | OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master reason=configuration_changed |
00467f73 AC |
3041 | ]) |
3042 | AT_CLEANUP | |
3043 | ||
3044 | AT_SETUP([OFP_ROLE_STATUS - master, config,generation - OF1.4]) | |
3045 | AT_KEYWORDS([ofp-print]) | |
3046 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3047 | 05 1e 00 18 00 00 00 0a \ | |
3048 | 00 00 00 02 01 00 00 00 00 00 00 00 00 00 00 10 \ | |
3049 | "], [0], [dnl | |
9620f50c | 3050 | OFPT_ROLE_STATUS (OF1.4) (xid=0xa): role=master generation_id=16 reason=configuration_changed |
00467f73 AC |
3051 | ]) |
3052 | AT_CLEANUP | |
3053 | ||
3c35db62 NR |
3054 | AT_SETUP([OFP_REQUESTFORWARD - OF1.4]) |
3055 | AT_KEYWORDS([ofp-print]) | |
3056 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3057 | 05 20 00 18 00 00 00 02 \ | |
3058 | 05 0f 00 10 02 00 00 00 \ | |
3059 | 00 00 00 00 00 00 00 01 \ | |
3060 | "], [0], [dnl | |
3061 | OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod | |
3062 | ADD group_id=1,type=all | |
3063 | ]) | |
3064 | AT_CLEANUP | |
3065 | ||
3066 | AT_SETUP([OFP_REQUESTFORWARD - OF1.4]) | |
3067 | AT_KEYWORDS([ofp-print]) | |
3068 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3069 | 05 20 00 18 00 00 00 02 \ | |
3070 | 05 0f 00 10 02 00 00 00 \ | |
3071 | 00 01 01 00 00 00 00 01 \ | |
3072 | "], [0], [dnl | |
3073 | OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=group_mod | |
3074 | MOD group_id=1,type=select | |
3075 | ]) | |
3076 | AT_CLEANUP | |
3077 | ||
3078 | AT_SETUP([OFP_REQUESTFORWARD - OF1.4]) | |
3079 | AT_KEYWORDS([ofp-print]) | |
3080 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3081 | 05 20 00 18 00 00 00 02 \ | |
3082 | 05 1d 00 10 02 00 00 00 \ | |
3083 | 00 00 00 00 00 00 00 01 \ | |
3084 | "], [0], [dnl | |
3085 | OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod ADD meter=1 bands= | |
3086 | ]) | |
3087 | AT_CLEANUP | |
3088 | ||
3089 | AT_SETUP([OFP_REQUESTFORWARD - OF1.4]) | |
3090 | AT_KEYWORDS([ofp-print]) | |
3091 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3092 | 05 20 00 18 00 00 00 02 \ | |
3093 | 05 1d 00 10 02 00 00 00 \ | |
3094 | 00 01 01 00 00 00 00 01 \ | |
3095 | "], [0], [dnl | |
3096 | OFPT_REQUESTFORWARD (OF1.4) (xid=0x2): reason=meter_mod MOD meter=1 flags:0x100 bands= | |
3097 | ]) | |
3098 | AT_CLEANUP | |
3099 | ||
98a9272b ZW |
3100 | AT_SETUP([NXT_REQUESTFORWARD - inner NXT_GROUP_MOD]) |
3101 | AT_KEYWORDS([ofp-print]) | |
3102 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3103 | dnl OF version 1.0; type=extension: | |
3104 | 01 04 \ | |
3105 | dnl size in bytes: | |
3106 | 00 b8 \ | |
3107 | dnl xid: | |
3108 | 00 00 00 02 \ | |
3109 | dnl Nicira vendor number: | |
3110 | 00 00 23 20 \ | |
3111 | dnl subtype (message id number = 132 in this case) | |
3112 | 00 00 00 84 \ | |
3113 | dnl inner msg copied and pasted from NXT_GROUP_MOD test above: | |
3114 | 01 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f 00 00 01 00 87 65 43 21 \ | |
3115 | 00 60 00 00 ff ff ff ff 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
3116 | 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 00 20 00 08 00 00 00 01 \ | |
3117 | 00 00 00 08 00 02 00 00 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02 \ | |
3118 | 00 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 00 00 00 08 00 c8 00 00 \ | |
3119 | 00 01 00 08 00 00 00 03 ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \ | |
3120 | 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 \ | |
3121 | "], [0], [dnl | |
3122 | NXT_REQUESTFORWARD (xid=0x2): reason=group_mod | |
3123 | ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 | |
3124 | ]) | |
3125 | AT_CLEANUP | |
3126 | ||
3127 | AT_SETUP([NXT_REQUESTFORWARD - inner OFPT_GROUP_MOD - OF1.1]) | |
3128 | AT_KEYWORDS([ofp-print]) | |
3129 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3130 | dnl OF Version 1.1; type=extension: | |
3131 | 02 04 \ | |
3132 | dnl size in bytes: | |
3133 | 00 80 \ | |
3134 | dnl xid: | |
3135 | 00 00 00 02 \ | |
3136 | dnl Nicira vendor number: | |
3137 | 00 00 23 20 \ | |
3138 | dnl subtype (message id number = 132 in this case) | |
3139 | 00 00 00 84 \ | |
3140 | dnl inner msg copied and pasted from OFPT_GROUP_MOD OF1.1 test above: | |
3141 | 02 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \ | |
3142 | 00 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \ | |
3143 | 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
3144 | 00 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \ | |
3145 | 00 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
3146 | 00 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \ | |
3147 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
3148 | "], [0], [dnl | |
3149 | NXT_REQUESTFORWARD (OF1.1) (xid=0x2): reason=group_mod | |
3150 | 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 | |
3151 | ]) | |
3152 | AT_CLEANUP | |
3153 | ||
3154 | AT_SETUP([ONFT_REQUESTFORWARD - inner OFPT_METER_MOD - OF1.3]) | |
3155 | AT_KEYWORDS([ofp-print]) | |
3156 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3157 | dnl OF Version 1.3; type=extension: | |
3158 | 04 04 \ | |
3159 | dnl size in bytes: | |
3160 | 00 30 \ | |
3161 | dnl xid: | |
3162 | 00 00 00 02 \ | |
3163 | dnl ONF vendor number: | |
3164 | 4F 4E 46 00 \ | |
3165 | dnl subtype (message id number = 2350 in this case) | |
3166 | 00 00 09 2e \ | |
3167 | dnl inner msg copied and pasted from the valid OFPT_METER_MOD OF1.3 test: | |
3168 | 04 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \ | |
3169 | 00 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \ | |
3170 | "], [0], [dnl | |
3171 | ONFT_REQUESTFORWARD (OF1.3) (xid=0x2): reason=meter_mod ADD meter=5 kbps burst stats bands= | |
3172 | type=drop rate=1024 burst_size=128 | |
3173 | ]) | |
3174 | AT_CLEANUP | |
3175 | ||
54834960 EJ |
3176 | AT_SETUP([NXT_SET_PACKET_IN]) |
3177 | AT_KEYWORDS([ofp-print]) | |
3178 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3179 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \ | |
3180 | 00 00 00 01 \ | |
3181 | "], [0], [dnl | |
6409e008 | 3182 | NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxt_packet_in |
54834960 EJ |
3183 | ]) |
3184 | AT_CLEANUP | |
3185 | ||
3186 | AT_SETUP([NXT_PACKET_IN]) | |
3187 | AT_KEYWORDS([ofp-print]) | |
3188 | AT_CHECK([ovs-ofctl ofp-print "\ | |
969fc56c | 3189 | 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \ |
54834960 | 3190 | ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \ |
969fc56c | 3191 | 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \ |
54834960 EJ |
3192 | 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \ |
3193 | 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \ | |
3194 | 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \ | |
969fc56c | 3195 | 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \ |
42edbe39 | 3196 | ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \ |
54834960 EJ |
3197 | 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \ |
3198 | 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \ | |
dc235f7f | 3199 | 00 55 00 56 00 00 00 00 00 00 00 00 50 02 00 00 \ |
54834960 EJ |
3200 | 31 6d 00 00 00 00 00 00 00 00 \ |
3201 | "], [0], [dnl | |
50dcbd8e | 3202 | NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered) |
f0fb825a | 3203 | tcp,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=syn tcp_csum:316d |
54834960 EJ |
3204 | ]) |
3205 | AT_CLEANUP | |
3206 | ||
b4ccee75 SH |
3207 | AT_SETUP([NXT_PACKET_IN, with hex output of packet data]) |
3208 | AT_KEYWORDS([ofp-print]) | |
3209 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3210 | 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \ | |
3211 | ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \ | |
3212 | 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \ | |
3213 | 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \ | |
3214 | 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \ | |
3215 | 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \ | |
3216 | 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \ | |
3217 | ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \ | |
3218 | 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \ | |
3219 | 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \ | |
dc235f7f | 3220 | 00 55 00 56 00 00 00 00 00 00 00 00 50 01 00 00 \ |
b4ccee75 SH |
3221 | 31 6d 00 00 00 00 00 00 00 00 \ |
3222 | " 3], [0], [dnl | |
50dcbd8e | 3223 | NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 reg0=0x1,reg1=0x2,reg2=0x3,reg3=0x4,reg4=0x5,tun_id=0x6,metadata=0x5a5a5a5a5a5a5a5a,in_port=1 (via action) data_len=64 (unbuffered) |
f0fb825a | 3224 | tcp,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86,tcp_flags=fin tcp_csum:316d |
b4ccee75 SH |
3225 | 00000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50 |
3226 | 00000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53 | |
3227 | 00000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00 | |
dc235f7f | 3228 | 00000030 00 00 50 01 00 00 31 6d-00 00 00 00 00 00 00 00 |
b4ccee75 SH |
3229 | ]) |
3230 | AT_CLEANUP | |
3231 | ||
6409e008 BP |
3232 | AT_SETUP([NX_PACKET_IN2]) |
3233 | AT_KEYWORDS([ofp-print]) | |
3234 | AT_CHECK([ovs-ofctl ofp-print " | |
bdcad671 | 3235 | 01 04 0098 00000000 00002320 0000001e |
6409e008 BP |
3236 | 0000 0034 |
3237 | 82 82 82 82 82 82 80 81 81 81 81 81 81 00 00 50 | |
3238 | 08 00 45 00 00 28 00 00 00 00 00 06 32 05 53 53 | |
3239 | 53 53 54 54 54 54 00 55 00 56 00 00 00 00 00 00 00000000 | |
3240 | 0001 0008 00000040 | |
3241 | 0002 0008 00000114 | |
3242 | 0003 0005 07 000000 | |
3243 | 0004 0010 00000000 fedcba9876543210 | |
3244 | 0005 0005 01 000000 | |
bdcad671 BP |
3245 | 0006 0010 80000408 5a5a5a5a5a5a5a5a |
3246 | 0007 0009 0102030405 00000000000000 | |
3247 | " | |
6409e008 BP |
3248 | ], [0], [dnl |
3249 | NXT_PACKET_IN2 (xid=0x0): table_id=7 cookie=0xfedcba9876543210 total_len=64 metadata=0x5a5a5a5a5a5a5a5a (via action) data_len=48 buffer=0x00000114 | |
bdcad671 | 3250 | userdata=01.02.03.04.05 |
f0fb825a | 3251 | ip,dl_vlan=80,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=0 |
6409e008 BP |
3252 | ]) |
3253 | AT_CLEANUP | |
3254 | ||
80d5aefd BP |
3255 | AT_SETUP([NXT_SET_ASYNC_CONFIG]) |
3256 | AT_KEYWORDS([ofp-print]) | |
904e5202 BP |
3257 | dnl This message has bit 12 set for the PACKET_IN messages (master and slave). |
3258 | dnl Those aren't supported bits so they get silently ignored on decoding. | |
80d5aefd BP |
3259 | AT_CHECK([ovs-ofctl ofp-print "\ |
3260 | 01 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \ | |
3261 | 00 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \ | |
3262 | 00 00 00 00 00 00 00 03 \ | |
3263 | "], [0], [dnl | |
3264 | NXT_SET_ASYNC_CONFIG (xid=0x0): | |
3265 | master: | |
904e5202 | 3266 | PACKET_IN: no_match invalid_ttl |
80d5aefd BP |
3267 | PORT_STATUS: add delete |
3268 | FLOW_REMOVED: (off) | |
904e5202 BP |
3269 | ROLE_STATUS: (off) |
3270 | TABLE_STATUS: (off) | |
3271 | REQUESTFORWARD: (off) | |
80d5aefd BP |
3272 | |
3273 | slave: | |
904e5202 | 3274 | PACKET_IN: no_match action invalid_ttl |
80d5aefd BP |
3275 | PORT_STATUS: add delete modify |
3276 | FLOW_REMOVED: idle hard | |
904e5202 BP |
3277 | ROLE_STATUS: (off) |
3278 | TABLE_STATUS: (off) | |
3279 | REQUESTFORWARD: (off) | |
80d5aefd BP |
3280 | ]) |
3281 | AT_CLEANUP | |
3282 | ||
98090482 NR |
3283 | AT_SETUP([OFPT_SET_ASYNC_CONFIG]) |
3284 | AT_KEYWORDS([ofp-print]) | |
3285 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3286 | 05 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \ | |
3287 | 00 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \ | |
3288 | 00 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \ | |
3289 | 00 05 00 08 00 00 00 05 \ | |
3290 | "], [0], [dnl | |
3291 | OFPT_SET_ASYNC (OF1.4) (xid=0x2): | |
3292 | master: | |
3293 | PACKET_IN: action | |
3294 | PORT_STATUS: add modify | |
3295 | FLOW_REMOVED: idle delete | |
3296 | ROLE_STATUS: (off) | |
3297 | TABLE_STATUS: (off) | |
3298 | REQUESTFORWARD: (off) | |
3299 | ||
3300 | slave: | |
3301 | PACKET_IN: no_match invalid_ttl | |
3302 | PORT_STATUS: delete | |
3303 | FLOW_REMOVED: delete group_delete meter_delete | |
3304 | ROLE_STATUS: (off) | |
3305 | TABLE_STATUS: (off) | |
3306 | REQUESTFORWARD: (off) | |
3307 | ]) | |
3308 | AT_CLEANUP | |
3309 | ||
d18cc1ee AA |
3310 | AT_SETUP([OFPT_SET_ASYNC_CONFIG - invalid mask - OF1.4]) |
3311 | AT_KEYWORDS([ofp-print]) | |
3312 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3313 | 05 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 40 \ | |
3314 | 00 01 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \ | |
3315 | 00 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \ | |
3316 | 00 05 00 08 00 00 00 05 \ | |
3317 | "], [0], [dnl | |
3318 | OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_INVALID*** | |
2d071a32 BP |
3319 | 00000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 40 |...8...........@| |
3320 | 00000010 00 01 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................| | |
3321 | 00000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................| | |
3322 | 00000030 00 05 00 08 00 00 00 05- |........ | | |
8fd0bb60 BP |
3323 | ], [stderr]) |
3324 | AT_CHECK([sed 's/.*|//' stderr], [0], | |
3325 | [bad value 0x40 for PACKET_IN (allowed mask 0x3f) | |
d18cc1ee AA |
3326 | ]) |
3327 | AT_CLEANUP | |
3328 | ||
3329 | AT_SETUP([OFPT_SET_ASYNC_CONFIG - unsupported configuration - OF1.4]) | |
3330 | AT_KEYWORDS([ofp-print]) | |
3331 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3332 | 05 1c 00 38 00 00 00 02 00 00 00 08 00 00 00 05 \ | |
3333 | 00 11 00 08 00 00 00 02 00 02 00 08 00 00 00 02 \ | |
3334 | 00 03 00 08 00 00 00 05 00 04 00 08 00 00 00 1c \ | |
3335 | 00 05 00 08 00 00 00 05\ | |
3336 | "], [0], [dnl | |
3337 | OFPT_SET_ASYNC (OF1.4) (xid=0x2): ***decode error: OFPACFC_UNSUPPORTED*** | |
2d071a32 BP |
3338 | 00000000 05 1c 00 38 00 00 00 02-00 00 00 08 00 00 00 05 |...8............| |
3339 | 00000010 00 11 00 08 00 00 00 02-00 02 00 08 00 00 00 02 |................| | |
3340 | 00000020 00 03 00 08 00 00 00 05-00 04 00 08 00 00 00 1c |................| | |
3341 | 00000030 00 05 00 08 00 00 00 05- |........ | | |
8fd0bb60 BP |
3342 | ], [stderr]) |
3343 | AT_CHECK([sed 's/.*|//' stderr], [0], | |
3344 | [unknown async config property type 17 | |
d18cc1ee AA |
3345 | ]) |
3346 | AT_CLEANUP | |
3347 | ||
a7349929 BP |
3348 | AT_SETUP([NXT_SET_CONTROLLER_ID]) |
3349 | AT_KEYWORDS([ofp-print]) | |
3350 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3351 | 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \ | |
3352 | 00 00 00 00 00 00 00 7b \ | |
3353 | "], [0], [dnl | |
3354 | NXT_SET_CONTROLLER_ID (xid=0x3): id=123 | |
3355 | ]) | |
3356 | AT_CLEANUP | |
3357 | ||
2b07c8b1 BP |
3358 | AT_SETUP([NXT_FLOW_MONITOR_CANCEL]) |
3359 | AT_KEYWORDS([ofp-print]) | |
3360 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3361 | 01 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \ | |
3362 | 01 02 30 40 \ | |
3363 | "], [0], [dnl | |
3364 | NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640 | |
3365 | ]) | |
3366 | AT_CLEANUP | |
3367 | ||
3368 | AT_SETUP([NXT_FLOW_MONITOR_PAUSED]) | |
3369 | AT_KEYWORDS([ofp-print]) | |
3370 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3371 | 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \ | |
3372 | "], [0], [dnl | |
3373 | NXT_FLOW_MONITOR_PAUSED (xid=0x3): | |
3374 | ]) | |
3375 | AT_CLEANUP | |
3376 | ||
3377 | AT_SETUP([NXT_FLOW_MONITOR_RESUMED]) | |
3378 | AT_KEYWORDS([ofp-print]) | |
3379 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3380 | 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \ | |
3381 | "], [0], [dnl | |
3382 | NXT_FLOW_MONITOR_RESUMED (xid=0x3): | |
3383 | ]) | |
3384 | AT_CLEANUP | |
3385 | ||
fec00620 BP |
3386 | AT_SETUP([NXT_SET_FLOW_FORMAT]) |
3387 | AT_KEYWORDS([ofp-print]) | |
3388 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3389 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \ | |
3390 | 00 00 00 02 \ | |
3391 | "], [0], [dnl | |
3392 | NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm | |
3393 | ]) | |
3394 | AT_CLEANUP | |
3395 | ||
3396 | # The flow is formatted with cls_rule_format() for the low-verbosity case. | |
3397 | AT_SETUP([NXT_FLOW_MOD, low verbosity]) | |
3398 | AT_KEYWORDS([ofp-print]) | |
3399 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3400 | 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \ | |
3401 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \ | |
de0f16bc | 3402 | ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \ |
fec00620 BP |
3403 | 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \ |
3404 | 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \ | |
3405 | 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \ | |
3406 | " 2], [0], [dnl | |
de0f16bc | 3407 | NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]] |
fec00620 BP |
3408 | ]) |
3409 | AT_CLEANUP | |
3410 | ||
eec25dc1 BP |
3411 | # The flow is formatted with ofp10_match_to_string() for the |
3412 | # low-verbosity case. | |
fec00620 BP |
3413 | AT_SETUP([NXT_FLOW_MOD, high verbosity]) |
3414 | AT_KEYWORDS([ofp-print]) | |
3415 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3416 | 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \ | |
3417 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \ | |
de0f16bc | 3418 | ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \ |
fec00620 BP |
3419 | 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \ |
3420 | 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \ | |
3421 | 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \ | |
3422 | " 3], [0], [dnl | |
de0f16bc | 3423 | NXT_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 |
3424 | ]) |
3425 | AT_CLEANUP | |
3426 | ||
7b809df9 BP |
3427 | AT_SETUP([NXT_GROUP_MOD add - OF1.0]) |
3428 | AT_KEYWORDS([ofp-print]) | |
3429 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3430 | 01 04 00 a8 00 00 00 02 00 00 23 20 00 00 00 1f \ | |
3431 | 00 00 01 00 87 65 43 21 \ | |
3432 | 00 60 00 00 ff ff ff ff \ | |
3433 | \ | |
3434 | 00 20 00 08 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
3435 | 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \ | |
3436 | \ | |
3437 | 00 20 00 08 00 00 00 01 00 00 00 08 00 02 00 00 \ | |
3438 | 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 02 | |
3439 | \ | |
3440 | 00 20 00 08 00 00 00 02 00 00 00 08 00 03 00 00 \ | |
3441 | 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \ | |
3442 | ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \ | |
3443 | 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3444 | 00 00 00 00 00 00 00 07 \ | |
3445 | "], [0], [dnl | |
3446 | NXT_GROUP_MOD (xid=0x2): | |
3447 | ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 | |
3448 | ]) | |
3449 | AT_CLEANUP | |
3450 | ||
76c41209 | 3451 | AT_SETUP([OFPT_GROUP_MOD - OF1.1]) |
7395c052 NZ |
3452 | AT_KEYWORDS([ofp-print]) |
3453 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3454 | 02 0f 00 70 11 22 33 44 00 00 01 00 87 65 43 21 \ | |
3455 | 00 20 00 64 00 00 00 01 ff ff ff ff 00 00 00 00 \ | |
3456 | 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
3457 | 00 20 00 c8 00 00 00 02 ff ff ff ff 00 00 00 00 \ | |
3458 | 00 00 00 10 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
3459 | 00 20 00 c8 00 00 00 03 ff ff ff ff 00 00 00 00 \ | |
3460 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
3461 | "], [0], [dnl | |
3462 | OFPT_GROUP_MOD (OF1.1) (xid=0x11223344): | |
3463 | 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 | |
3464 | ]) | |
3465 | AT_CLEANUP | |
3466 | ||
76c41209 SH |
3467 | AT_SETUP([OFPT_GROUP_MOD add - OF1.5]) |
3468 | AT_KEYWORDS([ofp-print]) | |
3469 | AT_CHECK([ovs-ofctl ofp-print "\ | |
0c4b9393 | 3470 | 06 0f 00 b8 11 22 33 44 00 00 01 00 87 65 43 21 \ |
76c41209 SH |
3471 | 00 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \ |
3472 | 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
3473 | 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \ | |
3474 | 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \ | |
3475 | 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \ | |
3476 | 00 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \ | |
3477 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
3478 | 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \ | |
0c4b9393 SH |
3479 | ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \ |
3480 | 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3481 | 00 00 00 00 00 00 00 07 \ | |
76c41209 SH |
3482 | "], [0], [dnl |
3483 | OFPT_GROUP_MOD (OF1.5) (xid=0x11223344): | |
0c4b9393 | 3484 | ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 |
76c41209 SH |
3485 | ]) |
3486 | AT_CLEANUP | |
3487 | ||
3488 | AT_SETUP([OFPT_GROUP_MOD insert bucket - OF1.5]) | |
3489 | AT_KEYWORDS([ofp-print]) | |
3490 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3491 | 06 0f 00 90 11 22 33 44 00 03 01 00 87 65 43 21 \ | |
3492 | 00 78 00 00 ff ff ff fd 00 28 00 10 00 00 00 00 \ | |
3493 | 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
3494 | 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \ | |
3495 | 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \ | |
3496 | 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \ | |
3497 | 00 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \ | |
3498 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
3499 | 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \ | |
3500 | "], [0], [dnl | |
3501 | OFPT_GROUP_MOD (OF1.5) (xid=0x11223344): | |
3502 | INSERT_BUCKET command_bucket_id:first,group_id=2271560481,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 | |
3503 | ]) | |
3504 | AT_CLEANUP | |
3505 | ||
fec00620 BP |
3506 | AT_SETUP([NXT_FLOW_REMOVED]) |
3507 | AT_KEYWORDS([ofp-print]) | |
3508 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3509 | 01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \ | |
745bfd5e | 3510 | 00 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \ |
fec00620 BP |
3511 | 01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \ |
3512 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
3513 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
3514 | 00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \ | |
3515 | 1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \ | |
3516 | c0 a8 00 02 00 00 00 00 \ | |
3517 | "], [0], [dnl | |
745bfd5e | 3518 | NXT_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 |
3519 | ]) |
3520 | AT_CLEANUP | |
3521 | ||
a1a7d333 BP |
3522 | AT_SETUP([NXT_FLOW_MOD_TABLE_ID]) |
3523 | AT_KEYWORDS([ofp-print]) | |
3524 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3525 | 01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \ | |
3526 | 01 00 00 00 00 00 00 00 \ | |
3527 | "], [0], [dnl | |
3528 | NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable | |
3529 | ]) | |
3530 | AT_CLEANUP | |
3531 | ||
77ab5fd2 BP |
3532 | AT_SETUP([NXT_RESUME]) |
3533 | AT_KEYWORDS([ofp-print]) | |
3534 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3535 | 01 04 0038 01020304 00002320 0000001c \ | |
3536 | 0000 0012 ffffffffffff 102030405060 1234 000000000000 \ | |
3537 | 0006 000a 00000002 fffd 000000000000 | |
3538 | "], [0], [dnl | |
3539 | NXT_RESUME (xid=0x1020304): total_len=14 in_port=CONTROLLER (via no_match) data_len=14 (unbuffered) | |
3540 | vlan_tci=0x0000,dl_src=10:20:30:40:50:60,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x1234 | |
3541 | ]) | |
3542 | AT_CLEANUP | |
3543 | ||
fec00620 BP |
3544 | AT_SETUP([NXST_FLOW request]) |
3545 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
3546 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3547 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
3548 | 00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \ | |
3549 | "], [0], [dnl | |
f92ef1a8 | 3550 | NXST_FLOW request (xid=0x4): |
fec00620 BP |
3551 | ]) |
3552 | AT_CLEANUP | |
3553 | ||
3554 | AT_SETUP([NXST_FLOW reply]) | |
3555 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
3556 | AT_CHECK([ovs-ofctl ofp-print "\ | |
05b8f1c2 | 3557 | 01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \ |
fec00620 BP |
3558 | 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \ |
3559 | 02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
3560 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
3561 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
3562 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
3563 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3564 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
3565 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \ | |
3566 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
3567 | 00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \ | |
f27f2134 | 3568 | 00 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
3569 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ |
3570 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
3571 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
3572 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3573 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
3574 | 00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \ | |
3575 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \ | |
f27f2134 | 3576 | 33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \ |
fec00620 BP |
3577 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ |
3578 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
3579 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
3580 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3581 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
3582 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
3583 | 14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
3584 | 00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \ | |
f27f2134 | 3585 | 00 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
3586 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ |
3587 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
3588 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
3589 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3590 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
3591 | 00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \ | |
3592 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \ | |
f27f2134 | 3593 | 34 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \ |
fec00620 BP |
3594 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ |
3595 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
3596 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
3597 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3598 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
3599 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \ | |
3600 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
3601 | 00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \ | |
3602 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3603 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
3604 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
3605 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
3606 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3607 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
3608 | 00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \ | |
3609 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \ | |
3610 | 02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
3611 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
3612 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
3613 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
3614 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3615 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
3616 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
3617 | 14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
3618 | 00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \ | |
3619 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3620 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
3621 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
3622 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
3623 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3624 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
3625 | 00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \ | |
3626 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \ | |
3627 | 27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
3628 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
3629 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
3630 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
3631 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3632 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
3633 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
3634 | 14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
3635 | 00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \ | |
3636 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3637 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
3638 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
3639 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
3640 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3641 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
3642 | 00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \ | |
3643 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \ | |
3644 | 0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
3645 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
3646 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
3647 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
3648 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3649 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
3650 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \ | |
3651 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
3652 | 00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \ | |
3653 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3654 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
3655 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
3656 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
3657 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3658 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
3659 | 00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \ | |
3660 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \ | |
3661 | 04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
3662 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
3663 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
3664 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
3665 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
3666 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
3667 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
3668 | 14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
3669 | 00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \ | |
3670 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3671 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
3672 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
3673 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
3674 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
3675 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
3676 | 00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \ | |
3677 | 00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \ | |
3678 | 2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \ | |
3679 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3680 | 00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \ | |
3681 | 00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \ | |
3682 | ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \ | |
3683 | 00 00 00 00 00 00 00 05 \ | |
05b8f1c2 BP |
3684 | 00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \ |
3685 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3686 | 00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \ | |
fec00620 BP |
3687 | "], [0], |
3688 | [[NXST_FLOW reply (xid=0x4): | |
b9718b7b | 3689 | 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 | 3690 | 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 |
3691 | 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 |
3692 | 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 | 3693 | 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 | 3694 | 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 | 3695 | 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 |
3696 | 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 |
3697 | 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 | |
3698 | 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 | |
3699 | 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 | |
3700 | 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 |
3701 | 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 |
3702 | 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 | |
3703 | 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 | 3704 | cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop |
fec00620 BP |
3705 | ]]) |
3706 | AT_CLEANUP | |
3707 | ||
3708 | AT_SETUP([NXST_AGGREGATE request]) | |
3709 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
3710 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3711 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
3712 | 00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \ | |
3713 | "], [0], [dnl | |
f92ef1a8 | 3714 | NXST_AGGREGATE request (xid=0x4): |
fec00620 BP |
3715 | ]) |
3716 | AT_CLEANUP | |
3717 | ||
3718 | AT_SETUP([NXST_AGGREGATE reply]) | |
3719 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
3720 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3721 | 01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
3722 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \ | |
3723 | 00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \ | |
3724 | "], [0], [dnl | |
3725 | NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7 | |
3726 | ]) | |
3727 | AT_CLEANUP | |
2b07c8b1 BP |
3728 | |
3729 | AT_SETUP([NXST_FLOW_MONITOR request]) | |
3730 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
3731 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3732 | 01 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \ | |
3733 | 00 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \ | |
3734 | 00 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \ | |
3735 | "], [0], [dnl | |
3736 | NXST_FLOW_MONITOR request (xid=0x4): | |
3737 | id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1 | |
3738 | id=8192 flags=delete table=2 in_port=1 | |
3739 | ]) | |
3740 | AT_CLEANUP | |
3741 | ||
3742 | AT_SETUP([NXST_FLOW_MONITOR reply]) | |
3743 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
3744 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3745 | 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \ | |
99f837f8 | 3746 | 00 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 |
3747 | 00 00 00 02 00 01 00 00 \ |
3748 | 00 08 00 03 00 01 86 a0 \ | |
3749 | "], [0], [dnl | |
3750 | NXST_FLOW_MONITOR reply (xid=0x4): | |
3751 | event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1 | |
3752 | event=ABBREV xid=0x186a0 | |
3753 | ]) | |
3754 | AT_CLEANUP | |
777af88d AC |
3755 | |
3756 | ||
68030e16 JR |
3757 | AT_SETUP([OFPT_BUNDLE_CONTROL - atomic OPEN_REQUEST]) |
3758 | AT_KEYWORDS([ofp-print bundle]) | |
777af88d AC |
3759 | AT_CHECK([ovs-ofctl ofp-print "\ |
3760 | 05 21 00 10 00 00 00 00 \ | |
3761 | 00 00 00 01 00 00 00 01 \ | |
3762 | "], [0], [dnl | |
3763 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3764 | bundle_id=0x1 type=OPEN_REQUEST flags=atomic | |
3765 | ]) | |
3766 | AT_CLEANUP | |
3767 | ||
68030e16 JR |
3768 | AT_SETUP([OFPT_BUNDLE_CONTROL - ordered OPEN_REQUEST]) |
3769 | AT_KEYWORDS([ofp-print bundle]) | |
777af88d AC |
3770 | AT_CHECK([ovs-ofctl ofp-print "\ |
3771 | 05 21 00 10 00 00 00 00 \ | |
3772 | 00 00 00 01 00 00 00 02 \ | |
3773 | "], [0], [dnl | |
3774 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3775 | bundle_id=0x1 type=OPEN_REQUEST flags=ordered | |
3776 | ]) | |
3777 | AT_CLEANUP | |
3778 | ||
68030e16 JR |
3779 | AT_SETUP([OFPT_BUNDLE_CONTROL - atomic ordered OPEN_REQUEST]) |
3780 | AT_KEYWORDS([ofp-print bundle]) | |
777af88d AC |
3781 | AT_CHECK([ovs-ofctl ofp-print "\ |
3782 | 05 21 00 10 00 00 00 00 \ | |
3783 | 00 00 00 01 00 00 00 03 \ | |
3784 | "], [0], [dnl | |
3785 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3786 | bundle_id=0x1 type=OPEN_REQUEST flags=atomic ordered | |
3787 | ]) | |
3788 | AT_CLEANUP | |
3789 | ||
3790 | AT_SETUP([OFPT_BUNDLE_CONTROL - OPEN_REPLY]) | |
68030e16 | 3791 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3792 | AT_CHECK([ovs-ofctl ofp-print "\ |
3793 | 05 21 00 10 00 00 00 00 \ | |
3794 | 00 00 00 01 00 01 00 01 \ | |
3795 | "], [0], [dnl | |
3796 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3797 | bundle_id=0x1 type=OPEN_REPLY flags=atomic | |
3798 | ]) | |
3799 | AT_CLEANUP | |
3800 | ||
3801 | AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REQUEST]) | |
68030e16 | 3802 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3803 | AT_CHECK([ovs-ofctl ofp-print "\ |
3804 | 05 21 00 10 00 00 00 00 \ | |
3805 | 00 00 00 01 00 02 00 01 \ | |
3806 | "], [0], [dnl | |
3807 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3808 | bundle_id=0x1 type=CLOSE_REQUEST flags=atomic | |
3809 | ]) | |
3810 | AT_CLEANUP | |
3811 | ||
3812 | AT_SETUP([OFPT_BUNDLE_CONTROL - CLOSE_REPLY]) | |
68030e16 | 3813 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3814 | AT_CHECK([ovs-ofctl ofp-print "\ |
3815 | 05 21 00 10 00 00 00 00 \ | |
3816 | 00 00 00 01 00 03 00 01 \ | |
3817 | "], [0], [dnl | |
3818 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3819 | bundle_id=0x1 type=CLOSE_REPLY flags=atomic | |
3820 | ]) | |
3821 | AT_CLEANUP | |
3822 | ||
3823 | AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REQUEST]) | |
68030e16 | 3824 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3825 | AT_CHECK([ovs-ofctl ofp-print "\ |
3826 | 05 21 00 10 00 00 00 00 \ | |
3827 | 00 00 00 01 00 04 00 01 \ | |
3828 | "], [0], [dnl | |
3829 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3830 | bundle_id=0x1 type=COMMIT_REQUEST flags=atomic | |
3831 | ]) | |
3832 | AT_CLEANUP | |
3833 | ||
3834 | AT_SETUP([OFPT_BUNDLE_CONTROL - COMMIT_REPLY]) | |
68030e16 | 3835 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3836 | AT_CHECK([ovs-ofctl ofp-print "\ |
3837 | 05 21 00 10 00 00 00 00 \ | |
3838 | 00 00 00 01 00 05 00 01 \ | |
3839 | "], [0], [dnl | |
3840 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3841 | bundle_id=0x1 type=COMMIT_REPLY flags=atomic | |
3842 | ]) | |
3843 | AT_CLEANUP | |
3844 | ||
3845 | AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REQUEST]) | |
68030e16 | 3846 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3847 | AT_CHECK([ovs-ofctl ofp-print "\ |
3848 | 05 21 00 10 00 00 00 00 \ | |
3849 | 00 00 00 01 00 06 00 01 \ | |
3850 | "], [0], [dnl | |
3851 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3852 | bundle_id=0x1 type=DISCARD_REQUEST flags=atomic | |
3853 | ]) | |
3854 | AT_CLEANUP | |
3855 | ||
3856 | AT_SETUP([OFPT_BUNDLE_CONTROL - DISCARD_REPLY]) | |
68030e16 | 3857 | AT_KEYWORDS([ofp-print bundle]) |
777af88d AC |
3858 | AT_CHECK([ovs-ofctl ofp-print "\ |
3859 | 05 21 00 10 00 00 00 00 \ | |
3860 | 00 00 00 01 00 07 00 01 \ | |
3861 | "], [0], [dnl | |
3862 | OFPT_BUNDLE_CONTROL (OF1.4) (xid=0x0): | |
3863 | bundle_id=0x1 type=DISCARD_REPLY flags=atomic | |
3864 | ]) | |
3865 | AT_CLEANUP | |
3866 | ||
be6f6393 | 3867 | AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - verify xid]) |
68030e16 | 3868 | AT_KEYWORDS([ofp-print bundle]) |
be6f6393 JR |
3869 | AT_CHECK([ovs-ofctl ofp-print "\ |
3870 | 05 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
46be7132 | 3871 | 05 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 \ |
be6f6393 JR |
3872 | "], [0], [dnl |
3873 | OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_BAD_XID*** | |
2d071a32 BP |
3874 | 00000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............| |
3875 | 00000010 05 00 00 08 00 00 00 01-00 00 00 00 00 00 00 00 |................| | |
be6f6393 JR |
3876 | ]) |
3877 | AT_CLEANUP | |
3878 | ||
c25ce22d | 3879 | AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - reject OFPT_HELLO]) |
68030e16 | 3880 | AT_KEYWORDS([ofp-print bundle]) |
44648b0f | 3881 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
c25ce22d | 3882 | 05 22 00 20 00 00 00 00 00 00 00 01 00 00 00 01 \ |
46be7132 | 3883 | 05 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 \ |
c25ce22d JR |
3884 | "], [0], [dnl |
3885 | OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x0): ***decode error: OFPBFC_MSG_UNSUP*** | |
2d071a32 BP |
3886 | 00000000 05 22 00 20 00 00 00 00-00 00 00 01 00 00 00 01 |.". ............| |
3887 | 00000010 05 00 00 10 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
44648b0f | 3888 | ], [dnl |
0d71302e | 3889 | ofp_bundle|WARN|OFPT_HELLO message not allowed inside OFPT14_BUNDLE_ADD_MESSAGE |
c25ce22d JR |
3890 | ]) |
3891 | AT_CLEANUP | |
3892 | ||
3893 | AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - FLOW_MOD]) | |
68030e16 | 3894 | AT_KEYWORDS([ofp-print bundle]) |
c25ce22d JR |
3895 | AT_CHECK([ovs-ofctl ofp-print "\ |
3896 | 05 22 00 a0 00 00 00 02 00 00 00 01 00 00 00 01 \ | |
46be7132 | 3897 | 05 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ |
c25ce22d JR |
3898 | 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ff ff \ |
3899 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
3900 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
3901 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
3902 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
3903 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
3904 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
3905 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
3906 | "], [0], [dnl | |
3907 | OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x2): | |
3908 | bundle_id=0x1 flags=atomic | |
46be7132 | 3909 | OFPT_FLOW_MOD (OF1.4) (xid=0x2): ADD table:1 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 actions=output:3 |
c25ce22d JR |
3910 | ]) |
3911 | AT_CLEANUP | |
3912 | ||
3913 | AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PORT_MOD]) | |
68030e16 | 3914 | AT_KEYWORDS([ofp-print bundle]) |
c25ce22d JR |
3915 | AT_CHECK([ovs-ofctl ofp-print "\ |
3916 | 05 22 00 38 00 00 00 03 00 00 00 01 00 00 00 01 \ | |
3917 | 05 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
3918 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
3919 | 00 00 00 08 00 00 00 01 | |
777af88d | 3920 | "], [0], [dnl |
c25ce22d | 3921 | OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3): |
777af88d | 3922 | bundle_id=0x1 flags=atomic |
3e461c2c | 3923 | OFPT_PORT_MOD (OF1.4) (xid=0x3): port: 3: addr:50:54:00:00:00:01 |
c25ce22d JR |
3924 | config: PORT_DOWN |
3925 | mask: PORT_DOWN | |
3926 | advertise: 10MB-HD | |
777af88d AC |
3927 | ]) |
3928 | AT_CLEANUP | |
fb8f22c1 | 3929 | |
68030e16 JR |
3930 | AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - GROUP_MOD]) |
3931 | AT_KEYWORDS([ofp-print bundle]) | |
3932 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3933 | 06 22 00 c8 00 00 00 03 00 00 00 01 00 00 00 01 \ | |
3934 | 06 0f 00 b8 00 00 00 03 00 00 01 00 87 65 43 21 \ | |
3935 | 00 78 00 00 ff ff ff ff 00 28 00 10 00 00 00 00 \ | |
3936 | 00 00 00 10 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
3937 | 00 00 00 08 00 64 00 00 00 01 00 08 00 00 00 01 \ | |
3938 | 00 28 00 10 00 00 00 01 00 00 00 10 00 00 00 02 \ | |
3939 | 00 00 00 00 00 00 00 00 00 00 00 08 00 c8 00 00 \ | |
3940 | 00 01 00 08 00 00 00 02 00 28 00 10 00 00 00 02 \ | |
3941 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
3942 | 00 00 00 08 00 c8 00 00 00 01 00 08 00 00 00 03 \ | |
3943 | ff ff 00 28 00 00 15 40 00 00 00 01 00 00 00 00 \ | |
3944 | 68 61 73 68 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
3945 | 00 00 00 00 00 00 00 07 \ | |
3946 | "], [0], [dnl | |
3947 | OFPT_BUNDLE_ADD_MESSAGE (OF1.5) (xid=0x3): | |
3948 | bundle_id=0x1 flags=atomic | |
3949 | OFPT_GROUP_MOD (OF1.5) (xid=0x3): | |
3950 | ADD group_id=2271560481,type=select,selection_method=hash,selection_method_param=7,bucket=bucket_id:0,weight:100,watch_port:1,actions=output:1,bucket=bucket_id:1,weight:200,watch_port:2,actions=output:2,bucket=bucket_id:2,weight:200,watch_port:3,actions=output:3 | |
3951 | ]) | |
3952 | AT_CLEANUP | |
3953 | ||
6dd3c787 JR |
3954 | AT_SETUP([OFPT_BUNDLE_ADD_MESSAGE - PACKET_OUT]) |
3955 | AT_KEYWORDS([ofp-print bundle packet-out]) | |
3956 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3957 | 05 22 00 74 00 00 00 03 00 00 00 01 00 00 00 01 \ | |
3958 | 05 0d 00 64 00 00 00 03 ff ff ff ff ff ff ff fe \ | |
3959 | 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
3960 | 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \ | |
3961 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
3962 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
3963 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
3964 | 00 00 00 00 \ | |
3965 | "], [0], [dnl | |
3966 | OFPT_BUNDLE_ADD_MESSAGE (OF1.4) (xid=0x3): | |
3967 | bundle_id=0x1 flags=atomic | |
3968 | OFPT_PACKET_OUT (OF1.4) (xid=0x3): in_port=LOCAL actions=FLOOD data_len=60 | |
3969 | tcp,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104,tcp_flags=rst|ack tcp_csum:6d75 | |
3970 | ]) | |
3971 | AT_CLEANUP | |
3972 | ||
fb8f22c1 BY |
3973 | AT_SETUP([NXST_IPFIX_BRIDGE - request]) |
3974 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
3975 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3976 | 01 10 00 18 00 00 00 02 \ | |
3977 | ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00 \ | |
3978 | "], [0], [dnl | |
3979 | NXST_IPFIX_BRIDGE request (xid=0x2): | |
3980 | ]) | |
3981 | AT_CLEANUP | |
3982 | ||
3983 | AT_SETUP([NXST_IPFIX_BRIDGE - reply]) | |
3984 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
3985 | AT_CHECK([ovs-ofctl ofp-print "\ | |
3986 | 01 11 00 70 00 00 00 02 \ | |
3987 | ff ff 00 00 00 00 23 20 00 00 00 03 00 00 00 00\ | |
3988 | 00 00 00 00 00 00 00 01 \ | |
3989 | 00 00 00 00 00 00 00 10 \ | |
3990 | 00 00 00 00 00 00 00 78 \ | |
3991 | 00 00 00 00 00 00 00 f0 \ | |
3992 | 00 00 00 00 00 00 00 00 \ | |
3993 | 00 00 00 00 00 00 00 a0 \ | |
3994 | 00 00 00 00 00 00 00 02 \ | |
3995 | 00 00 00 00 00 00 00 03 \ | |
3996 | 00 00 00 00 00 00 00 04 \ | |
3997 | 00 00 00 00 00 00 00 05 \ | |
3998 | 00 00 00 00 00 00 00 00 \ | |
3999 | "], [0], [dnl | |
4000 | NXST_IPFIX_BRIDGE reply (xid=0x2): | |
4001 | bridge ipfix: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4 | |
4002 | pkts errs=160, ipv4 errs=2, ipv6 errs=3, tx errs=5 | |
4003 | ]) | |
4004 | AT_CLEANUP | |
4005 | ||
4006 | AT_SETUP([NXST_IPFIX_FLOW - request]) | |
4007 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
4008 | AT_CHECK([ovs-ofctl ofp-print "\ | |
4009 | 01 10 00 18 00 00 00 02 \ | |
4010 | ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00 \ | |
4011 | "], [0], [dnl | |
4012 | NXST_IPFIX_FLOW request (xid=0x2): | |
4013 | ]) | |
4014 | AT_CLEANUP | |
4015 | ||
4016 | AT_SETUP([NXST_IPFIX_FLOW - reply]) | |
4017 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
4018 | AT_CHECK([ovs-ofctl ofp-print "\ | |
4019 | 01 11 00 C8 00 00 00 02 \ | |
4020 | ff ff 00 00 00 00 23 20 00 00 00 04 00 00 00 00\ | |
4021 | 00 00 00 00 00 00 00 01 \ | |
4022 | 00 00 00 00 00 00 00 10 \ | |
4023 | 00 00 00 00 00 00 00 78 \ | |
4024 | 00 00 00 00 00 00 00 f0 \ | |
4025 | 00 00 00 00 00 00 00 00 \ | |
4026 | 00 00 00 00 00 00 00 a0 \ | |
4027 | 00 00 00 10 00 00 00 02 \ | |
4028 | 00 00 00 00 00 00 00 03 \ | |
4029 | 00 00 00 00 00 00 00 04 \ | |
4030 | 00 00 00 00 00 00 00 05 \ | |
4031 | 00 00 00 01 00 00 00 00 \ | |
4032 | 00 00 00 00 00 00 00 01 \ | |
4033 | 00 00 00 00 00 00 00 10 \ | |
4034 | 00 00 00 00 00 00 00 78 \ | |
4035 | 00 00 00 00 00 00 00 f0 \ | |
4036 | 00 00 00 00 00 00 00 00 \ | |
4037 | 00 00 00 00 00 00 00 a0 \ | |
4038 | 00 00 00 10 00 00 00 02 \ | |
4039 | 00 00 00 00 00 00 00 03 \ | |
4040 | 00 00 00 00 00 00 00 04 \ | |
4041 | 00 00 00 00 00 00 00 05 \ | |
4042 | 00 00 00 02 00 00 00 00 \ | |
4043 | "], [0], [dnl | |
4044 | NXST_IPFIX_FLOW reply (xid=0x2): 2 ids | |
4045 | id 1: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4 | |
4046 | pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5 | |
4047 | id 2: flows=1, current flows=16, sampled pkts=120, ipv4 ok=240, ipv6 ok=0, tx pkts=4 | |
4048 | pkts errs=160, ipv4 errs=68719476738, ipv6 errs=3, tx errs=5 | |
4049 | ]) | |
4050 | AT_CLEANUP | |
2a7c4805 JP |
4051 | |
4052 | AT_SETUP([NXT_CT_FLUSH_ZONE]) | |
4053 | AT_KEYWORDS([ofp-print]) | |
4054 | AT_CHECK([ovs-ofctl ofp-print "\ | |
4055 | 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 1d \ | |
4056 | 00 00 00 00 00 00 00 0d \ | |
4057 | "], [0], [dnl | |
4058 | NXT_CT_FLUSH_ZONE (xid=0x3): zone_id=13 | |
4059 | ]) | |
4060 | AT_CLEANUP |