]>
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 BP |
205 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP |
206 | actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE | |
0ab14c8e BP |
207 | 1(eth1): addr:50:54:00:00:00:02 |
208 | config: 0 | |
209 | state: 0 | |
210 | current: 100MB-FD AUTO_NEG | |
211 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
212 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 213 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
214 | 2(eth2): addr:50:54:00:00:00:03 |
215 | config: 0 | |
216 | state: 0 | |
217 | current: 100MB-FD AUTO_NEG | |
218 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
219 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 220 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
221 | 3(eth0): addr:50:54:00:00:00:01 |
222 | config: 0 | |
223 | state: 0 | |
224 | current: 100MB-FD AUTO_NEG | |
225 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
226 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 227 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
228 | LOCAL(br0): addr:50:54:00:00:00:01 |
229 | config: PORT_DOWN | |
230 | state: LINK_DOWN | |
d02a5f8e | 231 | speed: 0 Mbps now, 0 Mbps max |
fec00620 BP |
232 | ]) |
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 | ||
406 | AT_SETUP([OFPT_FEATURES_REPLY - with auxiliary_id - OF1.3]) | |
407 | AT_KEYWORDS([ofp-print]) | |
408 | AT_CHECK([ovs-ofctl ofp-print "\ | |
409 | 04 06 00 20 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
410 | 00 00 01 00 ff 01 00 00 00 00 01 77 00 00 00 00 \ | |
411 | "], [0], [dnl | |
412 | OFPT_FEATURES_REPLY (OF1.3) (xid=0x1): dpid:0000505400000001 | |
413 | n_tables:255, n_buffers:256, auxiliary_id:1 | |
414 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED | |
415 | ]) | |
416 | AT_CLEANUP | |
417 | ||
fec00620 BP |
418 | AT_SETUP([OFPT_GET_CONFIG_REQUEST]) |
419 | AT_KEYWORDS([ofp-print]) | |
420 | AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl | |
421 | OFPT_GET_CONFIG_REQUEST (xid=0x1): | |
422 | ]) | |
423 | AT_CLEANUP | |
424 | ||
425 | AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form]) | |
426 | AT_KEYWORDS([ofp-print]) | |
427 | AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl | |
428 | OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0 | |
429 | ]) | |
430 | AT_CLEANUP | |
431 | ||
432 | ||
433 | AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len]) | |
434 | AT_KEYWORDS([ofp-print]) | |
435 | AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl | |
436 | OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255 | |
437 | ]) | |
438 | AT_CLEANUP | |
439 | ||
7cfb9651 | 440 | AT_SETUP([OFPT_PACKET_IN - OF1.0]) |
fec00620 | 441 | AT_KEYWORDS([ofp-print]) |
fec00620 BP |
442 | AT_CHECK([ovs-ofctl ofp-print "\ |
443 | 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \ | |
444 | 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \ | |
445 | 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \ | |
446 | c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \ | |
447 | 50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \ | |
897a8e07 | 448 | "], [0], [dnl |
f0fd1a17 | 449 | OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111 |
3f78c3cc | 450 | tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0 tcp_csum:26e8 |
fec00620 BP |
451 | ]) |
452 | AT_CLEANUP | |
453 | ||
b4ccee75 SH |
454 | AT_SETUP([OFPT_PACKET_IN - OF1.0, with hex output of packet data)]) |
455 | AT_KEYWORDS([ofp-print]) | |
456 | AT_CHECK([ovs-ofctl ofp-print "\ | |
457 | 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \ | |
458 | 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \ | |
459 | 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \ | |
460 | c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \ | |
461 | 50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \ | |
462 | " 3], [0], [dnl | |
463 | OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111 | |
464 | tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=10031,tp_dst=0 tcp_csum:26e8 | |
465 | 00000000 50 54 00 00 00 06 50 54-00 00 00 05 08 00 45 00 | |
466 | 00000010 00 28 bd 12 00 00 40 06-3c 6a c0 a8 00 01 c0 a8 | |
467 | 00000020 00 02 27 2f 00 00 78 50-cc 5b 57 af 42 1e 50 00 | |
468 | 00000030 02 00 26 e8 00 00 00 00-00 00 00 00 | |
469 | ]) | |
470 | AT_CLEANUP | |
471 | ||
7cfb9651 SH |
472 | AT_SETUP([OFPT_PACKET_IN - OF1.2]) |
473 | AT_KEYWORDS([ofp-print]) | |
474 | AT_CHECK([ovs-ofctl ofp-print "\ | |
475 | 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
476 | 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \ | |
477 | 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \ | |
478 | 00 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \ | |
479 | 00 00 00 23 20 83 c1 5f 00 00 00 00 \ | |
480 | "], [0], [dnl | |
481 | OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
3f78c3cc | 482 | rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f |
7cfb9651 SH |
483 | ]) |
484 | AT_CLEANUP | |
485 | ||
b4ccee75 SH |
486 | AT_SETUP([OFPT_PACKET_IN - OF1.2, with hex output of packet data]) |
487 | AT_KEYWORDS([ofp-print]) | |
488 | AT_CHECK([ovs-ofctl ofp-print "\ | |
489 | 03 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
490 | 00 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \ | |
491 | 00 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \ | |
492 | 00 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \ | |
493 | 00 00 00 23 20 83 c1 5f 00 00 00 00 \ | |
494 | " 3], [0], [dnl | |
495 | OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
496 | rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f | |
497 | 00000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01 | |
498 | 00000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00 | |
499 | 00000020 00 23 20 83 c1 5f 00 00-00 00 | |
500 | ]) | |
501 | AT_CLEANUP | |
502 | ||
2e1ae200 JR |
503 | AT_SETUP([OFPT_PACKET_IN - OF1.3]) |
504 | AT_KEYWORDS([ofp-print]) | |
505 | AT_CHECK([ovs-ofctl ofp-print "\ | |
506 | 04 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
507 | 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \ | |
508 | ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \ | |
509 | 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \ | |
510 | 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \ | |
511 | 00 00 00 00 \ | |
512 | "], [0], [dnl | |
513 | OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
3f78c3cc | 514 | rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f |
2e1ae200 JR |
515 | ]) |
516 | AT_CLEANUP | |
517 | ||
b4ccee75 SH |
518 | AT_SETUP([OFPT_PACKET_IN - OF1.3, with hex output of packet data]) |
519 | AT_KEYWORDS([ofp-print]) | |
520 | AT_CHECK([ovs-ofctl ofp-print "\ | |
521 | 04 0a 00 54 00 00 00 00 ff ff ff 00 00 2a 00 00 \ | |
522 | 01 02 03 04 05 06 07 08 00 01 00 0c 80 00 00 04 \ | |
523 | ff ff ff fe 00 00 00 00 00 00 ff ff ff ff ff ff \ | |
524 | 00 23 20 83 c1 5f 80 35 00 01 08 00 06 04 00 03 \ | |
525 | 00 23 20 83 c1 5f 00 00 00 00 00 23 20 83 c1 5f \ | |
526 | 00 00 00 00 \ | |
527 | " 3], [0], [dnl | |
528 | OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x102030405060708 total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00 | |
529 | rarp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:23:20:83:c1:5f,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=0.0.0.0,arp_tpa=0.0.0.0,arp_op=3,arp_sha=00:23:20:83:c1:5f,arp_tha=00:23:20:83:c1:5f | |
530 | 00000000 ff ff ff ff ff ff 00 23-20 83 c1 5f 80 35 00 01 | |
531 | 00000010 08 00 06 04 00 03 00 23-20 83 c1 5f 00 00 00 00 | |
532 | 00000020 00 23 20 83 c1 5f 00 00-00 00 | |
533 | ]) | |
534 | AT_CLEANUP | |
535 | ||
eefbf181 | 536 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.0]) |
fec00620 BP |
537 | AT_KEYWORDS([ofp-print]) |
538 | AT_CHECK([ovs-ofctl ofp-print "\ | |
539 | 01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \ | |
540 | 00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \ | |
541 | 00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \ | |
542 | 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \ | |
543 | 30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \ | |
544 | 00 00 00 00 00 00 00 3c \ | |
545 | "], [0], [dnl | |
666d0863 | 546 | 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.82s idle5 pkts1 bytes60 |
fec00620 BP |
547 | ]) |
548 | AT_CLEANUP | |
549 | ||
eefbf181 SH |
550 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.2]) |
551 | AT_KEYWORDS([ofp-print]) | |
552 | AT_CHECK([ovs-ofctl ofp-print "\ | |
553 | 03 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \ | |
554 | 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \ | |
555 | 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \ | |
556 | 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl | |
95216219 | 557 | OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.01s idle60 hard120 pkts1234567 bytes1869134438 |
eefbf181 SH |
558 | ]) |
559 | AT_CLEANUP | |
560 | ||
2e1ae200 JR |
561 | AT_SETUP([OFPT_FLOW_REMOVED - OF1.3]) |
562 | AT_KEYWORDS([ofp-print]) | |
563 | AT_CHECK([ovs-ofctl ofp-print "\ | |
564 | 04 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \ | |
565 | 80 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \ | |
566 | 00 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \ | |
567 | 00 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl | |
568 | OFPT_FLOW_REMOVED (OF1.3) (xid=0x0): dl_vlan=9 reason=hard table_id=5 cookie:0xfedcba9876543210 duration1.01s idle60 hard120 pkts1234567 bytes1869134438 | |
569 | ]) | |
570 | AT_CLEANUP | |
571 | ||
9e1fd49b | 572 | AT_SETUP([OFPT_PORT_STATUS - OF1.0]) |
fec00620 BP |
573 | AT_KEYWORDS([ofp-print]) |
574 | AT_CHECK([ovs-ofctl ofp-print "\ | |
575 | 01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
576 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
577 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
578 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
579 | "], [0], [dnl | |
0ab14c8e BP |
580 | OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 |
581 | config: PORT_DOWN | |
582 | state: LINK_DOWN | |
583 | current: 100MB-FD AUTO_NEG | |
584 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
585 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b BP |
586 | speed: 100 Mbps now, 100 Mbps max |
587 | ]) | |
588 | AT_CLEANUP | |
589 | ||
590 | AT_SETUP([OFPT_PORT_STATUS - OF1.1]) | |
591 | AT_KEYWORDS([ofp-print]) | |
592 | AT_CHECK([ovs-ofctl ofp-print "\ | |
593 | 02 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
594 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
595 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
596 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
597 | 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
598 | "], [0], [dnl | |
599 | OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 | |
600 | config: 0 | |
601 | state: 0 | |
602 | current: 100MB-FD AUTO_NEG | |
603 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
604 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
605 | speed: 100 Mbps now, 100 Mbps max | |
fec00620 BP |
606 | ]) |
607 | AT_CLEANUP | |
608 | ||
eb5ee596 | 609 | AT_SETUP([OFPT_PACKET_OUT - OF1.0]) |
fec00620 BP |
610 | AT_KEYWORDS([ofp-print]) |
611 | AT_CHECK([ovs-ofctl ofp-print "\ | |
612 | 01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \ | |
613 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
614 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
615 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
616 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
617 | 00 00 00 00 \ | |
618 | "], [0], [dnl | |
c6a93eb7 | 619 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114 |
fec00620 BP |
620 | ]) |
621 | AT_CLEANUP | |
622 | ||
4b2d9d11 SH |
623 | AT_SETUP([OFPT_PACKET_OUT - OF1.0, with packet]) |
624 | AT_KEYWORDS([ofp-print]) | |
625 | AT_CHECK([ovs-ofctl ofp-print "\ | |
626 | 01 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \ | |
627 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
628 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
629 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
630 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
631 | 00 00 00 00 \ | |
632 | "], [0], [dnl | |
633 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60 | |
634 | tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104 tcp_csum:6d75 | |
635 | ]) | |
636 | AT_CLEANUP | |
637 | ||
b4ccee75 SH |
638 | AT_SETUP([OFPT_PACKET_OUT - OF1.0, with hex output of packet data]) |
639 | AT_KEYWORDS([ofp-print]) | |
640 | AT_CHECK([ovs-ofctl ofp-print "\ | |
641 | 01 0d 00 54 00 00 00 00 ff ff ff ff 00 01 00 08 \ | |
642 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
643 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
644 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
645 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
646 | 00 00 00 00 \ | |
647 | " 3], [0], [dnl | |
648 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 data_len=60 | |
649 | tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104 tcp_csum:6d75 | |
650 | 00000000 50 54 00 00 00 05 50 54-00 00 00 06 08 00 45 00 | |
651 | 00000010 00 28 00 00 40 00 40 06-b9 7c c0 a8 00 02 c0 a8 | |
652 | 00000020 00 01 00 00 2b 60 00 00-00 00 6a 4f 2b 58 50 14 | |
653 | 00000030 00 00 6d 75 00 00 00 00-00 00 00 00 | |
654 | ]) | |
655 | AT_CLEANUP | |
656 | ||
eb5ee596 SH |
657 | AT_SETUP([OFPT_PACKET_OUT - OF1.1]) |
658 | AT_KEYWORDS([ofp-print]) | |
659 | AT_CHECK([ovs-ofctl ofp-print "\ | |
660 | 03 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \ | |
661 | 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
662 | 05 dc 00 00 00 00 00 00 \ | |
663 | "], [0], [dnl | |
664 | OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00 | |
665 | ]) | |
666 | AT_CLEANUP | |
667 | ||
4b2d9d11 SH |
668 | AT_SETUP([OFPT_PACKET_OUT - OF1.1, with packet]) |
669 | AT_KEYWORDS([ofp-print]) | |
670 | AT_CHECK([ovs-ofctl ofp-print "\ | |
671 | 03 0d 00 64 88 58 df c5 ff ff ff ff ff ff ff fe \ | |
672 | 00 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \ | |
673 | 05 dc 00 00 00 00 00 00 50 54 00 00 00 05 50 54 \ | |
674 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
675 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
676 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
677 | 00 00 00 00 \ | |
678 | "], [0], [dnl | |
679 | OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD data_len=60 | |
680 | tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=11104 tcp_csum:6d75 | |
681 | ]) | |
682 | AT_CLEANUP | |
683 | ||
fec00620 | 684 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
1bf6eeb0 | 685 | AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity]) |
fec00620 | 686 | AT_KEYWORDS([ofp-print]) |
1c0b7503 | 687 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
fec00620 BP |
688 | 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \ |
689 | 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \ | |
690 | 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \ | |
691 | 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
692 | 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
693 | " 2], [0], [dnl | |
666d0863 | 694 | 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 BP |
695 | ], [dnl |
696 | ofp_util|INFO|normalization changed ofp_match, details: | |
666d0863 MM |
697 | ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 |
698 | ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 | |
fec00620 BP |
699 | ]) |
700 | AT_CLEANUP | |
701 | ||
1bf6eeb0 SH |
702 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
703 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity]) | |
704 | AT_KEYWORDS([ofp-print]) | |
705 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
706 | 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
707 | 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \ | |
708 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
709 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
710 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
711 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
712 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
713 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
714 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
715 | " 2], [0], [dnl | |
666d0863 | 716 | OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:255 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 |
717 | ], [dnl |
718 | ]) | |
719 | AT_CLEANUP | |
720 | ||
eec25dc1 BP |
721 | # The flow is formatted with ofp10_match_to_string() for the |
722 | # high-verbosity case. | |
1bf6eeb0 | 723 | AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity]) |
fec00620 | 724 | AT_KEYWORDS([ofp-print]) |
1c0b7503 | 725 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
fec00620 BP |
726 | 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \ |
727 | 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \ | |
728 | 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \ | |
729 | 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
730 | 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
731 | " 3], [0], [dnl | |
de0f16bc | 732 | 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 BP |
733 | ], [dnl |
734 | ofp_util|INFO|normalization changed ofp_match, details: | |
666d0863 MM |
735 | ofp_util|INFO| pre: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 |
736 | ofp_util|INFO|post: arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,arp_spa=192.168.0.2,arp_tpa=192.168.0.1,arp_op=2 | |
fec00620 BP |
737 | ]) |
738 | AT_CLEANUP | |
739 | ||
1bf6eeb0 SH |
740 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
741 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity]) | |
742 | AT_KEYWORDS([ofp-print]) | |
743 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
744 | 03 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
745 | 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \ | |
746 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
747 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
748 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
749 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
750 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
751 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
752 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
753 | " 2], [0], [dnl | |
666d0863 | 754 | OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:255 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 |
755 | ], [dnl |
756 | ]) | |
757 | AT_CLEANUP | |
758 | ||
2e1ae200 JR |
759 | # The flow is formatted with cls_rule_format() for the low-verbosity case. |
760 | AT_SETUP([OFPT_FLOW_MOD - OF1.3 - flags - low verbosity]) | |
761 | AT_KEYWORDS([ofp-print]) | |
762 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
763 | 04 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
764 | 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \ | |
765 | ff ff ff ff ff ff ff ff ff ff ff ff 00 1f 00 00 \ | |
766 | 00 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \ | |
767 | 50 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \ | |
768 | 80 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \ | |
769 | 00 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \ | |
770 | 00 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
771 | 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \ | |
772 | " 2], [0], [dnl | |
773 | OFPT_FLOW_MOD (OF1.3) (xid=0x2): ADD table:255 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 | |
774 | ], [dnl | |
775 | ]) | |
776 | AT_CLEANUP | |
777 | ||
d55b18c8 IY |
778 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_src]) |
779 | AT_KEYWORDS([ofp-print]) | |
780 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
781 | 03 0e 00 58 52 33 45 02 00 00 00 00 00 00 00 00 \ | |
782 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
783 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
784 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
785 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \ | |
786 | c0 a8 03 5c 00 00 00 00 \ | |
787 | " 2], [0], [dnl | |
788 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334502): ADD priority=255,ip actions=set_field:192.168.3.92->ip_src | |
789 | ], [dnl | |
790 | ]) | |
791 | AT_CLEANUP | |
792 | ||
793 | AT_SETUP([OFPT_FLOW_MOD - OF1.2 - set-field ip_dst]) | |
794 | AT_KEYWORDS([ofp-print]) | |
795 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
796 | 03 0e 00 58 52 33 45 07 00 00 00 00 00 00 00 00 \ | |
797 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff \ | |
798 | ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
799 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
800 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \ | |
801 | c0 a8 4a 7a 00 00 00 00 \ | |
802 | " 2], [0], [dnl | |
803 | OFPT_FLOW_MOD (OF1.2) (xid=0x52334507): ADD priority=255,ip actions=set_field:192.168.74.122->ip_dst | |
804 | ], [dnl | |
805 | ]) | |
806 | AT_CLEANUP | |
807 | ||
808 | AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_src]) | |
809 | AT_KEYWORDS([ofp-print]) | |
810 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
811 | 03 13 00 68 52 33 45 04 00 01 00 00 00 00 00 00 \ | |
812 | 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \ | |
813 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
814 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
815 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
816 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 16 04 \ | |
817 | c0 a8 03 5c 00 00 00 00 \ | |
818 | " 2], [0], [dnl | |
819 | OFPST_FLOW reply (OF1.2) (xid=0x52334504): | |
820 | cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.3.92->ip_src | |
821 | ], [dnl | |
822 | ]) | |
823 | AT_CLEANUP | |
824 | ||
825 | AT_SETUP([OFPT_FLOW reply - OF1.2 - set-field ip_dst]) | |
826 | AT_KEYWORDS([ofp-print]) | |
827 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ | |
828 | 03 13 00 68 52 33 45 09 00 01 00 00 00 00 00 00 \ | |
829 | 00 58 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 \ | |
830 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
831 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
832 | 00 01 00 0a 80 00 0a 02 08 00 00 00 00 00 00 00 \ | |
833 | 00 04 00 18 00 00 00 00 00 19 00 10 80 00 18 04 \ | |
834 | c0 a8 4a 7a 00 00 00 00 \ | |
835 | " 2], [0], [dnl | |
836 | OFPST_FLOW reply (OF1.2) (xid=0x52334509): | |
837 | cookie=0x0, duration=0s, table=0, n_packets=0, n_bytes=0, priority=255,ip actions=set_field:192.168.74.122->ip_dst | |
838 | ], [dnl | |
839 | ]) | |
840 | AT_CLEANUP | |
841 | ||
9e1fd49b | 842 | AT_SETUP([OFPT_PORT_MOD - OF1.0]) |
fec00620 BP |
843 | AT_KEYWORDS([ofp-print]) |
844 | AT_CHECK([ovs-ofctl ofp-print "\ | |
845 | 01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \ | |
846 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
847 | " 3], [0], [dnl | |
9e1fd49b BP |
848 | OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01 |
849 | config: PORT_DOWN | |
850 | mask: PORT_DOWN | |
851 | advertise: UNCHANGED | |
852 | ]) | |
853 | AT_CLEANUP | |
854 | ||
855 | AT_SETUP([OFPT_PORT_MOD - OF1.1]) | |
856 | AT_KEYWORDS([ofp-print]) | |
857 | AT_CHECK([ovs-ofctl ofp-print "\ | |
858 | 02 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
859 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
860 | 00 00 00 00 00 00 00 00 \ | |
861 | " 3], [0], [dnl | |
862 | OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01 | |
863 | config: PORT_DOWN | |
864 | mask: PORT_DOWN | |
fec00620 BP |
865 | advertise: UNCHANGED |
866 | ]) | |
867 | AT_CLEANUP | |
868 | ||
bb2bc3c1 SH |
869 | AT_SETUP([OFPT_PORT_MOD - OF1.2]) |
870 | AT_KEYWORDS([ofp-print]) | |
871 | AT_CHECK([ovs-ofctl ofp-print "\ | |
872 | 03 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
873 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
874 | 00 00 00 00 00 00 00 00 \ | |
875 | " 3], [0], [dnl | |
876 | OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01 | |
877 | config: PORT_DOWN | |
878 | mask: PORT_DOWN | |
879 | advertise: UNCHANGED | |
880 | ]) | |
881 | AT_CLEANUP | |
882 | ||
2e1ae200 JR |
883 | AT_SETUP([OFPT_PORT_MOD - OF1.3]) |
884 | AT_KEYWORDS([ofp-print]) | |
885 | AT_CHECK([ovs-ofctl ofp-print "\ | |
886 | 04 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
887 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
888 | 00 00 00 00 00 00 00 00 \ | |
889 | " 3], [0], [dnl | |
890 | OFPT_PORT_MOD (OF1.3) (xid=0x3):port: 3: addr:50:54:00:00:00:01 | |
891 | config: PORT_DOWN | |
892 | mask: PORT_DOWN | |
893 | advertise: UNCHANGED | |
894 | ]) | |
895 | AT_CLEANUP | |
896 | ||
fec00620 BP |
897 | AT_SETUP([OFPST_DESC request]) |
898 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
899 | AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl | |
900 | OFPST_DESC request (xid=0x1): | |
901 | ]) | |
902 | AT_CLEANUP | |
903 | ||
904 | AT_SETUP([OFPST_DESC reply]) | |
905 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
906 | AT_CHECK([ovs-ofctl ofp-print "\ | |
907 | 01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \ | |
e0edde6f RS |
908 | 72 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \ |
909 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
fec00620 BP |
910 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ |
911 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
912 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
913 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
914 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
915 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
916 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
917 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
918 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
919 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
920 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
921 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
922 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
923 | 00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \ | |
924 | 20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \ | |
925 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
926 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
927 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
928 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
929 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
930 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
931 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
932 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
933 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
934 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
935 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
936 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
937 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
938 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
939 | 00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \ | |
940 | 30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \ | |
941 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
942 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
943 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
944 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
945 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
946 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
947 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
948 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
949 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
950 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
951 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
952 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
953 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
954 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
955 | 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \ | |
956 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
957 | 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \ | |
958 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
959 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
960 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
961 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
962 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
963 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
964 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
965 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
966 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
967 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
968 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
969 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
970 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
971 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
972 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
973 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
974 | "], [0], [dnl | |
975 | OFPST_DESC reply (xid=0x1): | |
e0edde6f | 976 | Manufacturer: Nicira, Inc. |
fec00620 BP |
977 | Hardware: Open vSwitch |
978 | Software: 1.1.0pre2 | |
979 | Serial Num: None | |
980 | DP Description: None | |
981 | ]) | |
982 | AT_CLEANUP | |
983 | ||
0157ad3a | 984 | AT_SETUP([OFPST_FLOW request - OF1.0]) |
fec00620 BP |
985 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
986 | AT_CHECK([ovs-ofctl ofp-print "\ | |
987 | 01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \ | |
988 | ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
989 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
990 | 00 00 00 00 ff 00 ff ff \ | |
991 | "], [0], [dnl | |
54ae6fa8 | 992 | OFPST_FLOW request (xid=0x4): @&t@ |
fec00620 BP |
993 | ]) |
994 | AT_CLEANUP | |
995 | ||
0157ad3a SH |
996 | AT_SETUP([OFPST_FLOW request - OF1.2]) |
997 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
998 | AT_CHECK([ovs-ofctl ofp-print "\ | |
999 | 03 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \ | |
1000 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1001 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1002 | 00 01 00 04 00 00 00 00 \ | |
1003 | "], [0], [dnl | |
1004 | OFPST_FLOW request (OF1.2) (xid=0x2): @&t@ | |
1005 | ]) | |
1006 | AT_CLEANUP | |
1007 | ||
2e1ae200 JR |
1008 | AT_SETUP([OFPST_FLOW request - OF1.3]) |
1009 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1010 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1011 | 04 12 00 38 00 00 00 02 00 01 00 00 00 00 00 00 \ | |
1012 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1013 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1014 | 00 01 00 04 00 00 00 00 \ | |
1015 | "], [0], [dnl | |
1016 | OFPST_FLOW request (OF1.3) (xid=0x2): @&t@ | |
1017 | ]) | |
1018 | AT_CLEANUP | |
1019 | ||
6ec5f0c5 | 1020 | AT_SETUP([OFPST_FLOW reply - OF1.0]) |
fec00620 BP |
1021 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1022 | AT_CHECK([ovs-ofctl ofp-print "\ | |
05b8f1c2 | 1023 | 01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \ |
fec00620 BP |
1024 | 00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \ |
1025 | 00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \ | |
1026 | c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \ | |
1027 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1028 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \ | |
1029 | 00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \ | |
1030 | 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \ | |
1031 | 00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \ | |
1032 | c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \ | |
1033 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1034 | 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \ | |
1035 | 00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \ | |
1036 | 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \ | |
1037 | 00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \ | |
1038 | c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \ | |
1039 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1040 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \ | |
1041 | 00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \ | |
fbc7ed06 | 1042 | 00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \ |
fec00620 BP |
1043 | 00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \ |
1044 | c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \ | |
fbc7ed06 | 1045 | 80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
1046 | 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \ |
1047 | 00 00 04 fa 00 00 00 08 00 01 00 00 \ | |
05b8f1c2 BP |
1048 | 00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \ |
1049 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1050 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1051 | 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \ | |
1052 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1053 | 00 00 00 00 00 00 00 00 \ | |
fec00620 BP |
1054 | "], [0], [dnl |
1055 | OFPST_FLOW reply (xid=0x4): | |
666d0863 | 1056 | cookie=0x0, duration=4.2s, 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 |
b9718b7b | 1057 | cookie=0x0, duration=8.9s, 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 |
666d0863 | 1058 | cookie=0x0, duration=4.28s, 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 | 1059 | 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 | 1060 | cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop |
fec00620 BP |
1061 | ]) |
1062 | AT_CLEANUP | |
1063 | ||
6ec5f0c5 SH |
1064 | AT_SETUP([OFPST_FLOW reply - OF1.2]) |
1065 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1066 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1067 | 03 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \ | |
1068 | 00 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \ | |
1069 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1070 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \ | |
1071 | 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \ | |
1072 | ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \ | |
1073 | 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \ | |
1074 | 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \ | |
1075 | 05 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \ | |
1076 | 20 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \ | |
1077 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \ | |
1078 | 00 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \ | |
1079 | 00 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \ | |
1080 | 0a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \ | |
1081 | 00 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \ | |
1082 | 00 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \ | |
1083 | 00 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \ | |
1084 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1085 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \ | |
1086 | 00 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \ | |
1087 | 52 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \ | |
1088 | 00 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \ | |
1089 | 00 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \ | |
1090 | 05 dc 00 00 00 00 00 00 \ | |
1091 | "], [0], [dnl | |
1092 | OFPST_FLOW reply (OF1.2) (xid=0x2): | |
1093 | 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 | |
1094 | 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 | |
1095 | 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 | |
1096 | ]) | |
1097 | AT_CLEANUP | |
1098 | ||
617da9cd | 1099 | AT_SETUP([OFPST_AGGREGATE request - OF1.0]) |
fec00620 BP |
1100 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1101 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1102 | 01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \ | |
1103 | ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1104 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1105 | 00 00 00 00 ff 00 ff ff \ | |
1106 | "], [0], [dnl | |
54ae6fa8 | 1107 | OFPST_AGGREGATE request (xid=0x4): @&t@ |
fec00620 BP |
1108 | ]) |
1109 | AT_CLEANUP | |
1110 | ||
617da9cd SH |
1111 | AT_SETUP([OFPST_AGGREGATE request - OF1.2]) |
1112 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1113 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1114 | 03 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1115 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1116 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1117 | 00 01 00 04 00 00 00 00 \ | |
1118 | "], [0], [dnl | |
1119 | OFPST_AGGREGATE request (OF1.2) (xid=0x2): @&t@ | |
1120 | ]) | |
1121 | AT_CLEANUP | |
1122 | ||
2e1ae200 JR |
1123 | AT_SETUP([OFPST_AGGREGATE request - OF1.3]) |
1124 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1125 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1126 | 04 12 00 38 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1127 | ff 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 \ | |
1128 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1129 | 00 01 00 04 00 00 00 00 \ | |
1130 | "], [0], [dnl | |
1131 | OFPST_AGGREGATE request (OF1.3) (xid=0x2): @&t@ | |
1132 | ]) | |
1133 | AT_CLEANUP | |
1134 | ||
617da9cd | 1135 | AT_SETUP([OFPST_AGGREGATE reply - OF1.0]) |
fec00620 BP |
1136 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1137 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1138 | 01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \ | |
1139 | 00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \ | |
1140 | 00 00 00 00 \ | |
1141 | "], [0], [dnl | |
1142 | OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4 | |
1143 | ]) | |
1144 | AT_CLEANUP | |
1145 | ||
617da9cd SH |
1146 | AT_SETUP([OFPST_AGGREGATE reply - OF1.2]) |
1147 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1148 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1149 | 03 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1150 | 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \ | |
1151 | 00 00 00 03 00 00 00 00 \ | |
1152 | "], [0], [dnl | |
1153 | OFPST_AGGREGATE reply (OF1.2) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3 | |
1154 | ]) | |
1155 | AT_CLEANUP | |
1156 | ||
2e1ae200 JR |
1157 | AT_SETUP([OFPST_AGGREGATE reply - OF1.3]) |
1158 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1159 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1160 | 04 13 00 28 00 00 00 02 00 02 00 00 00 00 00 00 \ | |
1161 | 00 00 00 00 00 00 00 79 00 00 00 00 00 00 4b 4f \ | |
1162 | 00 00 00 03 00 00 00 00 \ | |
1163 | "], [0], [dnl | |
1164 | OFPST_AGGREGATE reply (OF1.3) (xid=0x2): packet_count=121 byte_count=19279 flow_count=3 | |
1165 | ]) | |
1166 | AT_CLEANUP | |
1167 | ||
307975da | 1168 | AT_SETUP([OFPST_TABLE request - OF1.0]) |
fec00620 BP |
1169 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1170 | AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl | |
1171 | OFPST_TABLE request (xid=0x1): | |
1172 | ]) | |
1173 | AT_CLEANUP | |
1174 | ||
307975da SH |
1175 | AT_SETUP([OFPST_TABLE request - OF1.1]) |
1176 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1177 | AT_CHECK([ovs-ofctl ofp-print "02120010000000020003000000000000"], [0], [dnl | |
1178 | OFPST_TABLE request (OF1.1) (xid=0x2): | |
1179 | ]) | |
1180 | AT_CLEANUP | |
1181 | ||
1182 | AT_SETUP([OFPST_TABLE request - OF1.2]) | |
1183 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1184 | AT_CHECK([ovs-ofctl ofp-print "03120010000000020003000000000000"], [0], [dnl | |
1185 | OFPST_TABLE request (OF1.2) (xid=0x2): | |
1186 | ]) | |
1187 | AT_CLEANUP | |
1188 | ||
2e1ae200 JR |
1189 | AT_SETUP([OFPST_TABLE request - OF1.3]) |
1190 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1191 | AT_CHECK([ovs-ofctl ofp-print "04120010000000020003000000000000"], [0], [dnl | |
1192 | OFPST_TABLE request (OF1.3) (xid=0x2): | |
1193 | ]) | |
1194 | AT_CLEANUP | |
1195 | ||
26df8b3e | 1196 | AT_SETUP([OFPST_TABLE reply - OF1.0]) |
fec00620 BP |
1197 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1198 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1199 | 01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \ | |
1200 | 63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \ | |
1201 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1202 | 00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \ | |
1203 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1204 | "], [0], [dnl | |
1205 | OFPST_TABLE reply (xid=0x1): 1 tables | |
1206 | 0: classifier: wild=0x3fffff, max=1048576, active=11 | |
1207 | lookup=0, matched=0 | |
1208 | ]) | |
1209 | AT_CLEANUP | |
1210 | ||
26df8b3e SH |
1211 | AT_SETUP([OFPST_TABLE reply - OF1.2]) |
1212 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1213 | (mid="wild=0xfffffffff, max=1000000," | |
1214 | tail=" | |
1215 | match=0xfffffffff, instructions=0x00000007, config=0x00000000 | |
1216 | write_actions=0x00000000, apply_actions=0x00000000 | |
1217 | write_setfields=0x0000000fffffffff | |
1218 | apply_setfields=0x0000000fffffffff | |
1219 | metadata_match=0x0000000000000000 | |
1220 | metadata_write=0x0000000000000000" | |
1221 | echo "OFPST_TABLE reply (OF1.2) (xid=0x2): 255 tables | |
1222 | 0: classifier: $mid active=1 | |
1223 | lookup=74614, matched=106024$tail" | |
1224 | x=1 | |
1225 | while test $x -lt 254; do | |
1226 | printf " %d: %-8s: $mid active=0 | |
1227 | lookup=0, matched=0$tail | |
1228 | " $x table$x | |
1229 | x=`expr $x + 1` | |
1230 | done | |
1231 | echo " 254: table254: $mid active=2 | |
1232 | lookup=0, matched=0$tail") > expout | |
1233 | ||
1234 | (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" | |
1235 | pad7="00 00 00 00 00 00 00 " | |
1236 | mid="00 00 00 0f ff ff ff ff \ | |
1237 | 00 00 00 0f ff ff ff ff 00 00 00 00 00 00 00 00 \ | |
1238 | 00 00 00 0f ff ff ff ff 00 00 00 0f ff ff ff ff \ | |
1239 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1240 | 00 00 00 07 00 00 00 00 00 0f 42 40 " | |
1241 | tail="00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" | |
1242 | ||
1243 | echo -n "03 13 7f 90 00 00 00 02 00 03 00 00 00 00 00 00 " | |
1244 | ||
1245 | x=0 | |
1246 | printf "%02x $pad7" $x | |
1247 | printf "%s$pad32" "classifier" | od -A n -t x1 -v -N 32 | tr '\n' ' ' | |
1248 | echo -n "$mid 00 00 00 01 " | |
1249 | echo -n "00 00 00 00 00 01 23 76 00 00 00 00 00 01 9e 28 " | |
1250 | ||
1251 | x=1 | |
1252 | while test $x -lt 254; do | |
1253 | printf "%02x $pad7" $x | |
1254 | printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' ' | |
1255 | echo -n "$mid 00 00 00 00 $tail " | |
1256 | x=`expr $x + 1` | |
1257 | done | |
1258 | ||
1259 | x=254 | |
1260 | printf "%02x $pad7" $x | |
1261 | printf "%s$pad32" "table$x" | od -A n -t x1 -v -N 32 | tr '\n' ' ' | |
1262 | echo -n "$mid 00 00 00 02 $tail") > in | |
1263 | AT_CHECK([ovs-ofctl ofp-print "$(cat in)"], [0], [expout]) | |
1264 | AT_CLEANUP | |
1265 | ||
2e1ae200 JR |
1266 | AT_SETUP([OFPST_TABLE reply - OF1.3]) |
1267 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1268 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1269 | 04 13 00 40 00 00 00 01 00 03 00 00 00 00 00 00 \ | |
1270 | 00 00 00 00 00 00 00 0b 00 00 00 00 00 00 02 00 \ | |
1271 | 00 00 00 00 00 00 01 00 01 00 00 00 00 00 00 0c \ | |
1272 | 00 00 00 00 00 00 02 01 00 00 00 00 00 00 01 01 \ | |
1273 | "], [0], [dnl | |
1274 | OFPST_TABLE reply (OF1.3) (xid=0x1): 2 tables | |
1275 | 0: active=11, lookup=512, matched=256 | |
1276 | 1: active=12, lookup=513, matched=257 | |
1277 | ]) | |
1278 | AT_CLEANUP | |
1279 | ||
f8e4867e | 1280 | AT_SETUP([OFPST_PORT request - 1.0]) |
fec00620 BP |
1281 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1282 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1283 | 01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \ | |
1284 | 00 00 00 00 \ | |
1285 | "], [0], [dnl | |
e1db42d6 | 1286 | OFPST_PORT request (xid=0x1): port_no=ANY |
fec00620 BP |
1287 | ]) |
1288 | AT_CLEANUP | |
1289 | ||
f8e4867e SH |
1290 | AT_SETUP([OFPST_PORT request - 1.1]) |
1291 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1292 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1293 | 02 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1294 | ff ff ff ff 00 00 00 00 \ | |
1295 | "], [0], [dnl | |
e1db42d6 | 1296 | OFPST_PORT request (OF1.1) (xid=0x2): port_no=ANY |
f8e4867e SH |
1297 | ]) |
1298 | AT_CLEANUP | |
1299 | ||
1300 | AT_SETUP([OFPST_PORT request - 1.2]) | |
1301 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1302 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1303 | 03 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1304 | ff ff ff ff 00 00 00 00 \ | |
1305 | "], [0], [dnl | |
e1db42d6 | 1306 | OFPST_PORT request (OF1.2) (xid=0x2): port_no=ANY |
f8e4867e SH |
1307 | ]) |
1308 | AT_CLEANUP | |
1309 | ||
2e1ae200 JR |
1310 | AT_SETUP([OFPST_PORT request - 1.3]) |
1311 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1312 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1313 | 04 12 00 18 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1314 | ff ff ff ff 00 00 00 00 \ | |
1315 | "], [0], [dnl | |
e1db42d6 | 1316 | OFPST_PORT request (OF1.3) (xid=0x2): port_no=ANY |
2e1ae200 JR |
1317 | ]) |
1318 | AT_CLEANUP | |
1319 | ||
f8e4867e | 1320 | AT_SETUP([OFPST_PORT reply - OF1.0]) |
fec00620 BP |
1321 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1322 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1323 | 01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \ | |
1324 | 00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \ | |
1325 | 00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \ | |
1326 | 00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1327 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1328 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1329 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1330 | 00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \ | |
1331 | 00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \ | |
1332 | 00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \ | |
1333 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1334 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1335 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1336 | 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
1337 | 00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \ | |
1338 | 00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \ | |
1339 | 00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1340 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1341 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1342 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1343 | 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \ | |
1344 | 00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \ | |
1345 | 00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \ | |
1346 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1347 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1348 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1349 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1350 | "], [0], [dnl | |
1351 | OFPST_PORT reply (xid=0x1): 4 ports | |
1352 | port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0 | |
1353 | tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0 | |
e1db42d6 | 1354 | port LOCAL: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0 |
fec00620 BP |
1355 | tx pkts=501, bytes=56092, drop=0, errs=0, coll=0 |
1356 | port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0 | |
1357 | tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0 | |
1358 | port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0 | |
1359 | tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0 | |
1360 | ]) | |
1361 | AT_CLEANUP | |
1362 | ||
f8e4867e SH |
1363 | AT_SETUP([OFPST_PORT reply - OF1.2]) |
1364 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1365 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1366 | 03 13 01 48 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1367 | 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \ | |
1368 | 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \ | |
1369 | 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \ | |
1370 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1371 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1372 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1373 | 00 00 00 00 00 00 00 00 ff ff ff fe 00 00 00 00 \ | |
1374 | 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \ | |
1375 | 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \ | |
1376 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1377 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1378 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1379 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1380 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \ | |
1381 | 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \ | |
1382 | 00 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \ | |
1383 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1384 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1385 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1386 | 00 00 00 00 00 00 00 00 \ | |
1387 | "], [0], [dnl | |
1388 | OFPST_PORT reply (OF1.2) (xid=0x2): 3 ports | |
1389 | port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0 | |
1390 | tx pkts=136, bytes=11512, drop=0, errs=0, coll=0 | |
e1db42d6 | 1391 | port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 |
f8e4867e SH |
1392 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 |
1393 | port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 | |
1394 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 | |
1395 | ]) | |
1396 | AT_CLEANUP | |
1397 | ||
65e0be10 BP |
1398 | AT_SETUP([OFPST_PORT reply - OF1.3]) |
1399 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1400 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1401 | 04 13 01 60 00 00 00 02 00 04 00 00 00 00 00 00 \ | |
1402 | 00 00 00 02 00 00 00 00 00 00 00 00 00 01 95 56 \ | |
1403 | 00 00 00 00 00 00 00 88 00 00 00 00 02 5d 08 98 \ | |
1404 | 00 00 00 00 00 00 2c f8 00 00 00 00 00 00 00 00 \ | |
1405 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1406 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1407 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1408 | 00 00 00 00 00 00 00 00 00 00 00 01 00 0f 42 40 \ | |
1409 | ff ff ff fe 00 00 00 00 \ | |
1410 | 00 00 00 00 00 00 00 44 00 00 00 00 00 00 9d 2c \ | |
1411 | 00 00 00 00 00 00 16 7c 00 00 00 00 01 1e 36 44 \ | |
1412 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1413 | 00 00 00 00 00 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 00 00 00 00 00 00 00 00 \ | |
1416 | ff ff ff ff ff ff ff ff \ | |
1417 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 44 \ | |
1418 | 00 00 00 00 00 00 9d 2c 00 00 00 00 00 00 16 7c \ | |
1419 | 00 00 00 00 01 1e 36 44 00 00 00 00 00 00 00 00 \ | |
1420 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1421 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1422 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1423 | 00 00 00 00 00 00 00 00 00 00 00 00 07 54 d4 c0 \ | |
1424 | "], [0], [dnl | |
1425 | OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports | |
1426 | port 2: rx pkts=103766, bytes=39651480, drop=0, errs=0, frame=0, over=0, crc=0 | |
1427 | tx pkts=136, bytes=11512, drop=0, errs=0, coll=0 | |
1428 | duration=1.001s | |
1429 | port LOCAL: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 | |
1430 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 | |
1431 | port 1: rx pkts=68, bytes=5756, drop=0, errs=0, frame=0, over=0, crc=0 | |
1432 | tx pkts=40236, bytes=18757188, drop=0, errs=0, coll=0 | |
1433 | duration=0.123s | |
1434 | ]) | |
1435 | AT_CLEANUP | |
1436 | ||
64626975 | 1437 | AT_SETUP([OFPST_QUEUE request - OF1.0]) |
fec00620 BP |
1438 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) |
1439 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1440 | 01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \ | |
1441 | ff ff ff ff \ | |
1442 | "], [0], [dnl | |
7f05e7ab | 1443 | OFPST_QUEUE request (xid=0x1):port=ANY queue=ALL |
fec00620 BP |
1444 | ]) |
1445 | AT_CLEANUP | |
1446 | ||
64626975 SH |
1447 | AT_SETUP([OFPST_QUEUE request - OF1.1]) |
1448 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1449 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1450 | 02 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \ | |
7f05e7ab | 1451 | ff ff ff ff ff ff ff ff \ |
64626975 | 1452 | "], [0], [dnl |
7f05e7ab | 1453 | OFPST_QUEUE request (OF1.1) (xid=0x2):port=ANY queue=ALL |
64626975 SH |
1454 | ]) |
1455 | AT_CLEANUP | |
1456 | ||
1457 | AT_SETUP([OFPST_QUEUE request - OF1.2]) | |
1458 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1459 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1460 | 03 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \ | |
7f05e7ab | 1461 | ff ff ff ff ff ff ff ff \ |
64626975 | 1462 | "], [0], [dnl |
7f05e7ab | 1463 | OFPST_QUEUE request (OF1.2) (xid=0x2):port=ANY queue=ALL |
64626975 SH |
1464 | ]) |
1465 | AT_CLEANUP | |
1466 | ||
2e1ae200 JR |
1467 | AT_SETUP([OFPST_QUEUE request - OF1.3]) |
1468 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1469 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1470 | 04 12 00 18 00 00 00 02 00 05 00 00 00 00 00 00 \ | |
1471 | ff ff ff ff ff ff ff ff \ | |
1472 | "], [0], [dnl | |
1473 | OFPST_QUEUE request (OF1.3) (xid=0x2):port=ANY queue=ALL | |
1474 | ]) | |
1475 | AT_CLEANUP | |
1476 | ||
64626975 | 1477 | AT_SETUP([OFPST_QUEUE reply - OF1.0]) |
fec00620 BP |
1478 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) |
1479 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1480 | 01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \ | |
1481 | 00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \ | |
1482 | 00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \ | |
1483 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1484 | 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
1485 | 00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \ | |
1486 | 00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
1487 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1488 | 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \ | |
1489 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1490 | 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \ | |
1491 | 00 00 00 02 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 \ | |
1493 | "], [0], [dnl | |
1494 | OFPST_QUEUE reply (xid=0x1): 6 queues | |
1495 | port 3 queue 1: bytes=302, pkts=1, errors=0 | |
1496 | port 3 queue 2: bytes=0, pkts=0, errors=0 | |
1497 | port 2 queue 1: bytes=2100, pkts=20, errors=0 | |
1498 | port 2 queue 2: bytes=0, pkts=0, errors=0 | |
1499 | port 1 queue 1: bytes=0, pkts=0, errors=0 | |
1500 | port 1 queue 2: bytes=0, pkts=0, errors=0 | |
1501 | ]) | |
1502 | AT_CLEANUP | |
1503 | ||
2be393ed JP |
1504 | AT_SETUP([OFPST_PORT_DESC request - OF1.0]) |
1505 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1506 | AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl | |
1507 | OFPST_PORT_DESC request (xid=0x1): | |
1508 | ]) | |
1509 | AT_CLEANUP | |
1510 | ||
64626975 SH |
1511 | AT_SETUP([OFPST_QUEUE reply - OF1.1]) |
1512 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1513 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1514 | 02 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \ | |
1515 | 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \ | |
1516 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
1517 | 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1518 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1519 | 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \ | |
1520 | 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \ | |
1521 | 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1522 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1523 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
1524 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1525 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1526 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1527 | "], [0], [dnl | |
1528 | OFPST_QUEUE reply (OF1.1) (xid=0x1): 6 queues | |
1529 | port 3 queue 1: bytes=302, pkts=1, errors=0 | |
1530 | port 3 queue 2: bytes=0, pkts=0, errors=0 | |
1531 | port 2 queue 1: bytes=2100, pkts=20, errors=0 | |
1532 | port 2 queue 2: bytes=0, pkts=0, errors=0 | |
1533 | port 1 queue 1: bytes=0, pkts=0, errors=0 | |
1534 | port 1 queue 2: bytes=0, pkts=0, errors=0 | |
1535 | ]) | |
1536 | AT_CLEANUP | |
1537 | ||
1538 | AT_SETUP([OFPST_QUEUE reply - OF1.2]) | |
1539 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1540 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1541 | 03 13 00 d0 00 00 00 01 00 05 00 00 00 00 00 00 \ | |
1542 | 00 00 00 03 00 00 00 01 00 00 00 00 00 00 01 2e \ | |
1543 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
1544 | 00 00 00 03 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1545 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1546 | 00 00 00 02 00 00 00 01 00 00 00 00 00 00 08 34 \ | |
1547 | 00 00 00 00 00 00 00 14 00 00 00 00 00 00 00 00 \ | |
1548 | 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1549 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1550 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
1551 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1552 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1553 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1554 | "], [0], [dnl | |
1555 | OFPST_QUEUE reply (OF1.2) (xid=0x1): 6 queues | |
1556 | port 3 queue 1: bytes=302, pkts=1, errors=0 | |
1557 | port 3 queue 2: bytes=0, pkts=0, errors=0 | |
1558 | port 2 queue 1: bytes=2100, pkts=20, errors=0 | |
1559 | port 2 queue 2: bytes=0, pkts=0, errors=0 | |
1560 | port 1 queue 1: bytes=0, pkts=0, errors=0 | |
1561 | port 1 queue 2: bytes=0, pkts=0, errors=0 | |
1562 | ]) | |
1563 | AT_CLEANUP | |
1564 | ||
2be393ed JP |
1565 | AT_SETUP([OFPST_PORT_DESC reply - OF1.0]) |
1566 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1567 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1568 | 01 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \ | |
1569 | 00 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \ | |
1570 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \ | |
1571 | 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
1572 | "], [0], [dnl | |
1573 | OFPST_PORT_DESC reply (xid=0x0): | |
1574 | 3(eth0): addr:50:54:00:00:00:01 | |
1575 | config: PORT_DOWN | |
1576 | state: LINK_DOWN | |
1577 | current: 100MB-FD AUTO_NEG | |
1578 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
1579 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
1580 | speed: 100 Mbps now, 100 Mbps max | |
1581 | ]) | |
1582 | AT_CLEANUP | |
1583 | ||
638a19b0 JR |
1584 | AT_SETUP([OFPT_METER_MOD request - OF1.3]) |
1585 | AT_KEYWORDS([ofp-print]) | |
1586 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1587 | 04 1d 00 20 00 00 00 02 00 00 00 0d 00 00 00 05 \ | |
1588 | 00 01 00 10 00 00 04 00 00 00 00 80 00 00 00 00 \ | |
1589 | "], [0], [dnl | |
1590 | OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=5 kbps burst stats bands= | |
1591 | type=drop rate=1024 burst_size=128 | |
1592 | ]) | |
1593 | AT_CLEANUP | |
1594 | ||
1595 | AT_SETUP([OFPST_METER request - OF1.3]) | |
1596 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1597 | AT_CHECK([ovs-ofctl ofp-print "041200180000000200090000000000000000000100000000"], [0], [dnl | |
1598 | OFPST_METER request (OF1.3) (xid=0x2): meter=1 | |
1599 | ]) | |
1600 | AT_CLEANUP | |
1601 | ||
1602 | AT_SETUP([OFPST_METER_CONFIG request - OF1.3]) | |
1603 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1604 | AT_CHECK([ovs-ofctl ofp-print "0412001800000002000a0000000000000000000100000000"], [0], [dnl | |
1605 | OFPST_METER_CONFIG request (OF1.3) (xid=0x2): meter=1 | |
1606 | ]) | |
1607 | AT_CLEANUP | |
1608 | ||
1609 | AT_SETUP([OFPST_METER_FEATURES request - OF1.3]) | |
1610 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1611 | AT_CHECK([ovs-ofctl ofp-print "0412001000000002000b000000000000"], [0], [dnl | |
1612 | OFPST_METER_FEATURES request (OF1.3) (xid=0x2): | |
1613 | ]) | |
1614 | AT_CLEANUP | |
1615 | ||
1616 | AT_SETUP([OFPST_METER_FEATURES reply - OF1.3]) | |
1617 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1618 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1619 | 04 13 00 20 00 00 00 02 00 0b 00 00 00 00 00 00 \ | |
1620 | 00 01 00 00 00 00 00 03 00 00 00 0F 10 02 00 00 \ | |
1621 | "], [0], [dnl | |
1622 | OFPST_METER_FEATURES reply (OF1.3) (xid=0x2): | |
1623 | max_meter:65536 max_bands:16 max_color:2 | |
1624 | band_types: drop dscp_remark | |
1625 | capabilities: kbps pktps burst stats | |
1626 | ]) | |
1627 | AT_CLEANUP | |
1628 | ||
1629 | AT_SETUP([OFPST_METER_CONFIG reply - OF1.3]) | |
1630 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1631 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1632 | 04 13 00 50 00 00 00 02 00 0a 00 00 00 00 00 00 \ | |
1633 | 00 28 00 05 00 00 00 01 \ | |
1634 | 00 01 00 10 00 01 00 00 00 00 05 00 00 00 00 00 \ | |
1635 | 00 02 00 10 00 10 00 00 00 00 f0 00 00 00 00 00 \ | |
1636 | 00 18 00 09 00 00 00 02 \ | |
1637 | 00 01 00 10 00 02 00 00 00 00 00 00 00 00 00 00 \ | |
1638 | "], [0], [dnl | |
1639 | OFPST_METER_CONFIG reply (OF1.3) (xid=0x2): | |
1640 | meter=1 kbps burst bands= | |
1641 | type=drop rate=65536 burst_size=1280 | |
1642 | type=dscp_remark rate=1048576 burst_size=61440 prec_level=0 | |
1643 | ||
1644 | meter=2 kbps stats bands= | |
1645 | type=drop rate=131072 | |
1646 | ]) | |
1647 | AT_CLEANUP | |
1648 | ||
1649 | AT_SETUP([OFPST_METER reply - OF1.3]) | |
1650 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1651 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1652 | 04 13 00 90 00 00 00 02 00 09 00 00 00 00 00 00 \ | |
1653 | 00 00 00 01 00 48 00 00 00 00 00 00 00 00 00 05 \ | |
1654 | 00 00 00 00 00 00 10 00 00 00 00 00 00 02 30 00 \ | |
1655 | 00 00 01 8a 9a 6e 23 44 \ | |
1656 | 00 00 00 00 00 00 00 7e 00 00 00 00 00 00 34 33 \ | |
1657 | 00 00 00 00 00 00 00 e7 00 00 00 00 00 00 94 2e \ | |
1658 | 00 00 00 02 00 38 00 00 00 00 00 00 00 00 00 02 \ | |
1659 | 00 00 00 00 00 00 02 00 00 00 00 00 00 00 30 00 \ | |
1660 | 00 00 01 87 9a 23 6e 44 \ | |
1661 | 00 00 00 00 00 00 00 2a 00 00 00 00 00 00 04 33 \ | |
1662 | "], [0], [dnl | |
1663 | OFPST_METER reply (OF1.3) (xid=0x2): | |
1664 | meter:1 flow_count:5 packet_in_count:4096 byte_in_count:143360 duration:394.2590909252s bands: | |
1665 | 0: packet_count:126 byte_count:13363 | |
1666 | 1: packet_count:231 byte_count:37934 | |
1667 | ||
1668 | meter:2 flow_count:2 packet_in_count:512 byte_in_count:12288 duration:391.2586013252s bands: | |
1669 | 0: packet_count:42 byte_count:1075 | |
1670 | ]) | |
1671 | AT_CLEANUP | |
1672 | ||
58cf43df | 1673 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.0]) |
fec00620 BP |
1674 | AT_KEYWORDS([ofp-print]) |
1675 | AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl | |
1676 | OFPT_BARRIER_REQUEST (xid=0x1): | |
1677 | ]) | |
1678 | AT_CLEANUP | |
1679 | ||
58cf43df SH |
1680 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.1]) |
1681 | AT_KEYWORDS([ofp-print]) | |
1682 | AT_CHECK([ovs-ofctl ofp-print '02 14 00 08 00 00 00 01'], [0], [dnl | |
1683 | OFPT_BARRIER_REQUEST (OF1.1) (xid=0x1): | |
1684 | ]) | |
1685 | AT_CLEANUP | |
1686 | ||
1687 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.2]) | |
1688 | AT_KEYWORDS([ofp-print]) | |
1689 | AT_CHECK([ovs-ofctl ofp-print '03 14 00 08 00 00 00 01'], [0], [dnl | |
1690 | OFPT_BARRIER_REQUEST (OF1.2) (xid=0x1): | |
1691 | ]) | |
1692 | AT_CLEANUP | |
1693 | ||
2e1ae200 JR |
1694 | AT_SETUP([OFPT_BARRIER_REQUEST - OF1.3]) |
1695 | AT_KEYWORDS([ofp-print]) | |
1696 | AT_CHECK([ovs-ofctl ofp-print '04 14 00 08 00 00 00 01'], [0], [dnl | |
1697 | OFPT_BARRIER_REQUEST (OF1.3) (xid=0x1): | |
1698 | ]) | |
1699 | AT_CLEANUP | |
1700 | ||
58cf43df | 1701 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.0]) |
fec00620 BP |
1702 | AT_KEYWORDS([ofp-print]) |
1703 | AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl | |
1704 | OFPT_BARRIER_REPLY (xid=0x1): | |
1705 | ]) | |
1706 | AT_CLEANUP | |
1707 | ||
2e1ae200 | 1708 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.1]) |
58cf43df SH |
1709 | AT_KEYWORDS([ofp-print]) |
1710 | AT_CHECK([ovs-ofctl ofp-print '02 15 00 08 00 00 00 01'], [0], [dnl | |
1711 | OFPT_BARRIER_REPLY (OF1.1) (xid=0x1): | |
1712 | ]) | |
1713 | AT_CLEANUP | |
1714 | ||
2e1ae200 | 1715 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.2]) |
58cf43df SH |
1716 | AT_KEYWORDS([ofp-print]) |
1717 | AT_CHECK([ovs-ofctl ofp-print '03 15 00 08 00 00 00 01'], [0], [dnl | |
1718 | OFPT_BARRIER_REPLY (OF1.2) (xid=0x1): | |
1719 | ]) | |
1720 | AT_CLEANUP | |
1721 | ||
2e1ae200 JR |
1722 | AT_SETUP([OFPT_BARRIER_REPLY - OF1.3]) |
1723 | AT_KEYWORDS([ofp-print]) | |
1724 | AT_CHECK([ovs-ofctl ofp-print '04 15 00 08 00 00 00 01'], [0], [dnl | |
1725 | OFPT_BARRIER_REPLY (OF1.3) (xid=0x1): | |
1726 | ]) | |
1727 | AT_CLEANUP | |
1728 | ||
1729 | ||
1730 | AT_SETUP([OFPT_SET_ASYNC - OF1.3]) | |
1731 | AT_KEYWORDS([ofp-print]) | |
1732 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1733 | 04 1c 00 20 00 00 00 00 00 00 10 05 00 00 10 07 \ | |
1734 | 00 00 00 03 00 00 00 07 00 00 00 00 00 00 00 03 \ | |
1735 | "], [0], [dnl | |
1736 | OFPT_SET_ASYNC (OF1.3) (xid=0x0): | |
1737 | master: | |
1738 | PACKET_IN: no_match invalid_ttl 12 | |
1739 | PORT_STATUS: add delete | |
1740 | FLOW_REMOVED: (off) | |
1741 | ||
1742 | slave: | |
1743 | PACKET_IN: no_match action invalid_ttl 12 | |
1744 | PORT_STATUS: add delete modify | |
1745 | FLOW_REMOVED: idle hard | |
1746 | ]) | |
1747 | AT_CLEANUP | |
1748 | ||
6ea4776b JR |
1749 | AT_SETUP([OFPT_ROLE_REQUEST - OF1.2]) |
1750 | AT_KEYWORDS([ofp-print]) | |
1751 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1752 | 03 18 00 18 00 00 00 02 00 00 00 02 00 00 00 00 \ | |
1753 | 00 00 00 00 00 00 00 03 \ | |
1754 | "], [0], [dnl | |
1755 | OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=master generation_id=3 | |
1756 | ]) | |
1757 | AT_CLEANUP | |
1758 | ||
1759 | AT_SETUP([OFPT_ROLE_REQUEST - nochange - OF1.2]) | |
1760 | AT_KEYWORDS([ofp-print]) | |
1761 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1762 | 03 18 00 18 00 00 00 02 00 00 00 00 00 00 00 00 \ | |
1763 | 00 00 00 00 00 00 00 00 \ | |
1764 | "], [0], [dnl | |
1765 | OFPT_ROLE_REQUEST (OF1.2) (xid=0x2): role=nochange | |
1766 | ]) | |
1767 | AT_CLEANUP | |
1768 | ||
fec00620 BP |
1769 | AT_SETUP([NXT_ROLE_REQUEST]) |
1770 | AT_KEYWORDS([ofp-print]) | |
1771 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1772 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \ | |
1773 | 00 00 00 01 \ | |
1774 | "], [0], [dnl | |
1775 | NXT_ROLE_REQUEST (xid=0x2): role=master | |
1776 | ]) | |
1777 | AT_CLEANUP | |
1778 | ||
6ea4776b JR |
1779 | AT_SETUP([OFPT_ROLE_REPLY - OF1.2]) |
1780 | AT_KEYWORDS([ofp-print]) | |
1781 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1782 | 03 19 00 18 00 00 00 02 00 00 00 03 00 00 00 00 \ | |
147cc9d3 | 1783 | 12 34 56 78 ab cd ef 90 \ |
6ea4776b | 1784 | "], [0], [dnl |
147cc9d3 | 1785 | OFPT_ROLE_REPLY (OF1.2) (xid=0x2): role=slave generation_id=1311768467750121360 |
6ea4776b JR |
1786 | ]) |
1787 | AT_CLEANUP | |
1788 | ||
fec00620 BP |
1789 | AT_SETUP([NXT_ROLE_REPLY]) |
1790 | AT_KEYWORDS([ofp-print]) | |
1791 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1792 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \ | |
1793 | 00 00 00 02 \ | |
1794 | "], [0], [dnl | |
1795 | NXT_ROLE_REPLY (xid=0x2): role=slave | |
1796 | ]) | |
1797 | AT_CLEANUP | |
1798 | ||
54834960 EJ |
1799 | AT_SETUP([NXT_SET_PACKET_IN]) |
1800 | AT_KEYWORDS([ofp-print]) | |
1801 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1802 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \ | |
1803 | 00 00 00 01 \ | |
1804 | "], [0], [dnl | |
1805 | NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm | |
1806 | ]) | |
1807 | AT_CLEANUP | |
1808 | ||
1809 | AT_SETUP([NXT_PACKET_IN]) | |
1810 | AT_KEYWORDS([ofp-print]) | |
1811 | AT_CHECK([ovs-ofctl ofp-print "\ | |
969fc56c | 1812 | 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \ |
54834960 | 1813 | ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \ |
969fc56c | 1814 | 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \ |
54834960 EJ |
1815 | 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \ |
1816 | 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \ | |
1817 | 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \ | |
969fc56c | 1818 | 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \ |
42edbe39 | 1819 | ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \ |
54834960 EJ |
1820 | 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \ |
1821 | 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \ | |
1822 | 00 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \ | |
1823 | 31 6d 00 00 00 00 00 00 00 00 \ | |
1824 | "], [0], [dnl | |
42edbe39 | 1825 | NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered) |
3f78c3cc | 1826 | tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86 tcp_csum:316d |
54834960 EJ |
1827 | ]) |
1828 | AT_CLEANUP | |
1829 | ||
b4ccee75 SH |
1830 | AT_SETUP([NXT_PACKET_IN, with hex output of packet data]) |
1831 | AT_KEYWORDS([ofp-print]) | |
1832 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1833 | 01 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \ | |
1834 | ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \ | |
1835 | 00 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \ | |
1836 | 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \ | |
1837 | 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \ | |
1838 | 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \ | |
1839 | 00 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \ | |
1840 | ff ff ff ff ff ff 00 00 00 00 82 82 82 82 82 82 \ | |
1841 | 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \ | |
1842 | 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \ | |
1843 | 00 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \ | |
1844 | 31 6d 00 00 00 00 00 00 00 00 \ | |
1845 | " 3], [0], [dnl | |
1846 | NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a5a5a5a5a5a5a reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered) | |
1847 | tcp,metadata=0,in_port=0,dl_vlan=80,dl_vlan_pcp=0,dl_src=80:81:81:81:81:81,dl_dst=82:82:82:82:82:82,nw_src=83.83.83.83,nw_dst=84.84.84.84,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=85,tp_dst=86 tcp_csum:316d | |
1848 | 00000000 82 82 82 82 82 82 80 81-81 81 81 81 81 00 00 50 | |
1849 | 00000010 08 00 45 00 00 28 00 00-00 00 00 06 32 05 53 53 | |
1850 | 00000020 53 53 54 54 54 54 00 55-00 56 00 00 00 00 00 00 | |
1851 | 00000030 00 00 50 00 00 00 31 6d-00 00 00 00 00 00 00 00 | |
1852 | ]) | |
1853 | AT_CLEANUP | |
1854 | ||
80d5aefd BP |
1855 | AT_SETUP([NXT_SET_ASYNC_CONFIG]) |
1856 | AT_KEYWORDS([ofp-print]) | |
1857 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1858 | 01 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \ | |
1859 | 00 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \ | |
1860 | 00 00 00 00 00 00 00 03 \ | |
1861 | "], [0], [dnl | |
1862 | NXT_SET_ASYNC_CONFIG (xid=0x0): | |
1863 | master: | |
1864 | PACKET_IN: no_match invalid_ttl 12 | |
1865 | PORT_STATUS: add delete | |
1866 | FLOW_REMOVED: (off) | |
1867 | ||
1868 | slave: | |
1869 | PACKET_IN: no_match action invalid_ttl 12 | |
1870 | PORT_STATUS: add delete modify | |
1871 | FLOW_REMOVED: idle hard | |
1872 | ]) | |
1873 | AT_CLEANUP | |
1874 | ||
a7349929 BP |
1875 | AT_SETUP([NXT_SET_CONTROLLER_ID]) |
1876 | AT_KEYWORDS([ofp-print]) | |
1877 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1878 | 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \ | |
1879 | 00 00 00 00 00 00 00 7b \ | |
1880 | "], [0], [dnl | |
1881 | NXT_SET_CONTROLLER_ID (xid=0x3): id=123 | |
1882 | ]) | |
1883 | AT_CLEANUP | |
1884 | ||
2b07c8b1 BP |
1885 | AT_SETUP([NXT_FLOW_MONITOR_CANCEL]) |
1886 | AT_KEYWORDS([ofp-print]) | |
1887 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1888 | 01 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \ | |
1889 | 01 02 30 40 \ | |
1890 | "], [0], [dnl | |
1891 | NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640 | |
1892 | ]) | |
1893 | AT_CLEANUP | |
1894 | ||
1895 | AT_SETUP([NXT_FLOW_MONITOR_PAUSED]) | |
1896 | AT_KEYWORDS([ofp-print]) | |
1897 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1898 | 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \ | |
1899 | "], [0], [dnl | |
1900 | NXT_FLOW_MONITOR_PAUSED (xid=0x3): | |
1901 | ]) | |
1902 | AT_CLEANUP | |
1903 | ||
1904 | AT_SETUP([NXT_FLOW_MONITOR_RESUMED]) | |
1905 | AT_KEYWORDS([ofp-print]) | |
1906 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1907 | 01 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \ | |
1908 | "], [0], [dnl | |
1909 | NXT_FLOW_MONITOR_RESUMED (xid=0x3): | |
1910 | ]) | |
1911 | AT_CLEANUP | |
1912 | ||
fec00620 BP |
1913 | AT_SETUP([NXT_SET_FLOW_FORMAT]) |
1914 | AT_KEYWORDS([ofp-print]) | |
1915 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1916 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \ | |
1917 | 00 00 00 02 \ | |
1918 | "], [0], [dnl | |
1919 | NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm | |
1920 | ]) | |
1921 | AT_CLEANUP | |
1922 | ||
1923 | # The flow is formatted with cls_rule_format() for the low-verbosity case. | |
1924 | AT_SETUP([NXT_FLOW_MOD, low verbosity]) | |
1925 | AT_KEYWORDS([ofp-print]) | |
1926 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1927 | 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \ | |
1928 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \ | |
de0f16bc | 1929 | ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \ |
fec00620 BP |
1930 | 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \ |
1931 | 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \ | |
1932 | 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \ | |
1933 | " 2], [0], [dnl | |
de0f16bc | 1934 | NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]] |
fec00620 BP |
1935 | ]) |
1936 | AT_CLEANUP | |
1937 | ||
eec25dc1 BP |
1938 | # The flow is formatted with ofp10_match_to_string() for the |
1939 | # low-verbosity case. | |
fec00620 BP |
1940 | AT_SETUP([NXT_FLOW_MOD, high verbosity]) |
1941 | AT_KEYWORDS([ofp-print]) | |
1942 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1943 | 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \ | |
1944 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \ | |
de0f16bc | 1945 | ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \ |
fec00620 BP |
1946 | 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \ |
1947 | 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \ | |
1948 | 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \ | |
1949 | " 3], [0], [dnl | |
de0f16bc | 1950 | 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 |
1951 | ]) |
1952 | AT_CLEANUP | |
1953 | ||
1954 | AT_SETUP([NXT_FLOW_REMOVED]) | |
1955 | AT_KEYWORDS([ofp-print]) | |
1956 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1957 | 01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \ | |
745bfd5e | 1958 | 00 00 00 00 00 00 00 00 ff ff 00 02 00 00 00 06 \ |
fec00620 BP |
1959 | 01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \ |
1960 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
1961 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
1962 | 00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \ | |
1963 | 1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \ | |
1964 | c0 a8 00 02 00 00 00 00 \ | |
1965 | "], [0], [dnl | |
745bfd5e | 1966 | 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 |
1967 | ]) |
1968 | AT_CLEANUP | |
1969 | ||
a1a7d333 BP |
1970 | AT_SETUP([NXT_FLOW_MOD_TABLE_ID]) |
1971 | AT_KEYWORDS([ofp-print]) | |
1972 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1973 | 01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \ | |
1974 | 01 00 00 00 00 00 00 00 \ | |
1975 | "], [0], [dnl | |
1976 | NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable | |
1977 | ]) | |
1978 | AT_CLEANUP | |
1979 | ||
fec00620 BP |
1980 | AT_SETUP([NXST_FLOW request]) |
1981 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1982 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1983 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
1984 | 00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \ | |
1985 | "], [0], [dnl | |
54ae6fa8 | 1986 | NXST_FLOW request (xid=0x4): @&t@ |
fec00620 BP |
1987 | ]) |
1988 | AT_CLEANUP | |
1989 | ||
1990 | AT_SETUP([NXST_FLOW reply]) | |
1991 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1992 | AT_CHECK([ovs-ofctl ofp-print "\ | |
05b8f1c2 | 1993 | 01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \ |
fec00620 BP |
1994 | 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \ |
1995 | 02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
1996 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
1997 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
1998 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
1999 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2000 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
2001 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \ | |
2002 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
2003 | 00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \ | |
f27f2134 | 2004 | 00 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
2005 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ |
2006 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
2007 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
2008 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2009 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
2010 | 00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \ | |
2011 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \ | |
f27f2134 | 2012 | 33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \ |
fec00620 BP |
2013 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ |
2014 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
2015 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
2016 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2017 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
2018 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
2019 | 14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
2020 | 00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \ | |
f27f2134 | 2021 | 00 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
2022 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ |
2023 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
2024 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
2025 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2026 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
2027 | 00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \ | |
2028 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \ | |
f27f2134 | 2029 | 34 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \ |
fec00620 BP |
2030 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ |
2031 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
2032 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
2033 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2034 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
2035 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \ | |
2036 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
2037 | 00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \ | |
2038 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2039 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
2040 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
2041 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
2042 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2043 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
2044 | 00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \ | |
2045 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \ | |
2046 | 02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
2047 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
2048 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
2049 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
2050 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2051 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
2052 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
2053 | 14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
2054 | 00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \ | |
2055 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2056 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
2057 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
2058 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
2059 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2060 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
2061 | 00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \ | |
2062 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \ | |
2063 | 27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
2064 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
2065 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
2066 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
2067 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2068 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
2069 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
2070 | 14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
2071 | 00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \ | |
2072 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2073 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
2074 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
2075 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
2076 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2077 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
2078 | 00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \ | |
2079 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \ | |
2080 | 0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
2081 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
2082 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
2083 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
2084 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2085 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
2086 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \ | |
2087 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
2088 | 00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \ | |
2089 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2090 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
2091 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
2092 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
2093 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2094 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
2095 | 00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \ | |
2096 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \ | |
2097 | 04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
2098 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
2099 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
2100 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
2101 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
2102 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
2103 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
2104 | 14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
2105 | 00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \ | |
2106 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2107 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
2108 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
2109 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
2110 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
2111 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
2112 | 00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \ | |
2113 | 00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \ | |
2114 | 2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \ | |
2115 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2116 | 00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \ | |
2117 | 00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \ | |
2118 | ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \ | |
2119 | 00 00 00 00 00 00 00 05 \ | |
05b8f1c2 BP |
2120 | 00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \ |
2121 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
2122 | 00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \ | |
fec00620 BP |
2123 | "], [0], |
2124 | [[NXST_FLOW reply (xid=0x4): | |
b9718b7b BP |
2125 | 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 |
2126 | cookie=0x0, duration=3.84s, 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 | |
2127 | 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 | |
2128 | 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 | |
2129 | cookie=0x0, duration=2.88s, 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 | |
2130 | 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 | |
2131 | cookie=0x0, duration=1.04s, 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 | |
2132 | 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 | |
2133 | 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 | |
2134 | 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 | |
2135 | 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 | |
2136 | 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 | |
2137 | cookie=0x0, duration=0.08s, 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 | |
2138 | cookie=0x0, duration=1.96s, 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 | |
e896c2d4 | 2139 | cookie=0x0, duration=228.78s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[] |
05b8f1c2 | 2140 | cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop |
fec00620 BP |
2141 | ]]) |
2142 | AT_CLEANUP | |
2143 | ||
2144 | AT_SETUP([NXST_AGGREGATE request]) | |
2145 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
2146 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2147 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
2148 | 00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \ | |
2149 | "], [0], [dnl | |
54ae6fa8 | 2150 | NXST_AGGREGATE request (xid=0x4): @&t@ |
fec00620 BP |
2151 | ]) |
2152 | AT_CLEANUP | |
2153 | ||
2154 | AT_SETUP([NXST_AGGREGATE reply]) | |
2155 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2156 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2157 | 01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
2158 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \ | |
2159 | 00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \ | |
2160 | "], [0], [dnl | |
2161 | NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7 | |
2162 | ]) | |
2163 | AT_CLEANUP | |
2b07c8b1 BP |
2164 | |
2165 | AT_SETUP([NXST_FLOW_MONITOR request]) | |
2166 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2167 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2168 | 01 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \ | |
2169 | 00 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \ | |
2170 | 00 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \ | |
2171 | "], [0], [dnl | |
2172 | NXST_FLOW_MONITOR request (xid=0x4): | |
2173 | id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1 | |
2174 | id=8192 flags=delete table=2 in_port=1 | |
2175 | ]) | |
2176 | AT_CLEANUP | |
2177 | ||
2178 | AT_SETUP([NXST_FLOW_MONITOR reply]) | |
2179 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
2180 | AT_CHECK([ovs-ofctl ofp-print "\ | |
2181 | 01 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \ | |
2182 | 00 20 00 01 00 04 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \ | |
2183 | 00 00 00 02 00 01 00 00 \ | |
2184 | 00 08 00 03 00 01 86 a0 \ | |
2185 | "], [0], [dnl | |
2186 | NXST_FLOW_MONITOR reply (xid=0x4): | |
2187 | event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1 | |
2188 | event=ABBREV xid=0x186a0 | |
2189 | ]) | |
2190 | AT_CLEANUP |