Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 0e # version, type |
| 3 | 00 48 # length |
| 4 | 12 34 56 78 # xid |
| 5 | |
| 6 | fe dc ba 98 76 54 32 10 # cookie |
| 7 | |
| 8 | ff 00 ff 00 ff 00 ff 00 # cookie_mask |
| 9 | |
| 10 | 03 # table_id |
| 11 | 00 # _command |
| 12 | 00 05 # idle_timeout |
| 13 | 00 0a # hard_timeout |
| 14 | 17 70 # priority |
| 15 | |
| 16 | 00 00 00 32 # buffer_id |
| 17 | 00 00 00 06 # out_port |
| 18 | |
| 19 | 00 00 00 08 # out_group |
| 20 | 00 00 # flags |
| 21 | 00 00 # pad |
| 22 | |
| 23 | 00 01 # match.type |
| 24 | 00 04 # match.length |
| 25 | 00 00 00 00 # pad |
| 26 | |
| 27 | 00 01 # instructions[0].type |
| 28 | 00 08 # instructions[0].length |
| 29 | 04 # instructions[0].table_id |
| 30 | 00 00 00 # pad |
| 31 | |
| 32 | 00 01 # instructions[1].type |
| 33 | 00 08 # instructions[1].length |
| 34 | 07 # instructions[1].table_id |
| 35 | 00 00 00 # pad |
| 36 | -- python |
| 37 | ofp.message.flow_add( |
| 38 | xid=0x12345678, |
| 39 | cookie=0xFEDCBA9876543210, |
| 40 | cookie_mask=0xFF00FF00FF00FF00, |
| 41 | table_id=3, |
| 42 | idle_timeout=5, |
| 43 | hard_timeout=10, |
| 44 | priority=6000, |
| 45 | buffer_id=50, |
| 46 | out_port=6, |
| 47 | out_group=8, |
| 48 | flags=0, |
| 49 | match=ofp.match(oxm_list=[]), |
| 50 | instructions=[ |
| 51 | ofp.instruction.goto_table(table_id=4), |
| 52 | ofp.instruction.goto_table(table_id=7)]) |