blob: c3c2e384a3b542d5d84e413662daa4d60933b26e [file] [log] [blame]
-- binary
ff fd # port_no
01 02 03 04 05 06 # hw_addr
66 6f 6f 00 00 00 00 00 00 00 00 00 00 00 00 00 # name
00 00 00 10 # config
00 00 02 00 # state
00 00 00 01 # curr
00 00 00 20 # advertised
00 00 02 00 # supported
00 00 08 00 # peer
-- python
ofp.port_desc(
port_no=ofp.OFPP_CONTROLLER,
hw_addr=[1,2,3,4,5,6],
name="foo",
config=ofp.OFPPC_NO_FLOOD,
state=ofp.OFPPS_STP_FORWARD,
curr=ofp.OFPPF_10MB_HD,
advertised=ofp.OFPPF_1GB_FD,
supported=ofp.OFPPF_AUTONEG,
peer=ofp.OFPPF_PAUSE_ASYM)