blob: 247464de1148ae1bf18f8067be1607b7ddfa7302 [file] [log] [blame]
// Additional methods
/**
* Returns true if the port is up, i.e., it's neither administratively
* down nor link down. It currently does NOT take STP state into
* consideration
* @return whether the port is up
*/
boolean isEnabled();
/**
* Returns the current generation ID of this port.
*
* The generationId is reported by the switch as a @{link OFPortDescProp} in
* @link{OFPortDescStatsReply} and @link{OFPortStatus} messages. If the
* current OFPortDesc does not contain a generation Id, returns U64.ZERO;
*
* For OpenFlow versions earlier than 1.4, always returns U64.ZERO;
*
* @return the generation ID or U64.ZERO if not reported
* @since 1.4
*/
public U64 getBsnGenerationId();