]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ofp-print.at
ofp-msgs: Split OFPRAW_OFPST_TABLE_REPLY
[mirror_ovs.git] / tests / ofp-print.at
CommitLineData
fec00620
BP
1AT_BANNER([ofp-print])
2
3AT_SETUP([empty])
4AT_KEYWORDS([ofp-print])
5AT_CHECK([ovs-ofctl ofp-print ''], [0], [OpenFlow message is empty
6])
7AT_CLEANUP
8
9AT_SETUP([too short])
10AT_KEYWORDS([ofp-print])
11AT_CHECK([ovs-ofctl ofp-print aabb], [0], [dnl
12OpenFlow packet too short (only 2 bytes):
1300000000 aa bb |.. |
14])
15AT_CLEANUP
16
17AT_SETUP([wrong OpenFlow version])
18AT_KEYWORDS([ofp-print])
90bf1e07
BP
19AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print 00bb0008eeff0011],
20 [0], [dnl
21***decode error: OFPBRC_BAD_TYPE***
2200000000 00 bb 00 08 ee ff 00 11- |........ |
982697a4 23], [ofp_msgs|WARN|unknown OpenFlow message (version 0, type 187)
fec00620
BP
24])
25AT_CLEANUP
26
27AT_SETUP([truncated message])
28AT_KEYWORDS([ofp-print])
f25b4a81 29AT_CHECK([ovs-ofctl ofp-print 0110ccddeeff0011], [0], [dnl
fec00620 30(***truncated to 8 bytes from 52445***)
f25b4a81 3100000000 01 10 cc dd ee ff 00 11- |........ |
fec00620
BP
32])
33AT_CLEANUP
34
35AT_SETUP([message only uses part of buffer])
36AT_KEYWORDS([ofp-print])
f25b4a81 37AT_CHECK([ovs-ofctl ofp-print 01100009eeff00112233], [0], [dnl
fec00620 38(***only uses 9 bytes out of 10***)
f25b4a81 3900000000 01 10 00 09 ee ff 00 11-22 33 |........"3 |
fec00620
BP
40])
41# "
42AT_CLEANUP
43
44AT_SETUP([OFPT_HELLO - ordinary])
45AT_KEYWORDS([ofp-print])
46AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
47OFPT_HELLO (xid=0x0):
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
9e1fd49b
BP
205 3(eth0): addr:50:54:00:00:00:01
206 config: 0
207 state: 0
208 current: 100MB-FD AUTO_NEG
209 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
210 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
211 speed: 100 Mbps now, 100 Mbps max
212 LOCAL(br0): addr:50:54:00:00:00:01
213 config: PORT_DOWN
214 state: LINK_DOWN
215 speed: 100 Mbps now, 100 Mbps max
216])
217AT_CLEANUP
218
219AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.1])
220AT_KEYWORDS([ofp-print])
221AT_CHECK([ovs-ofctl ofp-print "\
22202 06 00 90 00 00 00 01 00 00 50 54 00 00 00 01 \
22300 00 01 00 02 00 00 00 00 00 00 87 00 00 ff ff \
224ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
22562 72 30 00 00 00 00 00 00 00 00 00 00 00 00 00 \
22600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
22700 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
22800 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
22965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
23000 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
231"], [0], [dnl
232***decode error: OFPBRC_BAD_LEN***
23300000000 02 06 00 90 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
23400000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 ff ff |................|
23500000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
23600000030 62 72 30 00 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
23700000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
23800000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
23900000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
24000000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
24100000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
242], [stderr])
243AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
244received OFPT_FEATURES_REPLY with incorrect length 144 (must be exactly 32 bytes or longer by an integer multiple of 64 bytes)
245])
246AT_CLEANUP
247
60202987
SH
248AT_SETUP([OFPT_FEATURES_REPLY - OF1.2])
249AT_KEYWORDS([ofp-print])
250AT_CHECK([ovs-ofctl ofp-print "\
25103 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
25200 00 01 00 ff 00 00 00 00 00 01 77 00 00 06 ff \
253ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
25462 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
25500 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
25600 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
25700 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
25865 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
25900 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
26000 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
261"], [0], [dnl
262OFPT_FEATURES_REPLY (OF1.2) (xid=0x1): dpid:0000505400000001
263n_tables:255, n_buffers:256
264capabilities: FLOW_STATS TABLE_STATS PORT_STATS IP_REASM QUEUE_STATS PORT_BLOCKED
265 3(eth0): addr:50:54:00:00:00:01
266 config: 0
267 state: 0
268 current: 100MB-FD AUTO_NEG
269 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
270 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
271 speed: 100 Mbps now, 100 Mbps max
272 LOCAL(br0): addr:50:54:00:00:00:01
273 config: PORT_DOWN
274 state: LINK_DOWN
275 speed: 100 Mbps now, 100 Mbps max
276])
277AT_CLEANUP
278
279AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port - OF1.2])
280AT_KEYWORDS([ofp-print])
281AT_CHECK([ovs-ofctl ofp-print "\
28203 06 00 a0 00 00 00 01 00 00 50 54 00 00 00 01 \
28300 00 01 00 ff 00 00 00 00 00 01 77 00 00 06 ff \
284ff ff ff fe 00 00 00 00 50 54 00 00 00 01 00 00 \
28562 72 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 \
28600 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
28700 00 00 00 00 00 00 00 00 01 86 a0 00 01 86 a0 \
28800 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
28965 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
29000 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
291"], [0], [dnl
292OFPT_FEATURES_REPLY (OF1.2) (xid=0x1):
293(***truncated to 144 bytes from 160***)
29400000000 03 06 00 a0 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
29500000010 00 00 01 00 ff 00 00 00-00 00 01 77 00 00 06 ff |...........w....|
29600000020 ff ff ff fe 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
29700000030 62 72 30 0a 00 00 00 00-00 00 00 00 00 00 00 00 |br0.............|
29800000040 00 00 00 01 00 00 00 01-00 00 00 00 00 00 00 00 |................|
29900000050 00 00 00 00 00 00 00 00-00 01 86 a0 00 01 86 a0 |................|
30000000060 00 00 00 03 00 00 00 00-50 54 00 00 00 01 00 00 |........PT......|
30100000070 65 74 68 30 00 00 00 00-00 00 00 00 00 00 00 00 |eth0............|
30200000080 00 00 00 00 00 00 00 00-00 00 20 08 00 00 28 0f |.......... ...@{:@.|
303], [stderr])
304AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
305])
306AT_CLEANUP
307
fec00620
BP
308AT_SETUP([OFPT_GET_CONFIG_REQUEST])
309AT_KEYWORDS([ofp-print])
310AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
311OFPT_GET_CONFIG_REQUEST (xid=0x1):
312])
313AT_CLEANUP
314
315AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
316AT_KEYWORDS([ofp-print])
317AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
318OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
319])
320AT_CLEANUP
321
322
323AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
324AT_KEYWORDS([ofp-print])
325AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
326OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
327])
328AT_CLEANUP
329
7cfb9651 330AT_SETUP([OFPT_PACKET_IN - OF1.0])
fec00620 331AT_KEYWORDS([ofp-print])
fec00620
BP
332AT_CHECK([ovs-ofctl ofp-print "\
33301 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
33400 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
33545 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
336c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
33750 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
897a8e07 338"], [0], [dnl
f0fd1a17 339OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 (via no_match) data_len=60 buffer=0x00000111
969fc56c 340priority: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
341])
342AT_CLEANUP
343
7cfb9651
SH
344AT_SETUP([OFPT_PACKET_IN - OF1.2])
345AT_KEYWORDS([ofp-print])
346AT_CHECK([ovs-ofctl ofp-print "\
34703 0a 00 4c 00 00 00 00 ff ff ff 00 00 2a 00 00 \
34800 01 00 0c 80 00 00 04 ff ff ff fe 00 00 00 00 \
34900 00 ff ff ff ff ff ff 00 23 20 83 c1 5f 80 35 \
35000 01 08 00 06 04 00 03 00 23 20 83 c1 5f 00 00 \
35100 00 00 23 20 83 c1 5f 00 00 00 00 \
352"], [0], [dnl
353OFPT_PACKET_IN (OF1.2) (xid=0x0): total_len=42 in_port=LOCAL (via no_match) data_len=42 buffer=0xffffff00
354priority:0,tunnel:0,metadata:0,in_port:0000,tci(0) mac(00:23:20:83:c1:5f->ff:ff:ff:ff:ff:ff) type:8035 proto:0 tos:0 ttl:0 ip(0.0.0.0->0.0.0.0)
355])
356AT_CLEANUP
357
eefbf181 358AT_SETUP([OFPT_FLOW_REMOVED - OF1.0])
fec00620
BP
359AT_KEYWORDS([ofp-print])
360AT_CHECK([ovs-ofctl ofp-print "\
36101 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
36200 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
36300 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
36400 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
36530 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
36600 00 00 00 00 00 00 3c \
367"], [0], [dnl
fb115f91 368OFPT_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
369])
370AT_CLEANUP
371
eefbf181
SH
372AT_SETUP([OFPT_FLOW_REMOVED - OF1.2])
373AT_KEYWORDS([ofp-print])
374AT_CHECK([ovs-ofctl ofp-print "\
37503 0b 00 40 00 00 00 00 fe dc ba 98 76 54 32 10 \
37680 00 01 05 00 00 00 01 00 98 96 80 00 3c 00 78 \
37700 00 00 00 00 12 d6 87 00 00 00 00 6f 68 ba 66 \
37800 01 00 0a 80 00 0c 02 10 09 00 00 00 00 00 00"], [0], [dnl
379OFPT_FLOW_REMOVED (OF1.2) (xid=0x0): dl_vlan=9 reason=hard cookie:0xfedcba9876543210 duration1.01s idle60 hard120 pkts1234567 bytes1869134438
380])
381AT_CLEANUP
382
9e1fd49b 383AT_SETUP([OFPT_PORT_STATUS - OF1.0])
fec00620
BP
384AT_KEYWORDS([ofp-print])
385AT_CHECK([ovs-ofctl ofp-print "\
38601 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
38700 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
38800 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
38900 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
390"], [0], [dnl
0ab14c8e
BP
391OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
392 config: PORT_DOWN
393 state: LINK_DOWN
394 current: 100MB-FD AUTO_NEG
395 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
396 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
9e1fd49b
BP
397 speed: 100 Mbps now, 100 Mbps max
398])
399AT_CLEANUP
400
401AT_SETUP([OFPT_PORT_STATUS - OF1.1])
402AT_KEYWORDS([ofp-print])
403AT_CHECK([ovs-ofctl ofp-print "\
40402 0c 00 50 00 00 00 00 02 00 00 00 00 00 00 00 \
40500 00 00 03 00 00 00 00 50 54 00 00 00 01 00 00 \
40665 74 68 30 00 00 00 00 00 00 00 00 00 00 00 00 \
40700 00 00 00 00 00 00 00 00 00 20 08 00 00 28 0f \
40800 00 28 0f 00 00 00 00 00 01 86 a0 00 01 86 a0 \
409"], [0], [dnl
410OFPT_PORT_STATUS (OF1.1) (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
411 config: 0
412 state: 0
413 current: 100MB-FD AUTO_NEG
414 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
415 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
416 speed: 100 Mbps now, 100 Mbps max
fec00620
BP
417])
418AT_CLEANUP
419
eb5ee596 420AT_SETUP([OFPT_PACKET_OUT - OF1.0])
fec00620
BP
421AT_KEYWORDS([ofp-print])
422AT_CHECK([ovs-ofctl ofp-print "\
42301 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
42400 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
42500 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
426b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
42700 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
42800 00 00 00 \
429"], [0], [dnl
c6a93eb7 430OFPT_PACKET_OUT (xid=0x0): in_port=1 actions=output:3 buffer=0x00000114
fec00620
BP
431])
432AT_CLEANUP
433
eb5ee596
SH
434AT_SETUP([OFPT_PACKET_OUT - OF1.1])
435AT_KEYWORDS([ofp-print])
436AT_CHECK([ovs-ofctl ofp-print "\
43703 0d 00 28 88 58 df c5 ff ff ff 00 ff ff ff fe \
43800 10 00 00 00 00 00 00 00 00 00 10 ff ff ff fb \
43905 dc 00 00 00 00 00 00 \
440"], [0], [dnl
441OFPT_PACKET_OUT (OF1.2) (xid=0x8858dfc5): in_port=LOCAL actions=FLOOD buffer=0xffffff00
442])
443AT_CLEANUP
444
fec00620 445# The flow is formatted with cls_rule_format() for the low-verbosity case.
1bf6eeb0 446AT_SETUP([OFPT_FLOW_MOD - OF1.0 - low verbosity])
fec00620 447AT_KEYWORDS([ofp-print])
1c0b7503 448AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
44901 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
45000 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
45100 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
45200 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
45300 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
454" 2], [0], [dnl
de0f16bc 455OFPT_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
456], [dnl
457ofp_util|INFO|normalization changed ofp_match, details:
fb115f91
BP
458ofp_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
459ofp_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
460])
461AT_CLEANUP
462
1bf6eeb0
SH
463# The flow is formatted with cls_rule_format() for the low-verbosity case.
464AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
465AT_KEYWORDS([ofp-print])
466AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
46703 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
46800 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
469ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
47000 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
47150 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
47280 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
47300 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
47400 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
47500 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
476" 2], [0], [dnl
477OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:255 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 actions=output:3
478], [dnl
479])
480AT_CLEANUP
481
eec25dc1
BP
482# The flow is formatted with ofp10_match_to_string() for the
483# high-verbosity case.
1bf6eeb0 484AT_SETUP([OFPT_FLOW_MOD - OF1.0 - high verbosity])
fec00620 485AT_KEYWORDS([ofp-print])
1c0b7503 486AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
48701 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
48800 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
48900 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
49000 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
49100 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
492" 3], [0], [dnl
de0f16bc 493OFPT_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
494], [dnl
495ofp_util|INFO|normalization changed ofp_match, details:
fb115f91
BP
496ofp_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
497ofp_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
498])
499AT_CLEANUP
500
1bf6eeb0
SH
501# The flow is formatted with cls_rule_format() for the low-verbosity case.
502AT_SETUP([OFPT_FLOW_MOD - OF1.2 - low verbosity])
503AT_KEYWORDS([ofp-print])
504AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
50503 0e 00 90 00 00 00 02 00 00 00 00 00 00 00 00 \
50600 00 00 00 00 00 00 00 ff 00 00 00 00 00 ff ff \
507ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 \
50800 01 00 42 80 00 00 04 00 00 00 01 80 00 08 06 \
50950 54 00 00 00 06 80 00 06 06 50 54 00 00 00 05 \
51080 00 0a 02 08 06 80 00 0c 02 00 00 80 00 2a 02 \
51100 02 80 00 2c 04 c0 a8 00 02 80 00 2e 04 c0 a8 \
51200 01 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
51300 00 00 10 00 00 00 03 00 00 00 00 00 00 00 00 \
514" 2], [0], [dnl
515OFPT_FLOW_MOD (OF1.2) (xid=0x2): ADD table:255 priority=65535,arp,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 actions=output:3
516], [dnl
517])
518AT_CLEANUP
519
9e1fd49b 520AT_SETUP([OFPT_PORT_MOD - OF1.0])
fec00620
BP
521AT_KEYWORDS([ofp-print])
522AT_CHECK([ovs-ofctl ofp-print "\
52301 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
52400 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
525" 3], [0], [dnl
9e1fd49b
BP
526OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01
527 config: PORT_DOWN
528 mask: PORT_DOWN
529 advertise: UNCHANGED
530])
531AT_CLEANUP
532
533AT_SETUP([OFPT_PORT_MOD - OF1.1])
534AT_KEYWORDS([ofp-print])
535AT_CHECK([ovs-ofctl ofp-print "\
53602 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
53750 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
53800 00 00 00 00 00 00 00 \
539" 3], [0], [dnl
540OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01
541 config: PORT_DOWN
542 mask: PORT_DOWN
fec00620
BP
543 advertise: UNCHANGED
544])
545AT_CLEANUP
546
bb2bc3c1
SH
547AT_SETUP([OFPT_PORT_MOD - OF1.2])
548AT_KEYWORDS([ofp-print])
549AT_CHECK([ovs-ofctl ofp-print "\
55003 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \
55150 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \
55200 00 00 00 00 00 00 00 \
553" 3], [0], [dnl
554OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01
555 config: PORT_DOWN
556 mask: PORT_DOWN
557 advertise: UNCHANGED
558])
559AT_CLEANUP
560
fec00620
BP
561AT_SETUP([OFPST_DESC request])
562AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
563AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
564OFPST_DESC request (xid=0x1):
565])
566AT_CLEANUP
567
568AT_SETUP([OFPST_DESC reply])
569AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
570AT_CHECK([ovs-ofctl ofp-print "\
57101 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
e0edde6f
RS
57272 61 2c 20 49 6e 63 2e 00 00 00 00 00 00 00 00 \
57300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
57400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
57500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
57600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
57700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
57800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
57900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
58700 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
58820 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
58900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
59900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60300 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
60430 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
60500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
60900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
61900 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
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 4e 6f 6e 65 \
62200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
62400 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 \
62900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63100 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 \
63600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
63700 00 00 00 00 00 00 00 00 00 00 00 \
638"], [0], [dnl
639OFPST_DESC reply (xid=0x1):
e0edde6f 640Manufacturer: Nicira, Inc.
fec00620
BP
641Hardware: Open vSwitch
642Software: 1.1.0pre2
643Serial Num: None
644DP Description: None
645])
646AT_CLEANUP
647
648AT_SETUP([OFPST_FLOW request])
649AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
650AT_CHECK([ovs-ofctl ofp-print "\
65101 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
652ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
65300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
65400 00 00 00 ff 00 ff ff \
655"], [0], [dnl
54ae6fa8 656OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
657])
658AT_CLEANUP
659
6ec5f0c5 660AT_SETUP([OFPST_FLOW reply - OF1.0])
fec00620
BP
661AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
662AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 66301 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
66400 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
66500 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
666c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
667ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
66800 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
66900 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
67000 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
67100 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
672c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
673ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
67400 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
67500 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
67600 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
67700 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
678c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
679ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
68000 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
68100 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 68200 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
68300 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
684c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 68580 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
68600 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
68700 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
68800 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
68900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
69000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
69100 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
69200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
69300 00 00 00 00 00 00 00 \
fec00620
BP
694"], [0], [dnl
695OFPST_FLOW reply (xid=0x4):
b9718b7b
BP
696 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
697 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
698 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
699 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 700 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
701])
702AT_CLEANUP
703
6ec5f0c5
SH
704AT_SETUP([OFPST_FLOW reply - OF1.2])
705AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
706AT_CHECK([ovs-ofctl ofp-print "\
70703 13 01 78 00 00 00 02 00 01 00 00 00 00 00 00 \
70800 78 00 00 00 00 00 03 01 5e f3 c0 80 00 00 00 \
70900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
71000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 62 \
71100 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
712ca da ad d6 0d 37 80 00 0a 02 08 00 80 00 10 01 \
71300 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
71400 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
71505 dc 00 00 00 00 00 00 00 78 00 00 00 00 00 04 \
71620 7c 0a 40 80 00 00 00 00 00 00 00 00 00 00 00 \
71700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 \
71800 00 00 00 00 00 00 8c 00 01 00 2d 80 00 00 04 \
71900 00 00 02 80 00 06 06 52 54 00 c3 00 89 80 00 \
7200a 02 08 00 80 00 10 01 00 80 00 04 08 00 00 00 \
72100 00 00 00 00 00 00 00 00 04 00 18 00 00 00 00 \
72200 00 00 10 00 00 00 02 05 dc 00 00 00 00 00 00 \
72300 78 00 00 00 00 00 04 20 a9 d1 00 80 00 00 00 \
72400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
72500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 2a \
72600 01 00 2d 80 00 00 04 00 00 00 02 80 00 06 06 \
72752 54 00 97 00 69 80 00 0a 02 08 00 80 00 10 01 \
72800 80 00 04 08 00 00 00 00 00 00 00 00 00 00 00 \
72900 04 00 18 00 00 00 00 00 00 00 10 00 00 00 02 \
73005 dc 00 00 00 00 00 00 \
731"], [0], [dnl
732OFPST_FLOW reply (OF1.2) (xid=0x2):
733 cookie=0x0, duration=3.023s, table=0, n_packets=1, n_bytes=98, ip,metadata=0,in_port=2,dl_dst=ca:da:ad:d6:0d:37,nw_tos=0 actions=output:2
734 cookie=0x0, duration=4.545s, table=0, n_packets=2, n_bytes=140, ip,metadata=0,in_port=2,dl_dst=52:54:00:c3:00:89,nw_tos=0 actions=output:2
735 cookie=0x0, duration=4.548s, table=0, n_packets=1, n_bytes=42, ip,metadata=0,in_port=2,dl_dst=52:54:00:97:00:69,nw_tos=0 actions=output:2
736])
737AT_CLEANUP
738
fec00620
BP
739AT_SETUP([OFPST_AGGREGATE request])
740AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
741AT_CHECK([ovs-ofctl ofp-print "\
74201 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
743ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
74400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
74500 00 00 00 ff 00 ff ff \
746"], [0], [dnl
54ae6fa8 747OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
748])
749AT_CLEANUP
750
751AT_SETUP([OFPST_AGGREGATE reply])
752AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
753AT_CHECK([ovs-ofctl ofp-print "\
75401 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
75500 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
75600 00 00 00 \
757"], [0], [dnl
758OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
759])
760AT_CLEANUP
761
762AT_SETUP([OFPST_TABLE request])
763AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
764AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
765OFPST_TABLE request (xid=0x1):
766])
767AT_CLEANUP
768
769AT_SETUP([OFPST_TABLE reply])
770AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
771AT_CHECK([ovs-ofctl ofp-print "\
77201 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
77363 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
77400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
77500 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
77600 00 00 00 00 00 00 00 00 00 00 00 \
777"], [0], [dnl
778OFPST_TABLE reply (xid=0x1): 1 tables
779 0: classifier: wild=0x3fffff, max=1048576, active=11
780 lookup=0, matched=0
781])
782AT_CLEANUP
783
784AT_SETUP([OFPST_PORT request])
785AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
786AT_CHECK([ovs-ofctl ofp-print "\
78701 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
78800 00 00 00 \
789"], [0], [dnl
790OFPST_PORT request (xid=0x1): port_no=65535
791])
792AT_CLEANUP
793
794AT_SETUP([OFPST_PORT reply])
795AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
796AT_CHECK([ovs-ofctl ofp-print "\
79701 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
79800 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
79900 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
80000 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
80100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
80200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
80300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
80400 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
80500 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
80600 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
80700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
80800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
80900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
81000 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
81100 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
81200 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
81300 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
81400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
81500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
81600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
81700 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
81800 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
81900 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
82000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
82100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
82200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
82300 00 00 00 00 00 00 00 00 00 00 00 \
824"], [0], [dnl
825OFPST_PORT reply (xid=0x1): 4 ports
826 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
827 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
828 port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
829 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
830 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
831 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
832 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
833 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
834])
835AT_CLEANUP
836
837AT_SETUP([OFPST_QUEUE request])
838AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
839AT_CHECK([ovs-ofctl ofp-print "\
84001 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
841ff ff ff ff \
842"], [0], [dnl
843OFPST_QUEUE request (xid=0x1):port=ALL queue=ALL
844])
845AT_CLEANUP
846
847AT_SETUP([OFPST_QUEUE reply])
848AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
849AT_CHECK([ovs-ofctl ofp-print "\
85001 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
85100 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
85200 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
85300 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
85400 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
85500 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
85600 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
85700 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
85800 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
85900 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
86000 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
86100 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
86200 00 00 00 00 00 00 00 00 00 00 00 \
863"], [0], [dnl
864OFPST_QUEUE reply (xid=0x1): 6 queues
865 port 3 queue 1: bytes=302, pkts=1, errors=0
866 port 3 queue 2: bytes=0, pkts=0, errors=0
867 port 2 queue 1: bytes=2100, pkts=20, errors=0
868 port 2 queue 2: bytes=0, pkts=0, errors=0
869 port 1 queue 1: bytes=0, pkts=0, errors=0
870 port 1 queue 2: bytes=0, pkts=0, errors=0
871])
872AT_CLEANUP
873
2be393ed
JP
874AT_SETUP([OFPST_PORT_DESC request - OF1.0])
875AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
876AT_CHECK([ovs-ofctl ofp-print "0110000c00000001000d0000"], [0], [dnl
877OFPST_PORT_DESC request (xid=0x1):
878])
879AT_CLEANUP
880
881AT_SETUP([OFPST_PORT_DESC reply - OF1.0])
882AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
883AT_CHECK([ovs-ofctl ofp-print "\
88401 11 00 3c 00 00 00 00 00 0d 00 00 00 03 50 54 \
88500 00 00 01 65 74 68 30 00 00 00 00 00 00 00 00 \
88600 00 00 00 00 00 00 01 00 00 00 01 00 00 02 08 \
88700 00 02 8f 00 00 02 8f 00 00 00 00 \
888"], [0], [dnl
889OFPST_PORT_DESC reply (xid=0x0):
890 3(eth0): addr:50:54:00:00:00:01
891 config: PORT_DOWN
892 state: LINK_DOWN
893 current: 100MB-FD AUTO_NEG
894 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
895 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
896 speed: 100 Mbps now, 100 Mbps max
897])
898AT_CLEANUP
899
fec00620
BP
900AT_SETUP([OFPT_BARRIER_REQUEST])
901AT_KEYWORDS([ofp-print])
902AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
903OFPT_BARRIER_REQUEST (xid=0x1):
904])
905AT_CLEANUP
906
907AT_SETUP([OFPT_BARRIER_REPLY])
908AT_KEYWORDS([ofp-print])
909AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
910OFPT_BARRIER_REPLY (xid=0x1):
911])
912AT_CLEANUP
913
fec00620
BP
914AT_SETUP([NXT_ROLE_REQUEST])
915AT_KEYWORDS([ofp-print])
916AT_CHECK([ovs-ofctl ofp-print "\
91701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
91800 00 00 01 \
919"], [0], [dnl
920NXT_ROLE_REQUEST (xid=0x2): role=master
921])
922AT_CLEANUP
923
924AT_SETUP([NXT_ROLE_REPLY])
925AT_KEYWORDS([ofp-print])
926AT_CHECK([ovs-ofctl ofp-print "\
92701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
92800 00 00 02 \
929"], [0], [dnl
930NXT_ROLE_REPLY (xid=0x2): role=slave
931])
932AT_CLEANUP
933
54834960
EJ
934AT_SETUP([NXT_SET_PACKET_IN])
935AT_KEYWORDS([ofp-print])
936AT_CHECK([ovs-ofctl ofp-print "\
93701 04 00 14 00 00 00 02 00 00 23 20 00 00 00 10 \
93800 00 00 01 \
939"], [0], [dnl
940NXT_SET_PACKET_IN_FORMAT (xid=0x2): format=nxm
941])
942AT_CLEANUP
943
944AT_SETUP([NXT_PACKET_IN])
945AT_KEYWORDS([ofp-print])
946AT_CHECK([ovs-ofctl ofp-print "\
969fc56c 94701 04 00 ba 00 00 00 00 00 00 23 20 00 00 00 11 \
54834960 948ff ff ff ff 00 40 01 07 00 00 00 00 00 00 00 09 \
969fc56c 94900 4e 00 00 00 00 00 00 00 00 00 02 00 01 00 01 \
54834960
EJ
95020 08 00 00 00 00 00 00 00 06 00 01 00 04 00 00 \
95100 01 00 01 02 04 00 00 00 02 00 01 04 04 00 00 \
95200 03 00 01 06 04 00 00 00 04 00 01 08 04 00 00 \
969fc56c
JS
95300 05 80 00 05 10 5a 5a 5a 5a 5a 5a 5a 5a ff ff \
95400 00 ff ff 00 00 00 00 00 00 82 82 82 82 82 82 \
54834960
EJ
95580 81 81 81 81 81 81 00 00 50 08 00 45 00 00 28 \
95600 00 00 00 00 06 32 05 53 53 53 53 54 54 54 54 \
95700 55 00 56 00 00 00 00 00 00 00 00 50 00 00 00 \
95831 6d 00 00 00 00 00 00 00 00 \
959"], [0], [dnl
969fc56c
JS
960NXT_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)
961priority: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
962])
963AT_CLEANUP
964
80d5aefd
BP
965AT_SETUP([NXT_SET_ASYNC_CONFIG])
966AT_KEYWORDS([ofp-print])
967AT_CHECK([ovs-ofctl ofp-print "\
96801 04 00 28 00 00 00 00 00 00 23 20 00 00 00 13 \
96900 00 10 05 00 00 10 07 00 00 00 03 00 00 00 07 \
97000 00 00 00 00 00 00 03 \
971"], [0], [dnl
972NXT_SET_ASYNC_CONFIG (xid=0x0):
973 master:
974 PACKET_IN: no_match invalid_ttl 12
975 PORT_STATUS: add delete
976 FLOW_REMOVED: (off)
977
978 slave:
979 PACKET_IN: no_match action invalid_ttl 12
980 PORT_STATUS: add delete modify
981 FLOW_REMOVED: idle hard
982])
983AT_CLEANUP
984
a7349929
BP
985AT_SETUP([NXT_SET_CONTROLLER_ID])
986AT_KEYWORDS([ofp-print])
987AT_CHECK([ovs-ofctl ofp-print "\
98801 04 00 18 00 00 00 03 00 00 23 20 00 00 00 14 \
98900 00 00 00 00 00 00 7b \
990"], [0], [dnl
991NXT_SET_CONTROLLER_ID (xid=0x3): id=123
992])
993AT_CLEANUP
994
2b07c8b1
BP
995AT_SETUP([NXT_FLOW_MONITOR_CANCEL])
996AT_KEYWORDS([ofp-print])
997AT_CHECK([ovs-ofctl ofp-print "\
99801 04 00 14 00 00 00 03 00 00 23 20 00 00 00 15 \
99901 02 30 40 \
1000"], [0], [dnl
1001NXT_FLOW_MONITOR_CANCEL (xid=0x3): id=16920640
1002])
1003AT_CLEANUP
1004
1005AT_SETUP([NXT_FLOW_MONITOR_PAUSED])
1006AT_KEYWORDS([ofp-print])
1007AT_CHECK([ovs-ofctl ofp-print "\
100801 04 00 10 00 00 00 03 00 00 23 20 00 00 00 16 \
1009"], [0], [dnl
1010NXT_FLOW_MONITOR_PAUSED (xid=0x3):
1011])
1012AT_CLEANUP
1013
1014AT_SETUP([NXT_FLOW_MONITOR_RESUMED])
1015AT_KEYWORDS([ofp-print])
1016AT_CHECK([ovs-ofctl ofp-print "\
101701 04 00 10 00 00 00 03 00 00 23 20 00 00 00 17 \
1018"], [0], [dnl
1019NXT_FLOW_MONITOR_RESUMED (xid=0x3):
1020])
1021AT_CLEANUP
1022
fec00620
BP
1023AT_SETUP([NXT_SET_FLOW_FORMAT])
1024AT_KEYWORDS([ofp-print])
1025AT_CHECK([ovs-ofctl ofp-print "\
102601 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
102700 00 00 02 \
1028"], [0], [dnl
1029NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
1030])
1031AT_CLEANUP
1032
1033# The flow is formatted with cls_rule_format() for the low-verbosity case.
1034AT_SETUP([NXT_FLOW_MOD, low verbosity])
1035AT_KEYWORDS([ofp-print])
1036AT_CHECK([ovs-ofctl ofp-print "\
103701 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
103800 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 1039ff ff ff ff 00 10 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
104000 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
104100 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
104200 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1043" 2], [0], [dnl
de0f16bc 1044NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 out_port:16 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
1045])
1046AT_CLEANUP
1047
eec25dc1
BP
1048# The flow is formatted with ofp10_match_to_string() for the
1049# low-verbosity case.
fec00620
BP
1050AT_SETUP([NXT_FLOW_MOD, high verbosity])
1051AT_KEYWORDS([ofp-print])
1052AT_CHECK([ovs-ofctl ofp-print "\
105301 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
105400 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
de0f16bc 1055ff ff ff ff 01 00 00 00 00 14 00 00 00 00 00 00 \
fec00620
BP
105600 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
105700 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
105800 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
1059" 3], [0], [dnl
de0f16bc 1060NXT_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
1061])
1062AT_CLEANUP
1063
1064AT_SETUP([NXT_FLOW_REMOVED])
1065AT_KEYWORDS([ofp-print])
1066AT_CHECK([ovs-ofctl ofp-print "\
106701 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
106800 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \
106901 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
107000 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
107102 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
107200 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
10731e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
1074c0 a8 00 02 00 00 00 00 \
1075"], [0], [dnl
fb115f91 1076NXT_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
1077])
1078AT_CLEANUP
1079
a1a7d333
BP
1080AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
1081AT_KEYWORDS([ofp-print])
1082AT_CHECK([ovs-ofctl ofp-print "\
108301 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
108401 00 00 00 00 00 00 00 \
1085"], [0], [dnl
1086NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
1087])
1088AT_CLEANUP
1089
fec00620
BP
1090AT_SETUP([NXST_FLOW request])
1091AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1092AT_CHECK([ovs-ofctl ofp-print "\
109301 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
109400 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1095"], [0], [dnl
54ae6fa8 1096NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
1097])
1098AT_CLEANUP
1099
1100AT_SETUP([NXST_FLOW reply])
1101AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1102AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 110301 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
110400 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
110502 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
110600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
110700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
110802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
110900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
11100a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1111a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
111214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
111300 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
f27f2134 111400 00 00 4c 00 03 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
111500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
111600 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
111700 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
111800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1119a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
112000 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
112100 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 112233 f9 aa 00 ff ff 00 05 00 00 00 4c 00 05 00 00 \
fec00620
BP
112300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
112400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
112502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
112600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
11270a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1128a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
112914 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
113000 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
f27f2134 113100 00 00 4c 00 01 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
113200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
113300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
113400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
113500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1136a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
113700 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
113800 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
f27f2134 113934 73 bc 00 ff ff 00 05 00 0a 00 4c 00 03 00 03 \
fec00620
BP
114000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
114100 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
114202 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
114300 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
11440a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1145a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
114614 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
114700 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
114800 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
114900 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
115000 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
115100 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
115200 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1153a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
115400 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
115500 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
115602 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
115700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
115800 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
115902 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
116000 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
11610a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1162a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
116314 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
116400 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
116500 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
116600 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
116700 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
116800 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
116900 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1170a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
117100 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
117200 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
117327 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
117400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
117500 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
117602 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
117700 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
11780a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1179a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
118014 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
118100 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
118200 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
118300 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
118400 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
118500 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
118600 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1187a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
118800 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
118900 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
11900a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
119100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
119200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
119302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
119400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
11950a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
1196a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
119714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
119800 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
119900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
120000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
120100 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
120200 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
120300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1204a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
120500 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
120600 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
120704 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
120800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
120900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
121002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
121100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
12120a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
1213a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
121414 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
121500 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
121600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
121700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
121800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
121900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
122000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
1221a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
122200 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
122300 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
12242e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
122500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
122600 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
122700 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
1228ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
122900 00 00 00 00 00 00 05 \
05b8f1c2
BP
123000 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
123100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
123200 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
1233"], [0],
1234[[NXST_FLOW reply (xid=0x4):
b9718b7b
BP
1235 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
1236 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
1237 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
1238 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
1239 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
1240 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
1241 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
1242 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
1243 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
1244 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
1245 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
1246 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
1247 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
1248 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 1249 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 1250 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
1251]])
1252AT_CLEANUP
1253
1254AT_SETUP([NXST_AGGREGATE request])
1255AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
1256AT_CHECK([ovs-ofctl ofp-print "\
125701 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
125800 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
1259"], [0], [dnl
54ae6fa8 1260NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
1261])
1262AT_CLEANUP
1263
1264AT_SETUP([NXST_AGGREGATE reply])
1265AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1266AT_CHECK([ovs-ofctl ofp-print "\
126701 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
126800 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
126900 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
1270"], [0], [dnl
1271NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
1272])
1273AT_CLEANUP
2b07c8b1
BP
1274
1275AT_SETUP([NXST_FLOW_MONITOR request])
1276AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1277AT_CHECK([ovs-ofctl ofp-print "\
127801 10 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
127900 00 40 00 00 3f ff fe 00 00 01 00 00 00 00 00 \
128000 00 20 00 00 04 ff ff 00 06 02 00 00 00 00 00 00 00 00 02 00 01 00 00 \
1281"], [0], [dnl
1282NXST_FLOW_MONITOR request (xid=0x4):
1283 id=16384 flags=initial,add,delete,modify,actions,own out_port=LOCAL table=1
1284 id=8192 flags=delete table=2 in_port=1
1285])
1286AT_CLEANUP
1287
1288AT_SETUP([NXST_FLOW_MONITOR reply])
1289AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
1290AT_CHECK([ovs-ofctl ofp-print "\
129101 11 00 40 00 00 00 04 ff ff 00 00 00 00 23 20 00 00 00 02 00 00 00 00 \
129200 20 00 01 00 04 80 00 00 05 00 10 00 06 01 00 12 34 56 78 9a bc de f0 \
129300 00 00 02 00 01 00 00 \
129400 08 00 03 00 01 86 a0 \
1295"], [0], [dnl
1296NXST_FLOW_MONITOR reply (xid=0x4):
1297 event=DELETED reason=eviction table=1 idle_timeout=5 hard_timeout=16 cookie=0x123456789abcdef0 in_port=1
1298 event=ABBREV xid=0x186a0
1299])
1300AT_CLEANUP