]> git.proxmox.com Git - ovs.git/blame - tests/ofp-print.at
ovs-appctl: Add fdb/flush command
[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])
19AT_CHECK([ovs-ofctl ofp-print aabbccddeeff0011], [0], [dnl
20Bad OpenFlow version 170:
2100000000 aa bb cc dd ee ff 00 11- |........ |
22])
23AT_CLEANUP
24
25AT_SETUP([truncated message])
26AT_KEYWORDS([ofp-print])
27AT_CHECK([ovs-ofctl ofp-print 01bbccddeeff0011], [0], [dnl
28(***truncated to 8 bytes from 52445***)
2900000000 01 bb cc dd ee ff 00 11- |........ |
30])
31AT_CLEANUP
32
33AT_SETUP([message only uses part of buffer])
34AT_KEYWORDS([ofp-print])
35AT_CHECK([ovs-ofctl ofp-print 01bb0009eeff00112233], [0], [dnl
36(***only uses 9 bytes out of 10***)
3700000000 01 bb 00 09 ee ff 00 11-22 33 |........"3 |
38])
39# "
40AT_CLEANUP
41
42AT_SETUP([OFPT_HELLO - ordinary])
43AT_KEYWORDS([ofp-print])
44AT_CHECK([ovs-ofctl ofp-print 0100000800000000], [0], [dnl
45OFPT_HELLO (xid=0x0):
46])
47AT_CLEANUP
48
49AT_SETUP([OFPT_HELLO with extra data])
50AT_KEYWORDS([ofp-print])
51AT_CHECK([ovs-ofctl ofp-print 0100001300000000657874726120646174610a], [0],
52[dnl
53OFPT_HELLO (xid=0x0):
5400000000 65 78 74 72 61 20 64 61-74 61 0a |extra data. |
55])
56AT_CLEANUP
57
58AT_SETUP([OFPT_ERROR with type OFPET_HELLO_FAILED])
59AT_KEYWORDS([ofp-print])
60AT_CHECK([ovs-ofctl ofp-print 010100170000000000000001657874726120646174610a], [0], [dnl
61OFPT_ERROR (xid=0x0): type OFPET_HELLO_FAILED, code OFPHFC_EPERM
62extra data\012
63])
64AT_CLEANUP
65
66AT_SETUP([OFPT_ERROR with type OFPET_BAD_REQUEST])
67AT_KEYWORDS([ofp-print])
68AT_CHECK([ovs-ofctl ofp-print 01010014000000000001000601bbccddeeff0011], [0], [dnl
69OFPT_ERROR (xid=0x0): type OFPET_BAD_REQUEST, code OFPBRC_BAD_LEN
70(***truncated to 8 bytes from 52445***)
7100000000 01 bb cc dd ee ff 00 11- |........ |
72])
73AT_CLEANUP
74
75AT_SETUP([OFPT_ERROR with code NXBRC_NXM_BAD_PREREQ])
76AT_KEYWORDS([ofp-print])
77AT_CHECK([ovs-ofctl ofp-print '0101001c55555555 b0c20000 0000232000010104 0102000811111111'], [0], [dnl
78OFPT_ERROR (xid=0x55555555): type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ
79OFPT_ECHO_REQUEST (xid=0x11111111): 0 bytes of payload
80])
81AT_CLEANUP
82
83AT_SETUP([OFPT_ECHO_REQUEST, empty payload])
84AT_KEYWORDS([ofp-print])
85AT_CHECK([ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'], [0], [dnl
86OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
87])
88AT_CLEANUP
89
90AT_SETUP([OFPT_ECHO_REQUEST, 5-byte payload])
91AT_KEYWORDS([ofp-print])
92AT_CHECK([ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'], [0], [dnl
93OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
9400000000 25 53 54 1a 9d |%ST.. |
95])
96AT_CLEANUP
97
98AT_SETUP([OFPT_ECHO_REPLY, empty payload])
99AT_KEYWORDS([ofp-print])
100AT_CHECK([ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'], [0], [dnl
101OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
102])
103AT_CLEANUP
104
105AT_SETUP([OFPT_ECHO_REPLY, 5-byte payload])
106AT_KEYWORDS([ofp-print])
107AT_CHECK([ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'], [0], [dnl
108OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
10900000000 a3 30 ef af 9e |.0... |
110])
111AT_CLEANUP
112
113AT_SETUP([OFPT_FEATURES_REQUEST])
114AT_KEYWORDS([ofp-print])
115AT_CHECK([ovs-ofctl ofp-print '0105000800000001'], [0], [dnl
116OFPT_FEATURES_REQUEST (xid=0x1):
117])
118AT_CLEANUP
119
120AT_SETUP([OFPT_FEATURES_REPLY])
121AT_KEYWORDS([ofp-print])
122AT_CHECK([ovs-ofctl ofp-print "\
12301 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
12400 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
125ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
12600 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
12700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
12800 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
12900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
13000 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
13100 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
13200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
13300 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
13400 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
13500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
13600 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
137"], [0], [dnl
138OFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:0000505400000001
139n_tables:2, n_buffers:256
140features: capabilities:0x87, actions:0xfff
0ab14c8e
BP
141 1(eth1): addr:50:54:00:00:00:02
142 config: 0
143 state: 0
144 current: 100MB-FD AUTO_NEG
145 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
146 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
147 2(eth2): addr:50:54:00:00:00:03
148 config: 0
149 state: 0
150 current: 100MB-FD AUTO_NEG
151 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
152 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
153 3(eth0): addr:50:54:00:00:00:01
154 config: 0
155 state: 0
156 current: 100MB-FD AUTO_NEG
157 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
158 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
159 LOCAL(br0): addr:50:54:00:00:00:01
160 config: PORT_DOWN
161 state: LINK_DOWN
fec00620
BP
162])
163AT_CLEANUP
164
165AT_SETUP([OFPT_FEATURES_REPLY cut off mid-port])
166AT_KEYWORDS([ofp-print])
167AT_CHECK([ovs-ofctl ofp-print "\
16801 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
16900 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
170ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
17100 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
17200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
17300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
17400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
17500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
17600 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
17700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
17800 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
17900 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
18000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
18100 00 02 08 00 00 02 8f 00 00 02 8f \
182"], [0], [dnl
183***decode error: type OFPET_BAD_REQUEST, code OFPBRC_BAD_LEN***
18400000000 01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
18500000010 00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
18600000020 ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
18700000030 00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
18800000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
18900000050 00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
19000000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
19100000070 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
19200000080 00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
19300000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
194000000a0 00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
195000000b0 00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
196000000c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
197000000d0 00 00 02 08 00 00 02 8f-00 00 02 8f |............ |
198], [stderr])
199AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
200received OpenFlow message OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
201])
202AT_CLEANUP
203
204AT_SETUP([OFPT_GET_CONFIG_REQUEST])
205AT_KEYWORDS([ofp-print])
206AT_CHECK([ovs-ofctl ofp-print '0107000800000001'], [0], [dnl
207OFPT_GET_CONFIG_REQUEST (xid=0x1):
208])
209AT_CLEANUP
210
211AT_SETUP([OFPT_GET_CONFIG_REPLY, most common form])
212AT_KEYWORDS([ofp-print])
213AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'], [0], [dnl
214OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
215])
216AT_CLEANUP
217
218
219AT_SETUP([OFPT_GET_CONFIG_REPLY, frags and miss_send_len])
220AT_KEYWORDS([ofp-print])
221AT_CHECK([ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'], [0], [dnl
222OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
223])
224AT_CLEANUP
225
226AT_SETUP([OFPT_PACKET_IN])
227AT_KEYWORDS([ofp-print])
228AT_SKIP_IF([test ! -x /usr/sbin/tcpdump])
229AT_CHECK([ovs-ofctl ofp-print "\
23001 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
23100 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
23245 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
233c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
23450 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
4a557a8e
BP
235"], [0], [stdout])
236dnl The tcpdump output format differs slightly from one version to another,
237dnl so trim off the end of the line where differences appear.
238AT_CHECK([sed 's/\(length 60:\).*/\1 .../' stdout], [0], [dnl
fec00620 239OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 data_len=60 buffer=0x00000111
abff858b 240priority0:tunnel0:in_port0003:tci(0) mac50:54:00:00:00:05->50:54:00:00:00:06 type0800 proto6 tos0 ip192.168.0.1->192.168.0.2 port10031->0
6d38ac7c 24150:54:00:00:00:05 > 50:54:00:00:00:06, ethertype IPv4 (0x0800), length 60: ...
fec00620
BP
242])
243AT_CLEANUP
244
245AT_SETUP([OFPT_FLOW_REMOVED])
246AT_KEYWORDS([ofp-print])
247AT_CHECK([ovs-ofctl ofp-print "\
24801 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
24900 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
25000 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
25100 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
25230 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
25300 00 00 00 00 00 00 3c \
254"], [0], [dnl
fb115f91 255OFPT_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
256])
257AT_CLEANUP
258
259AT_SETUP([OFPT_PORT_STATUS])
260AT_KEYWORDS([ofp-print])
261AT_CHECK([ovs-ofctl ofp-print "\
26201 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
26300 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
26400 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
26500 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
266"], [0], [dnl
0ab14c8e
BP
267OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
268 config: PORT_DOWN
269 state: LINK_DOWN
270 current: 100MB-FD AUTO_NEG
271 advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
272 supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
fec00620
BP
273])
274AT_CLEANUP
275
276AT_SETUP([OFPT_PACKET_OUT])
277AT_KEYWORDS([ofp-print])
278AT_CHECK([ovs-ofctl ofp-print "\
27901 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
28000 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
28100 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
282b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
28300 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
28400 00 00 00 \
285"], [0], [dnl
286OFPT_PACKET_OUT (xid=0x0): in_port=1 actions_len=8 actions=output:3 buffer=0x00000114
287])
288AT_CLEANUP
289
290# The flow is formatted with cls_rule_format() for the low-verbosity case.
291AT_SETUP([OFPT_FLOW_MOD - low verbosity])
292AT_KEYWORDS([ofp-print])
1c0b7503 293AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
29401 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
29500 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
29600 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
29700 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
29800 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
299" 2], [0], [dnl
fb115f91 300OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 idle:5 buf:0x10e actions=output:3
1c0b7503
BP
301], [dnl
302ofp_util|INFO|normalization changed ofp_match, details:
fb115f91
BP
303ofp_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
304ofp_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
305])
306AT_CLEANUP
307
1c0b7503 308# The flow is formatted with ofp_match_to_string() for the high-verbosity case.
fec00620
BP
309AT_SETUP([OFPT_FLOW_MOD - high verbosity])
310AT_KEYWORDS([ofp-print])
1c0b7503 311AT_CHECK([ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
fec00620
BP
31201 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
31300 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
31400 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
31500 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
31600 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
317" 3], [0], [dnl
fb115f91 318OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e actions=output:3
1c0b7503
BP
319], [dnl
320ofp_util|INFO|normalization changed ofp_match, details:
fb115f91
BP
321ofp_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
322ofp_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
323])
324AT_CLEANUP
325
326AT_SETUP([OFPT_PORT_MOD])
327AT_KEYWORDS([ofp-print])
328AT_CHECK([ovs-ofctl ofp-print "\
32901 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
33000 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
331" 3], [0], [dnl
332OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01, config: 0x1, mask:0x1
333 advertise: UNCHANGED
334])
335AT_CLEANUP
336
337AT_SETUP([OFPST_DESC request])
338AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
339AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl
340OFPST_DESC request (xid=0x1):
341])
342AT_CLEANUP
343
344AT_SETUP([OFPST_DESC reply])
345AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
346AT_CHECK([ovs-ofctl ofp-print "\
34701 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
34872 61 20 4e 65 74 77 6f 72 6b 73 2c 20 49 6e 63 \
3492e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
35900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36300 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
36420 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
36500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
36900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
37900 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
38030 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
38100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
38900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39500 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
39600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39700 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
39800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
39900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
40900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
41000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
41100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
41200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
41300 00 00 00 00 00 00 00 00 00 00 00 \
414"], [0], [dnl
415OFPST_DESC reply (xid=0x1):
416Manufacturer: Nicira Networks, Inc.
417Hardware: Open vSwitch
418Software: 1.1.0pre2
419Serial Num: None
420DP Description: None
421])
422AT_CLEANUP
423
424AT_SETUP([OFPST_FLOW request])
425AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
426AT_CHECK([ovs-ofctl ofp-print "\
42701 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
428ff fe 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 ff 00 ff ff \
431"], [0], [dnl
54ae6fa8 432OFPST_FLOW request (xid=0x4): @&t@
fec00620
BP
433])
434AT_CLEANUP
435
436AT_SETUP([OFPST_FLOW reply])
437AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
438AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 43901 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
fec00620
BP
44000 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
44100 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
442c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
443ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
44400 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
44500 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
44600 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
44700 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
448c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
449ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
45000 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
45100 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
45200 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
45300 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
454c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
455ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
45600 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
45700 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
fbc7ed06 45800 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
fec00620
BP
45900 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
460c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
fbc7ed06 46180 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
fec00620
BP
46200 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
46300 00 04 fa 00 00 00 08 00 01 00 00 \
05b8f1c2
BP
46400 58 02 00 00 3f ff ff 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 80 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 \
fec00620
BP
470"], [0], [dnl
471OFPST_FLOW reply (xid=0x4):
fb115f91 472 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
e896c2d4 473 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
fb115f91 474 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
e896c2d4 475 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 476 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
fec00620
BP
477])
478AT_CLEANUP
479
480AT_SETUP([OFPST_AGGREGATE request])
481AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
482AT_CHECK([ovs-ofctl ofp-print "\
48301 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
484ff fe 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 ff 00 ff ff \
487"], [0], [dnl
54ae6fa8 488OFPST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
489])
490AT_CLEANUP
491
492AT_SETUP([OFPST_AGGREGATE reply])
493AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
494AT_CHECK([ovs-ofctl ofp-print "\
49501 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
49600 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
49700 00 00 00 \
498"], [0], [dnl
499OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
500])
501AT_CLEANUP
502
503AT_SETUP([OFPST_TABLE request])
504AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
505AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100030000"], [0], [dnl
506OFPST_TABLE request (xid=0x1):
507])
508AT_CLEANUP
509
510AT_SETUP([OFPST_TABLE reply])
511AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
512AT_CHECK([ovs-ofctl ofp-print "\
51301 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
51463 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
51500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
51600 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
51700 00 00 00 00 00 00 00 00 00 00 00 \
518"], [0], [dnl
519OFPST_TABLE reply (xid=0x1): 1 tables
520 0: classifier: wild=0x3fffff, max=1048576, active=11
521 lookup=0, matched=0
522])
523AT_CLEANUP
524
525AT_SETUP([OFPST_PORT request])
526AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
527AT_CHECK([ovs-ofctl ofp-print "\
52801 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
52900 00 00 00 \
530"], [0], [dnl
531OFPST_PORT request (xid=0x1): port_no=65535
532])
533AT_CLEANUP
534
535AT_SETUP([OFPST_PORT reply])
536AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
537AT_CHECK([ovs-ofctl ofp-print "\
53801 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
53900 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
54000 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
54100 05 71 bc 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 \
54500 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
54600 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
54700 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
54800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
54900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
55000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
55100 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
55200 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
55300 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
55400 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
55500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
55600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
55700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
55800 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
55900 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
56000 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
56100 00 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 00 00 00 00 00 00 00 00 00 00 00 00 \
56400 00 00 00 00 00 00 00 00 00 00 00 \
565"], [0], [dnl
566OFPST_PORT reply (xid=0x1): 4 ports
567 port 3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
568 tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
569 port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
570 tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
571 port 2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
572 tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
573 port 1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
574 tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
575])
576AT_CLEANUP
577
578AT_SETUP([OFPST_QUEUE request])
579AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
580AT_CHECK([ovs-ofctl ofp-print "\
58101 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
582ff ff ff ff \
583"], [0], [dnl
584OFPST_QUEUE request (xid=0x1):port=ALL queue=ALL
585])
586AT_CLEANUP
587
588AT_SETUP([OFPST_QUEUE reply])
589AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
590AT_CHECK([ovs-ofctl ofp-print "\
59101 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
59200 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
59300 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
59400 00 00 02 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 02 00 00 \
59600 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
59700 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
59800 00 00 02 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 01 00 00 \
60000 00 00 01 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 01 00 00 \
60200 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
60300 00 00 00 00 00 00 00 00 00 00 00 \
604"], [0], [dnl
605OFPST_QUEUE reply (xid=0x1): 6 queues
606 port 3 queue 1: bytes=302, pkts=1, errors=0
607 port 3 queue 2: bytes=0, pkts=0, errors=0
608 port 2 queue 1: bytes=2100, pkts=20, errors=0
609 port 2 queue 2: bytes=0, pkts=0, errors=0
610 port 1 queue 1: bytes=0, pkts=0, errors=0
611 port 1 queue 2: bytes=0, pkts=0, errors=0
612])
613AT_CLEANUP
614
615AT_SETUP([OFPT_BARRIER_REQUEST])
616AT_KEYWORDS([ofp-print])
617AT_CHECK([ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'], [0], [dnl
618OFPT_BARRIER_REQUEST (xid=0x1):
619])
620AT_CLEANUP
621
622AT_SETUP([OFPT_BARRIER_REPLY])
623AT_KEYWORDS([ofp-print])
624AT_CHECK([ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'], [0], [dnl
625OFPT_BARRIER_REPLY (xid=0x1):
626])
627AT_CLEANUP
628
fec00620
BP
629AT_SETUP([NXT_ROLE_REQUEST])
630AT_KEYWORDS([ofp-print])
631AT_CHECK([ovs-ofctl ofp-print "\
63201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
63300 00 00 01 \
634"], [0], [dnl
635NXT_ROLE_REQUEST (xid=0x2): role=master
636])
637AT_CLEANUP
638
639AT_SETUP([NXT_ROLE_REPLY])
640AT_KEYWORDS([ofp-print])
641AT_CHECK([ovs-ofctl ofp-print "\
64201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
64300 00 00 02 \
644"], [0], [dnl
645NXT_ROLE_REPLY (xid=0x2): role=slave
646])
647AT_CLEANUP
648
649AT_SETUP([NXT_SET_FLOW_FORMAT])
650AT_KEYWORDS([ofp-print])
651AT_CHECK([ovs-ofctl ofp-print "\
65201 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
65300 00 00 02 \
654"], [0], [dnl
655NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
656])
657AT_CLEANUP
658
659# The flow is formatted with cls_rule_format() for the low-verbosity case.
660AT_SETUP([NXT_FLOW_MOD, low verbosity])
661AT_KEYWORDS([ofp-print])
662AT_CHECK([ovs-ofctl ofp-print "\
66301 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
66400 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
665ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \
66600 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
66700 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
66800 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
669" 2], [0], [dnl
d90611f1 670NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
671])
672AT_CLEANUP
673
674# The flow is formatted with ofp_match_to_string() for the low-verbosity case.
675AT_SETUP([NXT_FLOW_MOD, high verbosity])
676AT_KEYWORDS([ofp-print])
677AT_CHECK([ovs-ofctl ofp-print "\
67801 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
67900 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
680ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \
68100 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
68200 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
68300 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
684" 3], [0], [dnl
d90611f1 685NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) actions=load:0x5->NXM_NX_REG0[[]]
fec00620
BP
686])
687AT_CLEANUP
688
689AT_SETUP([NXT_FLOW_REMOVED])
690AT_KEYWORDS([ofp-print])
691AT_CHECK([ovs-ofctl ofp-print "\
69201 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
69300 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \
69401 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
69500 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
69602 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
69700 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
6981e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
699c0 a8 00 02 00 00 00 00 \
700"], [0], [dnl
fb115f91 701NXT_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
702])
703AT_CLEANUP
704
a1a7d333
BP
705AT_SETUP([NXT_FLOW_MOD_TABLE_ID])
706AT_KEYWORDS([ofp-print])
707AT_CHECK([ovs-ofctl ofp-print "\
70801 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
70901 00 00 00 00 00 00 00 \
710"], [0], [dnl
711NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
712])
713AT_CLEANUP
714
fec00620
BP
715AT_SETUP([NXST_FLOW request])
716AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
717AT_CHECK([ovs-ofctl ofp-print "\
71801 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
71900 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
720"], [0], [dnl
54ae6fa8 721NXST_FLOW request (xid=0x4): @&t@
fec00620
BP
722])
723AT_CLEANUP
724
725AT_SETUP([NXST_FLOW reply])
726AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
727AT_CHECK([ovs-ofctl ofp-print "\
05b8f1c2 72801 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
fec00620
BP
72900 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
73002 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
73100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
73200 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
73302 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
73400 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
7350a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
736a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
73714 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
73800 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
73900 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
74000 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
74100 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
74200 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
74300 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
744a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
74500 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
74600 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
74733 f9 aa 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
74800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
74900 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
75002 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
75100 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
7520a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
753a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
75414 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
75500 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
75600 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
75700 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
75800 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
75900 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
76000 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
761a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
76200 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
76300 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
76434 73 bc 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
76500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
76600 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
76702 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
76800 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
7690a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
770a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
77114 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
77200 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
77300 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
77400 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
77500 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
77600 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
77700 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
778a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
77900 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
78000 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
78102 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
78200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
78300 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
78402 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
78500 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
7860a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
787a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
78814 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
78900 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
79000 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
79100 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
79200 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
79300 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
79400 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
795a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
79600 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
79700 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
79827 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
79900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
80000 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
80102 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
80200 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
8030a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
804a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
80514 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
80600 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
80700 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
80800 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
80900 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
81000 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
81100 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
812a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
81300 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
81400 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
8150a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
81600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
81700 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
81802 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
81900 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
8200a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
821a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
82214 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
82300 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
82400 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
82500 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
82600 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
82700 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
82800 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
829a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
83000 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
83100 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
83204 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
83300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
83400 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
83502 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
83600 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
8370a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
838a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
83914 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
84000 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
84100 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
84200 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
84300 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
84400 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
84500 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
846a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
84700 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
84800 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
8492e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
85000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
85100 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
85200 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
853ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
85400 00 00 00 00 00 00 05 \
05b8f1c2
BP
85500 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
85600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
85700 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
fec00620
BP
858"], [0],
859[[NXST_FLOW reply (xid=0x4):
e896c2d4
BP
860 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
861 cookie=0x0, duration=3.84s, 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=2532,tp_dst=0 actions=output:1
862 cookie=0x0, duration=2.872s, 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=2533 actions=output:3
863 cookie=0x0, duration=4.756s, 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=2531,tp_dst=0 actions=output:1
864 cookie=0x0, duration=2.88s, 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=2533,tp_dst=0 actions=output:1
865 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
866 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
867 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
868 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
869 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
870 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
871 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
872 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
873 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
874 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 875 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
fec00620
BP
876]])
877AT_CLEANUP
878
879AT_SETUP([NXST_AGGREGATE request])
880AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST])
881AT_CHECK([ovs-ofctl ofp-print "\
88201 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
88300 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
884"], [0], [dnl
54ae6fa8 885NXST_AGGREGATE request (xid=0x4): @&t@
fec00620
BP
886])
887AT_CLEANUP
888
889AT_SETUP([NXST_AGGREGATE reply])
890AT_KEYWORDS([ofp-print OFPT_STATS_REPLY])
891AT_CHECK([ovs-ofctl ofp-print "\
89201 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
89300 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
89400 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
895"], [0], [dnl
896NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
897])
898AT_CLEANUP