Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 01 11 # version/type |
| 3 | 00 e4 # length |
| 4 | 00 00 00 06 # xid |
| 5 | 00 01 # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 68 # entries[0].length |
| 8 | 03 # entries[0].table_id |
| 9 | 00 # entries[0].pad |
| 10 | 00 3f ff ff # entries[0].match.wildcards |
| 11 | 00 00 00 00 # remaining match fields |
| 12 | 00 00 00 00 00 00 00 00 # ... |
| 13 | 00 00 00 00 00 00 00 00 # ... |
| 14 | 00 00 00 00 00 00 00 00 # ... |
| 15 | 00 00 00 00 00 00 00 00 # ... |
| 16 | 00 00 00 01 # entries[0].duration_sec |
| 17 | 00 00 00 02 # entries[0].duration_nsec |
| 18 | 00 64 # entries[0].priority |
| 19 | 00 05 # entries[0].idle_timeout |
| 20 | 00 0a # entries[0].hard_timeout |
| 21 | 00 00 00 00 00 00 # pad |
| 22 | 01 23 45 67 89 ab cd ef # entries[0].cookie |
| 23 | 00 00 00 00 00 00 00 0a # entries[0].packet_count |
| 24 | 00 00 00 00 00 00 03 e8 # entries[0].byte_count |
| 25 | 00 00 # entries[0].actions[0].type |
| 26 | 00 08 # entries[0].actions[0].len |
| 27 | 00 01 # entries[0].actions[0].port |
| 28 | 00 00 # entries[0].actions[0].max_len |
| 29 | 00 00 # entries[0].actions[1].type |
| 30 | 00 08 # entries[0].actions[1].len |
| 31 | 00 02 # entries[0].actions[1].port |
| 32 | 00 00 # entries[0].actions[1].max_len |
| 33 | 00 70 # entries[1].length |
| 34 | 04 # entries[1].table_id |
| 35 | 00 # entries[1].pad |
| 36 | 00 3f ff ff # entries[1].match.wildcards |
| 37 | 00 00 00 00 # remaining match fields |
| 38 | 00 00 00 00 00 00 00 00 # ... |
| 39 | 00 00 00 00 00 00 00 00 # ... |
| 40 | 00 00 00 00 00 00 00 00 # ... |
| 41 | 00 00 00 00 00 00 00 00 # ... |
| 42 | 00 00 00 01 # entries[1].duration_sec |
| 43 | 00 00 00 02 # entries[1].duration_nsec |
| 44 | 00 64 # entries[1].priority |
| 45 | 00 05 # entries[1].idle_timeout |
| 46 | 00 0a # entries[1].hard_timeout |
| 47 | 00 00 00 00 00 00 # pad |
| 48 | 01 23 45 67 89 ab cd ef # entries[1].cookie |
| 49 | 00 00 00 00 00 00 00 0a # entries[1].packet_count |
| 50 | 00 00 00 00 00 00 03 e8 # entries[1].byte_count |
| 51 | 00 00 # entries[1].actions[0].type |
| 52 | 00 08 # entries[1].actions[0].len |
| 53 | 00 01 # entries[1].actions[0].port |
| 54 | 00 00 # entries[1].actions[0].max_len |
| 55 | 00 00 # entries[1].actions[1].type |
| 56 | 00 08 # entries[1].actions[1].len |
| 57 | 00 02 # entries[1].actions[1].port |
| 58 | 00 00 # entries[1].actions[1].max_len |
| 59 | 00 00 # entries[1].actions[2].type |
| 60 | 00 08 # entries[1].actions[2].len |
| 61 | 00 03 # entries[1].actions[2].port |
| 62 | 00 00 # entries[1].actions[2].max_len |
| 63 | -- python |
| 64 | ofp.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)])]) |