Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 0b # version, type |
| 3 | 00 48 # length |
| 4 | 12 34 56 78 # xid |
| 5 | fe dc ba 98 76 54 32 10 # cookie |
| 6 | 42 68 # priority |
| 7 | 02 # reason |
| 8 | 14 # table_id |
| 9 | 00 00 00 0a # duration_sec |
| 10 | 00 00 03 e8 # duration_nsec |
| 11 | 00 05 # idle_timeout |
| 12 | 00 1e # hard_timeout |
| 13 | 00 00 00 00 00 00 00 01 # packet_count |
| 14 | 00 00 00 00 00 00 00 02 # byte_count |
| 15 | 00 01 # match.type |
| 16 | 00 16 # match.length |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 17 | 80 00 01 08 # match.oxm_list[0].type_len - IN_PORT |
Yotam Harchol | 7ec170e | 2013-08-22 15:20:24 -0700 | [diff] [blame] | 18 | 00 00 00 04 # match.oxm_list[0].value |
| 19 | 00 00 00 05 # match.oxm_list[0].mask |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 20 | 80 00 2A 02 # match.oxm_list[1].type_len - ARP_OP |
Yotam Harchol | 7ec170e | 2013-08-22 15:20:24 -0700 | [diff] [blame] | 21 | 00 01 # match.oxm_list[1].value |
Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 22 | 00 00 # match.pad |
| 23 | -- python |
| 24 | ofp.message.flow_removed( |
| 25 | xid=0x12345678, |
| 26 | cookie=0xFEDCBA9876543210, |
| 27 | priority=17000, |
| 28 | reason=ofp.OFPRR_DELETE, |
| 29 | table_id=20, |
| 30 | duration_sec=10, |
| 31 | duration_nsec=1000, |
| 32 | idle_timeout=5, |
| 33 | hard_timeout=30, |
| 34 | packet_count=1, |
| 35 | byte_count=2, |
| 36 | match=ofp.match(oxm_list=[ |
Yotam Harchol | 7ec170e | 2013-08-22 15:20:24 -0700 | [diff] [blame] | 37 | ofp.oxm.in_port_masked(value=4, value_mask=5), |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 38 | ofp.oxm.arp_op(value=1) |
Yotam Harchol | 7ec170e | 2013-08-22 15:20:24 -0700 | [diff] [blame] | 39 | ])) |