]>
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- |........ | | |
23 | ], [ofp_util|WARN|received OpenFlow message of unknown type 187 | |
fec00620 BP |
24 | ]) |
25 | AT_CLEANUP | |
26 | ||
27 | AT_SETUP([truncated message]) | |
28 | AT_KEYWORDS([ofp-print]) | |
29 | AT_CHECK([ovs-ofctl ofp-print 01bbccddeeff0011], [0], [dnl | |
30 | (***truncated to 8 bytes from 52445***) | |
31 | 00000000 01 bb cc dd ee ff 00 11- |........ | | |
32 | ]) | |
33 | AT_CLEANUP | |
34 | ||
35 | AT_SETUP([message only uses part of buffer]) | |
36 | AT_KEYWORDS([ofp-print]) | |
37 | AT_CHECK([ovs-ofctl ofp-print 01bb0009eeff00112233], [0], [dnl | |
38 | (***only uses 9 bytes out of 10***) | |
39 | 00000000 01 bb 00 09 ee ff 00 11-22 33 |........"3 | | |
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): | |
48 | ]) | |
49 | AT_CLEANUP | |
50 | ||
51 | AT_SETUP([OFPT_HELLO with extra data]) | |
52 | AT_KEYWORDS([ofp-print]) | |
53 | AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0], | |
54 | [dnl | |
55 | OFPT_HELLO (xid=0x0): | |
56 | 00000000 65 78 74 72 61 20 64 61-74 61 0a |extra data. | | |
57 | ]) | |
58 | AT_CLEANUP | |
59 | ||
2e0525bc | 60 | dnl OFPT_ERROR tests are in ofp-errors.at. |
90bf1e07 | 61 | |
fec00620 BP |
62 | AT_SETUP([OFPT_ECHO_REQUEST, empty payload]) |
63 | AT_KEYWORDS([ofp-print]) | |
64 | AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl | |
65 | OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload | |
66 | ]) | |
67 | AT_CLEANUP | |
68 | ||
69 | AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload]) | |
70 | AT_KEYWORDS([ofp-print]) | |
71 | AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl | |
72 | OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload | |
73 | 00000000 25 53 54 1a 9d |%ST.. | | |
74 | ]) | |
75 | AT_CLEANUP | |
76 | ||
77 | AT_SETUP([OFPT_ECHO_REPLY, empty payload]) | |
78 | AT_KEYWORDS([ofp-print]) | |
79 | AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl | |
80 | OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload | |
81 | ]) | |
82 | AT_CLEANUP | |
83 | ||
84 | AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload]) | |
85 | AT_KEYWORDS([ofp-print]) | |
86 | AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl | |
87 | OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload | |
88 | 00000000 a3 30 ef af 9e |.0... | | |
89 | ]) | |
90 | AT_CLEANUP | |
91 | ||
92 | AT_SETUP([OFPT_FEATURES_REQUEST]) | |
93 | AT_KEYWORDS([ofp-print]) | |
94 | AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl | |
95 | OFPT_FEATURES_REQUEST (xid=0x1): | |
96 | ]) | |
97 | AT_CLEANUP | |
98 | ||
9e1fd49b | 99 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.0]) |
fec00620 BP |
100 | AT_KEYWORDS([ofp-print]) |
101 | AT_CHECK([ovs-ofctl ofp-print "\ | |
102 | 01 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
103 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \ | |
104 | ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \ | |
105 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
106 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
107 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
108 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
109 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
110 | 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \ | |
111 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
112 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
113 | 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \ | |
114 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
115 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
116 | "], [0], [dnl | |
9e1fd49b | 117 | OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001 |
fec00620 | 118 | n_tables:2, n_buffers:256 |
9e1fd49b BP |
119 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP |
120 | 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 |
121 | 1(eth1): addr:50:54:00:00:00:02 |
122 | config: 0 | |
123 | state: 0 | |
124 | current: 100MB-FD AUTO_NEG | |
125 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
126 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 127 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
128 | 2(eth2): addr:50:54:00:00:00:03 |
129 | config: 0 | |
130 | state: 0 | |
131 | current: 100MB-FD AUTO_NEG | |
132 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
133 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 134 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
135 | 3(eth0): addr:50:54:00:00:00:01 |
136 | config: 0 | |
137 | state: 0 | |
138 | current: 100MB-FD AUTO_NEG | |
139 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
140 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b | 141 | speed: 100 Mbps now, 100 Mbps max |
0ab14c8e BP |
142 | LOCAL(br0): addr:50:54:00:00:00:01 |
143 | config: PORT_DOWN | |
144 | state: LINK_DOWN | |
9e1fd49b | 145 | speed: 100 Mbps now, 100 Mbps max |
fec00620 BP |
146 | ]) |
147 | AT_CLEANUP | |
148 | ||
9e1fd49b | 149 | AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0]) |
fec00620 BP |
150 | AT_KEYWORDS([ofp-print]) |
151 | AT_CHECK([ovs-ofctl ofp-print "\ | |
152 | 01 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
153 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \ | |
154 | ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \ | |
155 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
156 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
157 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
158 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
159 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
160 | 00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \ | |
161 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
162 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
163 | 00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \ | |
164 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
165 | 00 00 02 08 00 00 02 8f 00 00 02 8f \ | |
166 | "], [0], [dnl | |
90bf1e07 | 167 | ***decode error: OFPBRC_BAD_LEN*** |
fec00620 BP |
168 | 00000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....| |
169 | 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................| | |
170 | 00000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....| | |
171 | 00000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................| | |
172 | 00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
173 | 00000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....| | |
174 | 00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
175 | 00000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................| | |
176 | 00000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....| | |
177 | 00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
178 | 000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................| | |
179 | 000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....| | |
180 | 000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................| | |
181 | 000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ | | |
182 | ], [stderr]) | |
183 | AT_CHECK([sed 's/.*|//' stderr], [0], [dnl | |
5a020ef3 | 184 | received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes) |
fec00620 BP |
185 | ]) |
186 | AT_CLEANUP | |
187 | ||
9e1fd49b BP |
188 | AT_SETUP([OFPT_FEATURES_REPLY - OF1.1]) |
189 | AT_KEYWORDS([ofp-print]) | |
190 | AT_CHECK([ovs-ofctl ofp-print "\ | |
191 | 02 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
192 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \ | |
193 | ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
194 | 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
195 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
196 | 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
197 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
198 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
199 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
200 | 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
201 | "], [0], [dnl | |
202 | OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001 | |
203 | n_tables:2, n_buffers:256 | |
204 | capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP | |
205 | actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_ECN SET_NW_TOS SET_TP_SRC SET_TP_DST COPY_TTL_OUT COPY_TTL_IN SET_MPLS_LABEL SET_MPLS_TC SET_MPLS_TTL | |
206 | 3(eth0): addr:50:54:00:00:00:01 | |
207 | config: 0 | |
208 | state: 0 | |
209 | current: 100MB-FD AUTO_NEG | |
210 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
211 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
212 | speed: 100 Mbps now, 100 Mbps max | |
213 | LOCAL(br0): addr:50:54:00:00:00:01 | |
214 | config: PORT_DOWN | |
215 | state: LINK_DOWN | |
216 | speed: 100 Mbps now, 100 Mbps max | |
217 | ]) | |
218 | AT_CLEANUP | |
219 | ||
220 | AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1]) | |
221 | AT_KEYWORDS([ofp-print]) | |
222 | AT_CHECK([ovs-ofctl ofp-print "\ | |
223 | 02 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \ | |
224 | 00 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \ | |
225 | ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
226 | 62 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
227 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
228 | 00 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
229 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
230 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
231 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
232 | "], [0], [dnl | |
233 | ***decode error: OFPBRC_BAD_LEN*** | |
234 | 00000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....| | |
235 | 00000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 ff ff |................| | |
236 | 00000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......| | |
237 | 00000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............| | |
238 | 00000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................| | |
239 | 00000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................| | |
240 | 00000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......| | |
241 | 00000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............| | |
242 | 00000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.| | |
243 | ], [stderr]) | |
244 | AT_CHECK([sed 's/.*|//' stderr], [0], [dnl | |
245 | received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes) | |
246 | ]) | |
247 | AT_CLEANUP | |
248 | ||
fec00620 BP |
249 | AT_SETUP([OFPT_GET_CONFIG_REQUEST]) |
250 | AT_KEYWORDS([ofp-print]) | |
251 | AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl | |
252 | OFPT_GET_CONFIG_REQUEST (xid=0x1): | |
253 | ]) | |
254 | AT_CLEANUP | |
255 | ||
256 | AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form]) | |
257 | AT_KEYWORDS([ofp-print]) | |
258 | AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl | |
259 | OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0 | |
260 | ]) | |
261 | AT_CLEANUP | |
262 | ||
263 | ||
264 | AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len]) | |
265 | AT_KEYWORDS([ofp-print]) | |
266 | AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl | |
267 | OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255 | |
268 | ]) | |
269 | AT_CLEANUP | |
270 | ||
271 | AT_SETUP([OFPT_PACKET_IN]) | |
272 | AT_KEYWORDS([ofp-print]) | |
fec00620 BP |
273 | AT_CHECK([ovs-ofctl ofp-print "\ |
274 | 01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \ | |
275 | 00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \ | |
276 | 45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \ | |
277 | c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \ | |
278 | 50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \ | |
897a8e07 | 279 | "], [0], [dnl |
f0fd1a17 | 280 | OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111 |
e50abca5 | 281 | priority:0,tunnel:0,in_port:0000,tci(0) mac(50:54:00:00:00:05->50:54:00:00:00:06) type:0800 proto:6 tos:0 ttl:64 ip(192.168.0.1->192.168.0.2) port(10031->0) tcp_csum:26e8 |
fec00620 BP |
282 | ]) |
283 | AT_CLEANUP | |
284 | ||
285 | AT_SETUP([OFPT_FLOW_REMOVED]) | |
286 | AT_KEYWORDS([ofp-print]) | |
287 | AT_CHECK([ovs-ofctl ofp-print "\ | |
288 | 01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \ | |
289 | 00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \ | |
290 | 00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \ | |
291 | 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \ | |
292 | 30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \ | |
293 | 00 00 00 00 00 00 00 3c \ | |
294 | "], [0], [dnl | |
fb115f91 | 295 | 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,nw_src=192.168.0.1,nw_dst=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 |
296 | ]) |
297 | AT_CLEANUP | |
298 | ||
9e1fd49b | 299 | AT_SETUP([OFPT_PORT_STATUS - OF1.0]) |
fec00620 BP |
300 | AT_KEYWORDS([ofp-print]) |
301 | AT_CHECK([ovs-ofctl ofp-print "\ | |
302 | 01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
303 | 00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \ | |
304 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \ | |
305 | 00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
306 | "], [0], [dnl | |
0ab14c8e BP |
307 | OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 |
308 | config: PORT_DOWN | |
309 | state: LINK_DOWN | |
310 | current: 100MB-FD AUTO_NEG | |
311 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
312 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
9e1fd49b BP |
313 | speed: 100 Mbps now, 100 Mbps max |
314 | ]) | |
315 | AT_CLEANUP | |
316 | ||
317 | AT_SETUP([OFPT_PORT_STATUS - OF1.1]) | |
318 | AT_KEYWORDS([ofp-print]) | |
319 | AT_CHECK([ovs-ofctl ofp-print "\ | |
320 | 02 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \ | |
321 | 00 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \ | |
322 | 65 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
323 | 00 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \ | |
324 | 00 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \ | |
325 | "], [0], [dnl | |
326 | OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01 | |
327 | config: 0 | |
328 | state: 0 | |
329 | current: 100MB-FD AUTO_NEG | |
330 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
331 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
332 | speed: 100 Mbps now, 100 Mbps max | |
fec00620 BP |
333 | ]) |
334 | AT_CLEANUP | |
335 | ||
336 | AT_SETUP([OFPT_PACKET_OUT]) | |
337 | AT_KEYWORDS([ofp-print]) | |
338 | AT_CHECK([ovs-ofctl ofp-print "\ | |
339 | 01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \ | |
340 | 00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \ | |
341 | 00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \ | |
342 | b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \ | |
343 | 00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \ | |
344 | 00 00 00 00 \ | |
345 | "], [0], [dnl | |
c6a93eb7 | 346 | OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114 |
fec00620 BP |
347 | ]) |
348 | AT_CLEANUP | |
349 | ||
350 | # The flow is formatted with cls_rule_format() for the low-verbosity case. | |
351 | AT_SETUP([OFPT_FLOW_MOD - low verbosity]) | |
352 | AT_KEYWORDS([ofp-print]) | |
1c0b7503 | 353 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
fec00620 BP |
354 | 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \ |
355 | 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \ | |
356 | 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \ | |
357 | 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
358 | 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
359 | " 2], [0], [dnl | |
fb115f91 | 360 | 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 idle:5 buf:0x10e actions=output:3 |
1c0b7503 BP |
361 | ], [dnl |
362 | ofp_util|INFO|normalization changed ofp_match, details: | |
fb115f91 BP |
363 | ofp_util|INFO| pre: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 |
364 | ofp_util|INFO|post: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 | |
fec00620 BP |
365 | ]) |
366 | AT_CLEANUP | |
367 | ||
1c0b7503 | 368 | # The flow is formatted with ofp_match_to_string() for the high-verbosity case. |
fec00620 BP |
369 | AT_SETUP([OFPT_FLOW_MOD - high verbosity]) |
370 | AT_KEYWORDS([ofp-print]) | |
1c0b7503 | 371 | AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\ |
fec00620 BP |
372 | 01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \ |
373 | 00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \ | |
374 | 00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \ | |
375 | 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \ | |
376 | 00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
377 | " 3], [0], [dnl | |
fb115f91 | 378 | 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 actions=output:3 |
1c0b7503 BP |
379 | ], [dnl |
380 | ofp_util|INFO|normalization changed ofp_match, details: | |
fb115f91 BP |
381 | ofp_util|INFO| pre: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 |
382 | ofp_util|INFO|post: 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 | |
fec00620 BP |
383 | ]) |
384 | AT_CLEANUP | |
385 | ||
9e1fd49b | 386 | AT_SETUP([OFPT_PORT_MOD - OF1.0]) |
fec00620 BP |
387 | AT_KEYWORDS([ofp-print]) |
388 | AT_CHECK([ovs-ofctl ofp-print "\ | |
389 | 01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \ | |
390 | 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \ | |
391 | " 3], [0], [dnl | |
9e1fd49b BP |
392 | OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01 |
393 | config: PORT_DOWN | |
394 | mask: PORT_DOWN | |
395 | advertise: UNCHANGED | |
396 | ]) | |
397 | AT_CLEANUP | |
398 | ||
399 | AT_SETUP([OFPT_PORT_MOD - OF1.1]) | |
400 | AT_KEYWORDS([ofp-print]) | |
401 | AT_CHECK([ovs-ofctl ofp-print "\ | |
402 | 02 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ | |
403 | 50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ | |
404 | 00 00 00 00 00 00 00 00 \ | |
405 | " 3], [0], [dnl | |
406 | OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01 | |
407 | config: PORT_DOWN | |
408 | mask: PORT_DOWN | |
fec00620 BP |
409 | advertise: UNCHANGED |
410 | ]) | |
411 | AT_CLEANUP | |
412 | ||
413 | AT_SETUP([OFPST_DESC request]) | |
414 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
415 | AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl | |
416 | OFPST_DESC request (xid=0x1): | |
417 | ]) | |
418 | AT_CLEANUP | |
419 | ||
420 | AT_SETUP([OFPST_DESC reply]) | |
421 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
422 | AT_CHECK([ovs-ofctl ofp-print "\ | |
423 | 01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \ | |
e0edde6f RS |
424 | 72 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \ |
425 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
fec00620 BP |
426 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ |
427 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
428 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
429 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
430 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
431 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
432 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
433 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
434 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
435 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
436 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
437 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
438 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
439 | 00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \ | |
440 | 20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \ | |
441 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
442 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
443 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
444 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
445 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
446 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
447 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
448 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
449 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
450 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
451 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
452 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
453 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
454 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
455 | 00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \ | |
456 | 30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \ | |
457 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
458 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
459 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
460 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
461 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
462 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
463 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
464 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
465 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
466 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
467 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
468 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
469 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
470 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
471 | 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \ | |
472 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
473 | 00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \ | |
474 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
475 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
476 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
477 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
478 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
479 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
480 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
481 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
482 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
483 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
484 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
485 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
486 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
487 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
488 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
489 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
490 | "], [0], [dnl | |
491 | OFPST_DESC reply (xid=0x1): | |
e0edde6f | 492 | Manufacturer: Nicira, Inc. |
fec00620 BP |
493 | Hardware: Open vSwitch |
494 | Software: 1.1.0pre2 | |
495 | Serial Num: None | |
496 | DP Description: None | |
497 | ]) | |
498 | AT_CLEANUP | |
499 | ||
500 | AT_SETUP([OFPST_FLOW request]) | |
501 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
502 | AT_CHECK([ovs-ofctl ofp-print "\ | |
503 | 01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \ | |
504 | ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
505 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
506 | 00 00 00 00 ff 00 ff ff \ | |
507 | "], [0], [dnl | |
54ae6fa8 | 508 | OFPST_FLOW request (xid=0x4): @&t@ |
fec00620 BP |
509 | ]) |
510 | AT_CLEANUP | |
511 | ||
512 | AT_SETUP([OFPST_FLOW reply]) | |
513 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
514 | AT_CHECK([ovs-ofctl ofp-print "\ | |
05b8f1c2 | 515 | 01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \ |
fec00620 BP |
516 | 00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \ |
517 | 00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \ | |
518 | c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \ | |
519 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
520 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \ | |
521 | 00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \ | |
522 | 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \ | |
523 | 00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \ | |
524 | c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \ | |
525 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
526 | 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \ | |
527 | 00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \ | |
528 | 00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \ | |
529 | 00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \ | |
530 | c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \ | |
531 | ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
532 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \ | |
533 | 00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \ | |
fbc7ed06 | 534 | 00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \ |
fec00620 BP |
535 | 00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \ |
536 | c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \ | |
fbc7ed06 | 537 | 80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
538 | 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \ |
539 | 00 00 04 fa 00 00 00 08 00 01 00 00 \ | |
05b8f1c2 BP |
540 | 00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \ |
541 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
542 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
543 | 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \ | |
544 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
545 | 00 00 00 00 00 00 00 00 \ | |
fec00620 BP |
546 | "], [0], [dnl |
547 | OFPST_FLOW reply (xid=0x4): | |
b9718b7b BP |
548 | 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,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1 |
549 | 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 | |
550 | 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,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3 | |
551 | 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 | 552 | cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop |
fec00620 BP |
553 | ]) |
554 | AT_CLEANUP | |
555 | ||
556 | AT_SETUP([OFPST_AGGREGATE request]) | |
557 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
558 | AT_CHECK([ovs-ofctl ofp-print "\ | |
559 | 01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \ | |
560 | ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
561 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
562 | 00 00 00 00 ff 00 ff ff \ | |
563 | "], [0], [dnl | |
54ae6fa8 | 564 | OFPST_AGGREGATE request (xid=0x4): @&t@ |
fec00620 BP |
565 | ]) |
566 | AT_CLEANUP | |
567 | ||
568 | AT_SETUP([OFPST_AGGREGATE reply]) | |
569 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
570 | AT_CHECK([ovs-ofctl ofp-print "\ | |
571 | 01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \ | |
572 | 00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \ | |
573 | 00 00 00 00 \ | |
574 | "], [0], [dnl | |
575 | OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4 | |
576 | ]) | |
577 | AT_CLEANUP | |
578 | ||
579 | AT_SETUP([OFPST_TABLE request]) | |
580 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
581 | AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl | |
582 | OFPST_TABLE request (xid=0x1): | |
583 | ]) | |
584 | AT_CLEANUP | |
585 | ||
586 | AT_SETUP([OFPST_TABLE reply]) | |
587 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
588 | AT_CHECK([ovs-ofctl ofp-print "\ | |
589 | 01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \ | |
590 | 63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \ | |
591 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
592 | 00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \ | |
593 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
594 | "], [0], [dnl | |
595 | OFPST_TABLE reply (xid=0x1): 1 tables | |
596 | 0: classifier: wild=0x3fffff, max=1048576, active=11 | |
597 | lookup=0, matched=0 | |
598 | ]) | |
599 | AT_CLEANUP | |
600 | ||
601 | AT_SETUP([OFPST_PORT request]) | |
602 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
603 | AT_CHECK([ovs-ofctl ofp-print "\ | |
604 | 01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \ | |
605 | 00 00 00 00 \ | |
606 | "], [0], [dnl | |
607 | OFPST_PORT request (xid=0x1): port_no=65535 | |
608 | ]) | |
609 | AT_CLEANUP | |
610 | ||
611 | AT_SETUP([OFPST_PORT reply]) | |
612 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
613 | AT_CHECK([ovs-ofctl ofp-print "\ | |
614 | 01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \ | |
615 | 00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \ | |
616 | 00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \ | |
617 | 00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
618 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
619 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
620 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
621 | 00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \ | |
622 | 00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \ | |
623 | 00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \ | |
624 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
625 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
626 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
627 | 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
628 | 00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \ | |
629 | 00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \ | |
630 | 00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
631 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
632 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
633 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
634 | 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \ | |
635 | 00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \ | |
636 | 00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \ | |
637 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
638 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
639 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
640 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
641 | "], [0], [dnl | |
642 | OFPST_PORT reply (xid=0x1): 4 ports | |
643 | port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0 | |
644 | tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0 | |
645 | port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0 | |
646 | tx pkts=501, bytes=56092, drop=0, errs=0, coll=0 | |
647 | port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0 | |
648 | tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0 | |
649 | port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0 | |
650 | tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0 | |
651 | ]) | |
652 | AT_CLEANUP | |
653 | ||
654 | AT_SETUP([OFPST_QUEUE request]) | |
655 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
656 | AT_CHECK([ovs-ofctl ofp-print "\ | |
657 | 01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \ | |
658 | ff ff ff ff \ | |
659 | "], [0], [dnl | |
660 | OFPST_QUEUE request (xid=0x1):port=ALL queue=ALL | |
661 | ]) | |
662 | AT_CLEANUP | |
663 | ||
664 | AT_SETUP([OFPST_QUEUE reply]) | |
665 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
666 | AT_CHECK([ovs-ofctl ofp-print "\ | |
667 | 01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \ | |
668 | 00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \ | |
669 | 00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \ | |
670 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
671 | 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
672 | 00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \ | |
673 | 00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \ | |
674 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
675 | 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \ | |
676 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
677 | 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \ | |
678 | 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
679 | 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
680 | "], [0], [dnl | |
681 | OFPST_QUEUE reply (xid=0x1): 6 queues | |
682 | port 3 queue 1: bytes=302, pkts=1, errors=0 | |
683 | port 3 queue 2: bytes=0, pkts=0, errors=0 | |
684 | port 2 queue 1: bytes=2100, pkts=20, errors=0 | |
685 | port 2 queue 2: bytes=0, pkts=0, errors=0 | |
686 | port 1 queue 1: bytes=0, pkts=0, errors=0 | |
687 | port 1 queue 2: bytes=0, pkts=0, errors=0 | |
688 | ]) | |
689 | AT_CLEANUP | |
690 | ||
2be393ed JP |
691 | AT_SETUP([OFPST_PORT_DESC request - OF1.0]) |
692 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
693 | AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl | |
694 | OFPST_PORT_DESC request (xid=0x1): | |
695 | ]) | |
696 | AT_CLEANUP | |
697 | ||
698 | AT_SETUP([OFPST_PORT_DESC reply - OF1.0]) | |
699 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
700 | AT_CHECK([ovs-ofctl ofp-print "\ | |
701 | 01 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \ | |
702 | 00 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \ | |
703 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \ | |
704 | 00 00 02 8f 00 00 02 8f 00 00 00 00 \ | |
705 | "], [0], [dnl | |
706 | OFPST_PORT_DESC reply (xid=0x0): | |
707 | 3(eth0): addr:50:54:00:00:00:01 | |
708 | config: PORT_DOWN | |
709 | state: LINK_DOWN | |
710 | current: 100MB-FD AUTO_NEG | |
711 | advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
712 | supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG | |
713 | speed: 100 Mbps now, 100 Mbps max | |
714 | ]) | |
715 | AT_CLEANUP | |
716 | ||
fec00620 BP |
717 | AT_SETUP([OFPT_BARRIER_REQUEST]) |
718 | AT_KEYWORDS([ofp-print]) | |
719 | AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl | |
720 | OFPT_BARRIER_REQUEST (xid=0x1): | |
721 | ]) | |
722 | AT_CLEANUP | |
723 | ||
724 | AT_SETUP([OFPT_BARRIER_REPLY]) | |
725 | AT_KEYWORDS([ofp-print]) | |
726 | AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl | |
727 | OFPT_BARRIER_REPLY (xid=0x1): | |
728 | ]) | |
729 | AT_CLEANUP | |
730 | ||
fec00620 BP |
731 | AT_SETUP([NXT_ROLE_REQUEST]) |
732 | AT_KEYWORDS([ofp-print]) | |
733 | AT_CHECK([ovs-ofctl ofp-print "\ | |
734 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \ | |
735 | 00 00 00 01 \ | |
736 | "], [0], [dnl | |
737 | NXT_ROLE_REQUEST (xid=0x2): role=master | |
738 | ]) | |
739 | AT_CLEANUP | |
740 | ||
741 | AT_SETUP([NXT_ROLE_REPLY]) | |
742 | AT_KEYWORDS([ofp-print]) | |
743 | AT_CHECK([ovs-ofctl ofp-print "\ | |
744 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \ | |
745 | 00 00 00 02 \ | |
746 | "], [0], [dnl | |
747 | NXT_ROLE_REPLY (xid=0x2): role=slave | |
748 | ]) | |
749 | AT_CLEANUP | |
750 | ||
54834960 EJ |
751 | AT_SETUP([NXT_SET_PACKET_IN]) |
752 | AT_KEYWORDS([ofp-print]) | |
753 | AT_CHECK([ovs-ofctl ofp-print "\ | |
754 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \ | |
755 | 00 00 00 01 \ | |
756 | "], [0], [dnl | |
757 | NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm | |
758 | ]) | |
759 | AT_CLEANUP | |
760 | ||
761 | AT_SETUP([NXT_PACKET_IN]) | |
762 | AT_KEYWORDS([ofp-print]) | |
763 | AT_CHECK([ovs-ofctl ofp-print "\ | |
764 | 01 04 00 aa 00 00 00 00 00 00 23 20 00 00 00 11 \ | |
765 | ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \ | |
766 | 00 3a 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \ | |
767 | 20 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \ | |
768 | 00 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \ | |
769 | 00 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \ | |
770 | 00 05 00 00 00 00 00 00 00 00 82 82 82 82 82 82 \ | |
771 | 80 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \ | |
772 | 00 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \ | |
773 | 00 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \ | |
774 | 31 6d 00 00 00 00 00 00 00 00 \ | |
775 | "], [0], [dnl | |
776 | NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered) | |
777 | priority:0,tunnel:0,in_port:0000,tci(vlan:80,pcp:0) mac(80:81:81:81:81:81->82:82:82:82:82:82) type:0800 proto:6 tos:0 ttl:0 ip(83.83.83.83->84.84.84.84) port(85->86) tcp_csum:316d | |
778 | ]) | |
779 | AT_CLEANUP | |
780 | ||
80d5aefd BP |
781 | AT_SETUP([NXT_SET_ASYNC_CONFIG]) |
782 | AT_KEYWORDS([ofp-print]) | |
783 | AT_CHECK([ovs-ofctl ofp-print "\ | |
784 | 01 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \ | |
785 | 00 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \ | |
786 | 00 00 00 00 00 00 00 03 \ | |
787 | "], [0], [dnl | |
788 | NXT_SET_ASYNC_CONFIG (xid=0x0): | |
789 | master: | |
790 | PACKET_IN: no_match invalid_ttl 12 | |
791 | PORT_STATUS: add delete | |
792 | FLOW_REMOVED: (off) | |
793 | ||
794 | slave: | |
795 | PACKET_IN: no_match action invalid_ttl 12 | |
796 | PORT_STATUS: add delete modify | |
797 | FLOW_REMOVED: idle hard | |
798 | ]) | |
799 | AT_CLEANUP | |
800 | ||
a7349929 BP |
801 | AT_SETUP([NXT_SET_CONTROLLER_ID]) |
802 | AT_KEYWORDS([ofp-print]) | |
803 | AT_CHECK([ovs-ofctl ofp-print "\ | |
804 | 01 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \ | |
805 | 00 00 00 00 00 00 00 7b \ | |
806 | "], [0], [dnl | |
807 | NXT_SET_CONTROLLER_ID (xid=0x3): id=123 | |
808 | ]) | |
809 | AT_CLEANUP | |
810 | ||
fec00620 BP |
811 | AT_SETUP([NXT_SET_FLOW_FORMAT]) |
812 | AT_KEYWORDS([ofp-print]) | |
813 | AT_CHECK([ovs-ofctl ofp-print "\ | |
814 | 01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \ | |
815 | 00 00 00 02 \ | |
816 | "], [0], [dnl | |
817 | NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm | |
818 | ]) | |
819 | AT_CLEANUP | |
820 | ||
821 | # The flow is formatted with cls_rule_format() for the low-verbosity case. | |
822 | AT_SETUP([NXT_FLOW_MOD, low verbosity]) | |
823 | AT_KEYWORDS([ofp-print]) | |
824 | AT_CHECK([ovs-ofctl ofp-print "\ | |
825 | 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \ | |
826 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \ | |
827 | ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \ | |
828 | 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \ | |
829 | 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \ | |
830 | 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \ | |
831 | " 2], [0], [dnl | |
d90611f1 | 832 | NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[[]] |
fec00620 BP |
833 | ]) |
834 | AT_CLEANUP | |
835 | ||
836 | # The flow is formatted with ofp_match_to_string() for the low-verbosity case. | |
837 | AT_SETUP([NXT_FLOW_MOD, high verbosity]) | |
838 | AT_KEYWORDS([ofp-print]) | |
839 | AT_CHECK([ovs-ofctl ofp-print "\ | |
840 | 01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \ | |
841 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \ | |
842 | ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \ | |
843 | 00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \ | |
844 | 00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \ | |
845 | 00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \ | |
846 | " 3], [0], [dnl | |
d90611f1 | 847 | NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) actions=load:0x5->NXM_NX_REG0[[]] |
fec00620 BP |
848 | ]) |
849 | AT_CLEANUP | |
850 | ||
851 | AT_SETUP([NXT_FLOW_REMOVED]) | |
852 | AT_KEYWORDS([ofp-print]) | |
853 | AT_CHECK([ovs-ofctl ofp-print "\ | |
854 | 01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \ | |
855 | 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \ | |
856 | 01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \ | |
857 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
858 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
859 | 00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \ | |
860 | 1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \ | |
861 | c0 a8 00 02 00 00 00 00 \ | |
862 | "], [0], [dnl | |
fb115f91 | 863 | 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,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2 reason=idle duration6.024s idle5 pkts1 bytes60 |
fec00620 BP |
864 | ]) |
865 | AT_CLEANUP | |
866 | ||
a1a7d333 BP |
867 | AT_SETUP([NXT_FLOW_MOD_TABLE_ID]) |
868 | AT_KEYWORDS([ofp-print]) | |
869 | AT_CHECK([ovs-ofctl ofp-print "\ | |
870 | 01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \ | |
871 | 01 00 00 00 00 00 00 00 \ | |
872 | "], [0], [dnl | |
873 | NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable | |
874 | ]) | |
875 | AT_CLEANUP | |
876 | ||
fec00620 BP |
877 | AT_SETUP([NXST_FLOW request]) |
878 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
879 | AT_CHECK([ovs-ofctl ofp-print "\ | |
880 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
881 | 00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \ | |
882 | "], [0], [dnl | |
54ae6fa8 | 883 | NXST_FLOW request (xid=0x4): @&t@ |
fec00620 BP |
884 | ]) |
885 | AT_CLEANUP | |
886 | ||
887 | AT_SETUP([NXST_FLOW reply]) | |
888 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
889 | AT_CHECK([ovs-ofctl ofp-print "\ | |
05b8f1c2 | 890 | 01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \ |
fec00620 BP |
891 | 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \ |
892 | 02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
893 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
894 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
895 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
896 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
897 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
898 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \ | |
899 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
900 | 00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \ | |
f27f2134 | 901 | 00 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
902 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ |
903 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
904 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
905 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
906 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
907 | 00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \ | |
908 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \ | |
f27f2134 | 909 | 33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \ |
fec00620 BP |
910 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ |
911 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
912 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
913 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
914 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
915 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
916 | 14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
917 | 00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \ | |
f27f2134 | 918 | 00 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \ |
fec00620 BP |
919 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ |
920 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
921 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
922 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
923 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
924 | 00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \ | |
925 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \ | |
f27f2134 | 926 | 34 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \ |
fec00620 BP |
927 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ |
928 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
929 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
930 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
931 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
932 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \ | |
933 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
934 | 00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \ | |
935 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
936 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
937 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
938 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
939 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
940 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
941 | 00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \ | |
942 | 00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \ | |
943 | 02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
944 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
945 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
946 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
947 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
948 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
949 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
950 | 14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
951 | 00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \ | |
952 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
953 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
954 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
955 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
956 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
957 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
958 | 00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \ | |
959 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \ | |
960 | 27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
961 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
962 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
963 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
964 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
965 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
966 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
967 | 14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
968 | 00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \ | |
969 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
970 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
971 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
972 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
973 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
974 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
975 | 00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \ | |
976 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \ | |
977 | 0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
978 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
979 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \ | |
980 | 02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \ | |
981 | 00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
982 | 0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \ | |
983 | a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \ | |
984 | 14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \ | |
985 | 00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \ | |
986 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
987 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
988 | 00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \ | |
989 | 00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \ | |
990 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
991 | a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \ | |
992 | 00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \ | |
993 | 00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \ | |
994 | 04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \ | |
995 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \ | |
996 | 00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \ | |
997 | 02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \ | |
998 | 00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \ | |
999 | 0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \ | |
1000 | a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \ | |
1001 | 14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \ | |
1002 | 00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \ | |
1003 | 00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1004 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \ | |
1005 | 00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \ | |
1006 | 00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \ | |
1007 | 00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \ | |
1008 | a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \ | |
1009 | 00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \ | |
1010 | 00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \ | |
1011 | 2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \ | |
1012 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1013 | 00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \ | |
1014 | 00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \ | |
1015 | ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \ | |
1016 | 00 00 00 00 00 00 00 05 \ | |
05b8f1c2 BP |
1017 | 00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \ |
1018 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ | |
1019 | 00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \ | |
fec00620 BP |
1020 | "], [0], |
1021 | [[NXST_FLOW reply (xid=0x4): | |
b9718b7b BP |
1022 | 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 |
1023 | 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 | |
1024 | 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 | |
1025 | 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 | |
1026 | 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 | |
1027 | 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 | |
1028 | 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 | |
1029 | 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 | |
1030 | 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 | |
1031 | 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 | |
1032 | 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 | |
1033 | 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 | |
1034 | 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 | |
1035 | 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 | 1036 | 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 | 1037 | cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop |
fec00620 BP |
1038 | ]]) |
1039 | AT_CLEANUP | |
1040 | ||
1041 | AT_SETUP([NXST_AGGREGATE request]) | |
1042 | AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) | |
1043 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1044 | 01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
1045 | 00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \ | |
1046 | "], [0], [dnl | |
54ae6fa8 | 1047 | NXST_AGGREGATE request (xid=0x4): @&t@ |
fec00620 BP |
1048 | ]) |
1049 | AT_CLEANUP | |
1050 | ||
1051 | AT_SETUP([NXST_AGGREGATE reply]) | |
1052 | AT_KEYWORDS([ofp-print OFPT_STATS_REPLY]) | |
1053 | AT_CHECK([ovs-ofctl ofp-print "\ | |
1054 | 01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \ | |
1055 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \ | |
1056 | 00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \ | |
1057 | "], [0], [dnl | |
1058 | NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7 | |
1059 | ]) | |
1060 | AT_CLEANUP |