Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame^] | 1 | -- binary |
| 2 | 01 0c # version / type |
| 3 | 00 40 # length |
| 4 | 00 00 00 04 # xid |
| 5 | 01 # reason |
| 6 | 00 00 00 00 00 00 00 # pad |
| 7 | ff fd # desc.port_no |
| 8 | 01 02 03 04 05 06 # desc.hw_addr |
| 9 | 66 6f 6f 00 00 00 00 00 # desc.name |
| 10 | 00 00 00 00 00 00 00 00 # ... |
| 11 | 00 00 00 10 # desc.config |
| 12 | 00 00 02 00 # desc.state |
| 13 | 00 00 00 01 # desc.curr |
| 14 | 00 00 00 20 # desc.advertised |
| 15 | 00 00 02 00 # desc.supported |
| 16 | 00 00 08 00 # desc.peer |
| 17 | -- python |
| 18 | ofp.message.port_status( |
| 19 | xid=4, |
| 20 | reason=ofp.OFPPR_DELETE, |
| 21 | desc=ofp.port_desc( |
| 22 | port_no=ofp.OFPP_CONTROLLER, |
| 23 | hw_addr=[1,2,3,4,5,6], |
| 24 | name="foo", |
| 25 | config=ofp.OFPPC_NO_FLOOD, |
| 26 | state=ofp.OFPPS_STP_FORWARD, |
| 27 | curr=ofp.OFPPF_10MB_HD, |
| 28 | advertised=ofp.OFPPF_1GB_FD, |
| 29 | supported=ofp.OFPPF_AUTONEG, |
| 30 | peer=ofp.OFPPF_PAUSE_ASYM)) |