blob: 38db4d53ec5079d3caf0198d7c6599db06e3a950 [file] [log] [blame]
Rich Laneb1f347d2013-05-16 16:39:12 -07001-- binary
201 11 # version/type
300 e4 # length
400 00 00 06 # xid
500 01 # stats_type
600 00 # flags
700 68 # entries[0].length
803 # entries[0].table_id
900 # entries[0].pad
1000 3f ff ff # entries[0].match.wildcards
1100 00 00 00 # remaining match fields
1200 00 00 00 00 00 00 00 # ...
1300 00 00 00 00 00 00 00 # ...
1400 00 00 00 00 00 00 00 # ...
1500 00 00 00 00 00 00 00 # ...
1600 00 00 01 # entries[0].duration_sec
1700 00 00 02 # entries[0].duration_nsec
1800 64 # entries[0].priority
1900 05 # entries[0].idle_timeout
2000 0a # entries[0].hard_timeout
2100 00 00 00 00 00 # pad
2201 23 45 67 89 ab cd ef # entries[0].cookie
2300 00 00 00 00 00 00 0a # entries[0].packet_count
2400 00 00 00 00 00 03 e8 # entries[0].byte_count
2500 00 # entries[0].actions[0].type
2600 08 # entries[0].actions[0].len
2700 01 # entries[0].actions[0].port
2800 00 # entries[0].actions[0].max_len
2900 00 # entries[0].actions[1].type
3000 08 # entries[0].actions[1].len
3100 02 # entries[0].actions[1].port
3200 00 # entries[0].actions[1].max_len
3300 70 # entries[1].length
3404 # entries[1].table_id
3500 # entries[1].pad
3600 3f ff ff # entries[1].match.wildcards
3700 00 00 00 # remaining match fields
3800 00 00 00 00 00 00 00 # ...
3900 00 00 00 00 00 00 00 # ...
4000 00 00 00 00 00 00 00 # ...
4100 00 00 00 00 00 00 00 # ...
4200 00 00 01 # entries[1].duration_sec
4300 00 00 02 # entries[1].duration_nsec
4400 64 # entries[1].priority
4500 05 # entries[1].idle_timeout
4600 0a # entries[1].hard_timeout
4700 00 00 00 00 00 # pad
4801 23 45 67 89 ab cd ef # entries[1].cookie
4900 00 00 00 00 00 00 0a # entries[1].packet_count
5000 00 00 00 00 00 03 e8 # entries[1].byte_count
5100 00 # entries[1].actions[0].type
5200 08 # entries[1].actions[0].len
5300 01 # entries[1].actions[0].port
5400 00 # entries[1].actions[0].max_len
5500 00 # entries[1].actions[1].type
5600 08 # entries[1].actions[1].len
5700 02 # entries[1].actions[1].port
5800 00 # entries[1].actions[1].max_len
5900 00 # entries[1].actions[2].type
6000 08 # entries[1].actions[2].len
6100 03 # entries[1].actions[2].port
6200 00 # entries[1].actions[2].max_len
63-- python
64ofp.message.flow_stats_reply(
65 xid=6,
66 flags=0,
67 entries=[
68 ofp.flow_stats_entry(table_id=3,
69 match=ofp.match(),
70 duration_sec=1,
71 duration_nsec=2,
72 priority=100,
73 idle_timeout=5,
74 hard_timeout=10,
75 cookie=0x0123456789abcdef,
76 packet_count=10,
77 byte_count=1000,
78 actions=[ofp.action.output(port=1),
79 ofp.action.output(port=2)]),
80 ofp.flow_stats_entry(table_id=4,
81 match=ofp.match(),
82 duration_sec=1,
83 duration_nsec=2,
84 priority=100,
85 idle_timeout=5,
86 hard_timeout=10,
87 cookie=0x0123456789abcdef,
88 packet_count=10,
89 byte_count=1000,
90 actions=[ofp.action.output(port=1),
91 ofp.action.output(port=2),
92 ofp.action.output(port=3)])])