Rich Lane | 9a3f1fd | 2013-05-10 16:29:17 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | ff fd # port_no |
| 3 | 01 02 03 04 05 06 # hw_addr |
| 4 | 66 6f 6f 00 00 00 00 00 00 00 00 00 00 00 00 00 # name |
| 5 | 00 00 00 10 # config |
| 6 | 00 00 02 00 # state |
| 7 | 00 00 00 01 # curr |
| 8 | 00 00 00 20 # advertised |
| 9 | 00 00 02 00 # supported |
| 10 | 00 00 08 00 # peer |
| 11 | -- python |
| 12 | ofp.port_desc( |
| 13 | port_no=ofp.OFPP_CONTROLLER, |
| 14 | hw_addr=[1,2,3,4,5,6], |
| 15 | name="foo", |
| 16 | config=ofp.OFPPC_NO_FLOOD, |
| 17 | state=ofp.OFPPS_STP_FORWARD, |
| 18 | curr=ofp.OFPPF_10MB_HD, |
| 19 | advertised=ofp.OFPPF_1GB_FD, |
| 20 | supported=ofp.OFPPF_AUTONEG, |
| 21 | peer=ofp.OFPPF_PAUSE_ASYM) |