Rich Lane | 9a3f1fd | 2013-05-10 16:29:17 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 00 68 # length |
| 3 | 03 # table_id |
| 4 | 00 # pad |
| 5 | 00 3f ff ff # match.wildcards |
| 6 | 00 00 00 00 # remaining match fields |
| 7 | 00 00 00 00 00 00 00 00 # ... |
| 8 | 00 00 00 00 00 00 00 00 # ... |
| 9 | 00 00 00 00 00 00 00 00 # ... |
| 10 | 00 00 00 00 00 00 00 00 # ... |
| 11 | 00 00 00 01 # duration_sec |
| 12 | 00 00 00 02 # duration_nsec |
| 13 | 00 64 # priority |
| 14 | 00 05 # idle_timeout |
| 15 | 00 0a # hard_timeout |
| 16 | 00 00 00 00 00 00 # pad |
| 17 | 01 23 45 67 89 ab cd ef # cookie |
| 18 | 00 00 00 00 00 00 00 0a # packet_count |
| 19 | 00 00 00 00 00 00 03 e8 # byte_count |
| 20 | 00 00 # actions[0].type |
| 21 | 00 08 # actions[0].len |
| 22 | 00 01 # actions[0].port |
| 23 | 00 00 # actions[0].max_len |
| 24 | 00 00 # actions[1].type |
| 25 | 00 08 # actions[1].len |
| 26 | 00 02 # actions[1].port |
| 27 | 00 00 # actions[1].max_len |
| 28 | -- python |
| 29 | ofp.flow_stats_entry( |
| 30 | table_id=3, |
| 31 | match=ofp.match(), |
| 32 | duration_sec=1, |
| 33 | duration_nsec=2, |
| 34 | priority=100, |
| 35 | idle_timeout=5, |
| 36 | hard_timeout=10, |
| 37 | cookie=0x0123456789abcdef, |
| 38 | packet_count=10, |
| 39 | byte_count=1000, |
| 40 | actions=[ |
| 41 | ofp.action.output(port=1), |
| 42 | ofp.action.output(port=2)]) |