]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ofproto: New feature to notify controllers of flow table changes.
[mirror_ovs.git] / tests / ofp-print.at
CommitLineData
fec00620
BP
1AT_BANNER([ofp-print])
2
3AT_SETUP([empty])
4AT_KEYWORDS([ofp-print])
5AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6])
7AT_CLEANUP
8
9AT_SETUP([too short])
10AT_KEYWORDS([ofp-print])
11AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12OpenFlow packet too short (only 2 bytes):
1300000000 aa bb |.. |
14])
15AT_CLEANUP
16
17AT_SETUP([wrong OpenFlow version])
18AT_KEYWORDS([ofp-print])
90bf1e07
BP
19AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20 [0], [dnl
21***decode error: OFPBRC_BAD_TYPE***
2200000000 00 bb 00 08 ee ff 00 11- |........ |
23], [ofp_util|WARN|received OpenFlow message of unknown type 187
fec00620
BP
24])
25AT_CLEANUP
26
27AT_SETUP([truncated message])
28AT_KEYWORDS([ofp-print])
29AT_CHECK([ovs-ofctl ofp-print 01bbccddeeff0011], [0], [dnl
30(***truncated to 8 bytes from 52445***)
3100000000 01 bb cc dd ee ff 00 11- |........ |
32])
33AT_CLEANUP
34
35AT_SETUP([message only uses part of buffer])
36AT_KEYWORDS([ofp-print])
37AT_CHECK([ovs-ofctl ofp-print 01bb0009eeff00112233], [0], [dnl
38(***only uses 9 bytes out of 10***)
3900000000 01 bb 00 09 ee ff 00 11-22 33 |........"3 |
40])
41# "
42AT_CLEANUP
43
44AT_SETUP([OFPT_HELLO - ordinary])
45AT_KEYWORDS([ofp-print])
46AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47OFPT_HELLO (xid=0x0):
48])
49AT_CLEANUP
50
51AT_SETUP([OFPT_HELLO with extra data])
52AT_KEYWORDS([ofp-print])
53AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
54[dnl
55OFPT_HELLO (xid=0x0):
5600000000 65 78 74 72 61 20 64 61-74 61 0a |extra data. |
57])
58AT_CLEANUP
59
2e0525bc 60dnl OFPT_ERROR tests are in ofp-errors.at.
90bf1e07 61
fec00620
BP
62AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
63AT_KEYWORDS([ofp-print])
64AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
65OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
66])
67AT_CLEANUP
68
69AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
70AT_KEYWORDS([ofp-print])
71AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
72OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
7300000000 25 53 54 1a 9d |%ST.. |
74])
75AT_CLEANUP
76
77AT_SETUP([OFPT_ECHO_REPLY, empty payload])
78AT_KEYWORDS([ofp-print])
79AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
80OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
81])
82AT_CLEANUP
83
84AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
85AT_KEYWORDS([ofp-print])
86AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
87OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
8800000000 a3 30 ef af 9e |.0... |
89])
90AT_CLEANUP
91
92AT_SETUP([OFPT_FEATURES_REQUEST])
93AT_KEYWORDS([ofp-print])
94AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
95OFPT_FEATURES_REQUEST (xid=0x1):
96])
97AT_CLEANUP
98
9e1fd49b 99AT_SETUP([OFPT_FEATURES_REPLY - OF1.0])
fec00620
BP
100AT_KEYWORDS([ofp-print])
101AT_CHECK([ovs-ofctl ofp-print "\
10201 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
10300 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
104ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
10500 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
10600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
10700 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
10800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
10900 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
11000 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
11100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
11200 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
11300 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
11400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
11500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
116"], [0], [dnl
9e1fd49b 117OFPT_FEATURES_REPLY (xid=0x1): dpid:0000505400000001
fec00620 118n_tables:2, n_buffers:256
9e1fd49b
BP
119capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
120actions: 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])
147AT_CLEANUP
148
9e1fd49b 149AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.0])
fec00620
BP
150AT_KEYWORDS([ofp-print])
151AT_CHECK([ovs-ofctl ofp-print "\
15201 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
15300 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
154ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
15500 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
15600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
15700 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
15800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
15900 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
16000 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
16100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
16200 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
16300 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
16400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
16500 00 02 08 00 00 02 8f 00 00 02 8f \
166"], [0], [dnl
90bf1e07 167***decode error: OFPBRC_BAD_LEN***
fec00620
BP
16800000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
16900000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
17000000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
17100000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
17200000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
17300000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
17400000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
17500000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
17600000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
17700000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
178000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
179000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
180000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
181000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
182], [stderr])
183AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
5a020ef3 184received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
fec00620
BP
185])
186AT_CLEANUP
187
9e1fd49b
BP
188AT_SETUP([OFPT_FEATURES_REPLY - OF1.1])
189AT_KEYWORDS([ofp-print])
190AT_CHECK([ovs-ofctl ofp-print "\
19102 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
19200 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \
193ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
19462 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
19500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
19600 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
19700 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
19865 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
19900 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
20000 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
201"], [0], [dnl
202OFPT_FEATURES_REPLY (OF1.1) (xid=0x1): dpid:0000505400000001
203n_tables:2, n_buffers:256
204capabilities: FLOW_STATS TABLE_STATS PORT_STATS ARP_MATCH_IP
205actions: 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])
218AT_CLEANUP
219
220AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
221AT_KEYWORDS([ofp-print])
222AT_CHECK([ovs-ofctl ofp-print "\
22302 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
22400 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \
225ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
22662 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
22700 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
22800 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
22900 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
23065 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
23100 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
232"], [0], [dnl
233***decode error: OFPBRC_BAD_LEN***
23400000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
23500000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 ff ff |................|
23600000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
23700000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
23800000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
23900000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
24000000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
24100000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
24200000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
243], [stderr])
244AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
245received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
246])
247AT_CLEANUP
248
fec00620
BP
249AT_SETUP([OFPT_GET_CONFIG_REQUEST])
250AT_KEYWORDS([ofp-print])
251AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
252OFPT_GET_CONFIG_REQUEST (xid=0x1):
253])
254AT_CLEANUP
255
256AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
257AT_KEYWORDS([ofp-print])
258AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
259OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
260])
261AT_CLEANUP
262
263
264AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
265AT_KEYWORDS([ofp-print])
266AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
267OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
268])
269AT_CLEANUP
270
271AT_SETUP([OFPT_PACKET_IN])
272AT_KEYWORDS([ofp-print])
fec00620
BP
273AT_CHECK([ovs-ofctl ofp-print "\
27401 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
27500 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
27645 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
277c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
27850 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 279"], [0], [dnl
f0fd1a17 280OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
969fc56c 281priority:0,tunnel:0,metadata: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])
283AT_CLEANUP
284
285AT_SETUP([OFPT_FLOW_REMOVED])
286AT_KEYWORDS([ofp-print])
287AT_CHECK([ovs-ofctl ofp-print "\
28801 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
28900 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
29000 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
29100 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
29230 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
29300 00 00 00 00 00 00 3c \
294"], [0], [dnl
fb115f91 295OFPT_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])
297AT_CLEANUP
298
9e1fd49b 299AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
300AT_KEYWORDS([ofp-print])
301AT_CHECK([ovs-ofctl ofp-print "\
30201 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
30300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
30400 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
30500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
306"], [0], [dnl
0ab14c8e
BP
307OFPT_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])
315AT_CLEANUP
316
317AT_SETUP([OFPT_PORT_STATUS - OF1.1])
318AT_KEYWORDS([ofp-print])
319AT_CHECK([ovs-ofctl ofp-print "\
32002 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
32100 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
32265 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
32300 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
32400 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
325"], [0], [dnl
326OFPT_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])
334AT_CLEANUP
335
336AT_SETUP([OFPT_PACKET_OUT])
337AT_KEYWORDS([ofp-print])
338AT_CHECK([ovs-ofctl ofp-print "\
33901 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
34000 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
34100 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
342b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
34300 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
34400 00 00 00 \
345"], [0], [dnl
c6a93eb7 346OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
347])
348AT_CLEANUP
349
350# The flow is formatted with cls_rule_format() for the low-verbosity case.
351AT_SETUP([OFPT_FLOW_MOD - low verbosity])
352AT_KEYWORDS([ofp-print])
1c0b7503 353AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
35401 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
35500 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
35600 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
35700 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
35800 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
359" 2], [0], [dnl
de0f16bc 360OFPT_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 out_port:0 actions=output:3
1c0b7503
BP
361], [dnl
362ofp_util|INFO|normalization changed ofp_match, details:
fb115f91
BP
363ofp_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
364ofp_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])
366AT_CLEANUP
367
eec25dc1
BP
368# The flow is formatted with ofp10_match_to_string() for the
369# high-verbosity case.
fec00620
BP
370AT_SETUP([OFPT_FLOW_MOD - high verbosity])
371AT_KEYWORDS([ofp-print])
1c0b7503 372AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
37301 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
37400 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
37500 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
37600 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
37700 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
378" 3], [0], [dnl
de0f16bc 379OFPT_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
380], [dnl
381ofp_util|INFO|normalization changed ofp_match, details:
fb115f91
BP
382ofp_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
383ofp_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
384])
385AT_CLEANUP
386
9e1fd49b 387AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
388AT_KEYWORDS([ofp-print])
389AT_CHECK([ovs-ofctl ofp-print "\
39001 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
39100 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
392" 3], [0], [dnl
9e1fd49b
BP
393OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
394 config: PORT_DOWN
395 mask: PORT_DOWN
396 advertise: UNCHANGED
397])
398AT_CLEANUP
399
400AT_SETUP([OFPT_PORT_MOD - OF1.1])
401AT_KEYWORDS([ofp-print])
402AT_CHECK([ovs-ofctl ofp-print "\
40302 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
40450 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
40500 00 00 00 00 00 00 00 \
406" 3], [0], [dnl
407OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
408 config: PORT_DOWN
409 mask: PORT_DOWN
fec00620
BP
410 advertise: UNCHANGED
411])
412AT_CLEANUP
413
414AT_SETUP([OFPST_DESC request])
415AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
416AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
417OFPST_DESC request (xid=0x1):
418])
419AT_CLEANUP
420
421AT_SETUP([OFPST_DESC reply])
422AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
423AT_CHECK([ovs-ofctl ofp-print "\
42401 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
42572 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
42600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
42700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
42800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
42900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
43900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44000 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
44120 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
44200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
44900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45600 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
45730 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
45800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
45900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
46900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47200 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
47300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47400 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
47500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
47900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
48900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
49000 00 00 00 00 00 00 00 00 00 00 00 \
491"], [0], [dnl
492OFPST_DESC reply (xid=0x1):
e0edde6f 493Manufacturer: Nicira, Inc.
fec00620
BP
494Hardware: Open vSwitch
495Software: 1.1.0pre2
496Serial Num: None
497DP Description: None
498])
499AT_CLEANUP
500
501AT_SETUP([OFPST_FLOW request])
502AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
503AT_CHECK([ovs-ofctl ofp-print "\
50401 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
505ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
50600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
50700 00 00 00 ff 00 ff ff \
508"], [0], [dnl
54ae6fa8 509OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
510])
511AT_CLEANUP
512
513AT_SETUP([OFPST_FLOW reply])
514AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
515AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 51601 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
51700 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
51800 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
519c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
520ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
52100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
52200 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
52300 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
52400 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
525c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
526ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
52700 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
52800 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
52900 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
53000 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
531c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
532ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
53300 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
53400 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 53500 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
53600 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
537c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 53880 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
53900 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
54000 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
54100 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
54200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
54300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
54400 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
54500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
54600 00 00 00 00 00 00 00 \
fec00620
BP
547"], [0], [dnl
548OFPST_FLOW reply (xid=0x4):
b9718b7b
BP
549 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
550 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
551 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
552 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 553 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
554])
555AT_CLEANUP
556
557AT_SETUP([OFPST_AGGREGATE request])
558AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
559AT_CHECK([ovs-ofctl ofp-print "\
56001 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
561ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
56200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
56300 00 00 00 ff 00 ff ff \
564"], [0], [dnl
54ae6fa8 565OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
566])
567AT_CLEANUP
568
569AT_SETUP([OFPST_AGGREGATE reply])
570AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
571AT_CHECK([ovs-ofctl ofp-print "\
57201 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
57300 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
57400 00 00 00 \
575"], [0], [dnl
576OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
577])
578AT_CLEANUP
579
580AT_SETUP([OFPST_TABLE request])
581AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
582AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
583OFPST_TABLE request (xid=0x1):
584])
585AT_CLEANUP
586
587AT_SETUP([OFPST_TABLE reply])
588AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
589AT_CHECK([ovs-ofctl ofp-print "\
59001 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
59163 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
59200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59300 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
59400 00 00 00 00 00 00 00 00 00 00 00 \
595"], [0], [dnl
596OFPST_TABLE reply (xid=0x1): 1 tables
597 0: classifier: wild=0x3fffff, max=1048576, active=11
598 lookup=0, matched=0
599])
600AT_CLEANUP
601
602AT_SETUP([OFPST_PORT request])
603AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
604AT_CHECK([ovs-ofctl ofp-print "\
60501 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
60600 00 00 00 \
607"], [0], [dnl
608OFPST_PORT request (xid=0x1): port_no=65535
609])
610AT_CLEANUP
611
612AT_SETUP([OFPST_PORT reply])
613AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
614AT_CHECK([ovs-ofctl ofp-print "\
61501 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
61600 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
61700 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
61800 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
61900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62200 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
62300 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
62400 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
62500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62800 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
62900 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
63000 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
63100 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
63200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63500 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
63600 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
63700 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
63800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
64000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
64100 00 00 00 00 00 00 00 00 00 00 00 \
642"], [0], [dnl
643OFPST_PORT reply (xid=0x1): 4 ports
644 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
645 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
646 port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
647 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
648 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
649 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
650 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
651 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
652])
653AT_CLEANUP
654
655AT_SETUP([OFPST_QUEUE request])
656AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
657AT_CHECK([ovs-ofctl ofp-print "\
65801 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
659ff ff ff ff \
660"], [0], [dnl
661OFPST_QUEUE request (xid=0x1):port=ALL queue=ALL
662])
663AT_CLEANUP
664
665AT_SETUP([OFPST_QUEUE reply])
666AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
667AT_CHECK([ovs-ofctl ofp-print "\
66801 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
66900 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
67000 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
67100 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
67200 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
67300 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
67400 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
67500 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
67600 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
67700 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
67800 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
67900 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
68000 00 00 00 00 00 00 00 00 00 00 00 \
681"], [0], [dnl
682OFPST_QUEUE reply (xid=0x1): 6 queues
683 port 3 queue 1: bytes=302, pkts=1, errors=0
684 port 3 queue 2: bytes=0, pkts=0, errors=0
685 port 2 queue 1: bytes=2100, pkts=20, errors=0
686 port 2 queue 2: bytes=0, pkts=0, errors=0
687 port 1 queue 1: bytes=0, pkts=0, errors=0
688 port 1 queue 2: bytes=0, pkts=0, errors=0
689])
690AT_CLEANUP
691
2be393ed
JP
692AT_SETUP([OFPST_PORT_DESC request - OF1.0])
693AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
694AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
695OFPST_PORT_DESC request (xid=0x1):
696])
697AT_CLEANUP
698
699AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
700AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
701AT_CHECK([ovs-ofctl ofp-print "\
70201 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
70300 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
70400 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
70500 00 02 8f 00 00 02 8f 00 00 00 00 \
706"], [0], [dnl
707OFPST_PORT_DESC reply (xid=0x0):
708 3(eth0): addr:50:54:00:00:00:01
709 config: PORT_DOWN
710 state: LINK_DOWN
711 current: 100MB-FD AUTO_NEG
712 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
713 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
714 speed: 100 Mbps now, 100 Mbps max
715])
716AT_CLEANUP
717
fec00620
BP
718AT_SETUP([OFPT_BARRIER_REQUEST])
719AT_KEYWORDS([ofp-print])
720AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
721OFPT_BARRIER_REQUEST (xid=0x1):
722])
723AT_CLEANUP
724
725AT_SETUP([OFPT_BARRIER_REPLY])
726AT_KEYWORDS([ofp-print])
727AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
728OFPT_BARRIER_REPLY (xid=0x1):
729])
730AT_CLEANUP
731
fec00620
BP
732AT_SETUP([NXT_ROLE_REQUEST])
733AT_KEYWORDS([ofp-print])
734AT_CHECK([ovs-ofctl ofp-print "\
73501 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
73600 00 00 01 \
737"], [0], [dnl
738NXT_ROLE_REQUEST (xid=0x2): role=master
739])
740AT_CLEANUP
741
742AT_SETUP([NXT_ROLE_REPLY])
743AT_KEYWORDS([ofp-print])
744AT_CHECK([ovs-ofctl ofp-print "\
74501 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
74600 00 00 02 \
747"], [0], [dnl
748NXT_ROLE_REPLY (xid=0x2): role=slave
749])
750AT_CLEANUP
751
54834960
EJ
752AT_SETUP([NXT_SET_PACKET_IN])
753AT_KEYWORDS([ofp-print])
754AT_CHECK([ovs-ofctl ofp-print "\
75501 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
75600 00 00 01 \
757"], [0], [dnl
758NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
759])
760AT_CLEANUP
761
762AT_SETUP([NXT_PACKET_IN])
763AT_KEYWORDS([ofp-print])
764AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 76501 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 766ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 76700 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
76820 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
76900 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
77000 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c
JS
77100 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
77200 00 ff ff 00 00 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
77380 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
77400 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
77500 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \
77631 6d 00 00 00 00 00 00 00 00 \
777"], [0], [dnl
969fc56c
JS
778NXT_PACKET_IN (xid=0x0): table_id=7 cookie=0x9 total_len=64 in_port=1 tun_id=0x6 metadata=0x5a5a00005a5a0000/0xffff0000ffff0000 reg0=0x1 reg1=0x2 reg2=0x3 reg3=0x4 reg4=0x5 (via action) data_len=64 (unbuffered)
779priority:0,tunnel:0,metadata: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
54834960
EJ
780])
781AT_CLEANUP
782
80d5aefd
BP
783AT_SETUP([NXT_SET_ASYNC_CONFIG])
784AT_KEYWORDS([ofp-print])
785AT_CHECK([ovs-ofctl ofp-print "\
78601 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
78700 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
78800 00 00 00 00 00 00 03 \
789"], [0], [dnl
790NXT_SET_ASYNC_CONFIG (xid=0x0):
791 master:
792 PACKET_IN: no_match invalid_ttl 12
793 PORT_STATUS: add delete
794 FLOW_REMOVED: (off)
795
796 slave:
797 PACKET_IN: no_match action invalid_ttl 12
798 PORT_STATUS: add delete modify
799 FLOW_REMOVED: idle hard
800])
801AT_CLEANUP
802
a7349929
BP
803AT_SETUP([NXT_SET_CONTROLLER_ID])
804AT_KEYWORDS([ofp-print])
805AT_CHECK([ovs-ofctl ofp-print "\
80601 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
80700 00 00 00 00 00 00 7b \
808"], [0], [dnl
809NXT_SET_CONTROLLER_ID (xid=0x3): id=123
810])
811AT_CLEANUP
812
2b07c8b1
BP
813AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
814AT_KEYWORDS([ofp-print])
815AT_CHECK([ovs-ofctl ofp-print "\
81601 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
81701 02 30 40 \
818"], [0], [dnl
819NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
820])
821AT_CLEANUP
822
823AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
824AT_KEYWORDS([ofp-print])
825AT_CHECK([ovs-ofctl ofp-print "\
82601 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
827"], [0], [dnl
828NXT_FLOW_MONITOR_PAUSED (xid=0x3):
829])
830AT_CLEANUP
831
832AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
833AT_KEYWORDS([ofp-print])
834AT_CHECK([ovs-ofctl ofp-print "\
83501 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
836"], [0], [dnl
837NXT_FLOW_MONITOR_RESUMED (xid=0x3):
838])
839AT_CLEANUP
840
fec00620
BP
841AT_SETUP([NXT_SET_FLOW_FORMAT])
842AT_KEYWORDS([ofp-print])
843AT_CHECK([ovs-ofctl ofp-print "\
84401 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
84500 00 00 02 \
846"], [0], [dnl
847NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
848])
849AT_CLEANUP
850
851# The flow is formatted with cls_rule_format() for the low-verbosity case.
852AT_SETUP([NXT_FLOW_MOD, low verbosity])
853AT_KEYWORDS([ofp-print])
854AT_CHECK([ovs-ofctl ofp-print "\
85501 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
85600 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 857ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
85800 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
85900 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
86000 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
861" 2], [0], [dnl
de0f16bc 862NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
863])
864AT_CLEANUP
865
eec25dc1
BP
866# The flow is formatted with ofp10_match_to_string() for the
867# low-verbosity case.
fec00620
BP
868AT_SETUP([NXT_FLOW_MOD, high verbosity])
869AT_KEYWORDS([ofp-print])
870AT_CHECK([ovs-ofctl ofp-print "\
87101 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
87200 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 873ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
87400 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
87500 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
87600 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
877" 3], [0], [dnl
de0f16bc 878NXT_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
879])
880AT_CLEANUP
881
882AT_SETUP([NXT_FLOW_REMOVED])
883AT_KEYWORDS([ofp-print])
884AT_CHECK([ovs-ofctl ofp-print "\
88501 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
88600 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \
88701 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
88800 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
88902 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
89000 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
8911e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
892c0 a8 00 02 00 00 00 00 \
893"], [0], [dnl
fb115f91 894NXT_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
895])
896AT_CLEANUP
897
a1a7d333
BP
898AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
899AT_KEYWORDS([ofp-print])
900AT_CHECK([ovs-ofctl ofp-print "\
90101 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
90201 00 00 00 00 00 00 00 \
903"], [0], [dnl
904NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
905])
906AT_CLEANUP
907
fec00620
BP
908AT_SETUP([NXST_FLOW request])
909AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
910AT_CHECK([ovs-ofctl ofp-print "\
91101 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
91200 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
913"], [0], [dnl
54ae6fa8 914NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
915])
916AT_CLEANUP
917
918AT_SETUP([NXST_FLOW reply])
919AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
920AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 92101 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
92200 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
92302 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
92400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
92500 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
92602 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
92700 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
9280a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
929a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
93014 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
93100 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 93200 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
93300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
93400 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
93500 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
93600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
937a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
93800 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
93900 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 94033 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
94100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
94200 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
94302 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
94400 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
9450a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
946a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
94714 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
94800 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 94900 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
95000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
95100 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
95200 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
95300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
954a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
95500 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
95600 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 95734 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
95800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
95900 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
96002 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
96100 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
9620a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
963a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
96414 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
96500 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
96600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
96700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
96800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
96900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
97000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
971a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
97200 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
97300 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
97402 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
97500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
97600 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
97702 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
97800 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
9790a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
980a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
98114 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
98200 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
98300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
98400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
98500 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
98600 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
98700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
988a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
98900 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
99000 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
99127 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
99200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
99300 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
99402 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
99500 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
9960a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
997a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
99814 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
99900 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
100000 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
100100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
100200 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
100300 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
100400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1005a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
100600 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
100700 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
10080a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
100900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
101000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
101102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
101200 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
10130a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1014a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
101514 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
101600 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
101700 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
101800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
101900 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
102000 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
102100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1022a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
102300 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
102400 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
102504 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
102600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
102700 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
102802 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
102900 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
10300a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1031a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
103214 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
103300 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
103400 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
103500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
103600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
103700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
103800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1039a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
104000 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
104100 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
10422e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
104300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
104400 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
104500 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
1046ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
104700 00 00 00 00 00 00 05 \
05b8f1c2
BP
104800 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
104900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
105000 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
1051"], [0],
1052[[NXST_FLOW reply (xid=0x4):
b9718b7b
BP
1053 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
1054 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
1055 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
1056 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
1057 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
1058 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
1059 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
1060 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
1061 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
1062 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
1063 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
1064 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
1065 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
1066 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 1067 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 1068 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
1069]])
1070AT_CLEANUP
1071
1072AT_SETUP([NXST_AGGREGATE request])
1073AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1074AT_CHECK([ovs-ofctl ofp-print "\
107501 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
107600 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1077"], [0], [dnl
54ae6fa8 1078NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1079])
1080AT_CLEANUP
1081
1082AT_SETUP([NXST_AGGREGATE reply])
1083AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1084AT_CHECK([ovs-ofctl ofp-print "\
108501 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
108600 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
108700 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
1088"], [0], [dnl
1089NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
1090])
1091AT_CLEANUP
2b07c8b1
BP
1092
1093AT_SETUP([NXST_FLOW_MONITOR request])
1094AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1095AT_CHECK([ovs-ofctl ofp-print "\
109601 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
109700 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
109800 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
1099"], [0], [dnl
1100NXST_FLOW_MONITOR request (xid=0x4):
1101 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
1102 id=8192 flags=delete table=2 in_port=1
1103])
1104AT_CLEANUP
1105
1106AT_SETUP([NXST_FLOW_MONITOR reply])
1107AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1108AT_CHECK([ovs-ofctl ofp-print "\
110901 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
111000 20 00 01 00 04 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
111100 00 00 02 00 01 00 00 \
111200 08 00 03 00 01 86 a0 \
1113"], [0], [dnl
1114NXST_FLOW_MONITOR reply (xid=0x4):
1115 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
1116 event=ABBREV xid=0x186a0
1117])
1118AT_CLEANUP