blob: 247464de1148ae1bf18f8067be1607b7ddfa7302 [file] [log] [blame]
Andreas Wundsam75c09dc2015-07-22 18:23:29 -07001 // Additional methods
2
3 /**
4 * Returns true if the port is up, i.e., it's neither administratively
5 * down nor link down. It currently does NOT take STP state into
6 * consideration
7 * @return whether the port is up
8 */
9 boolean isEnabled();
10
11 /**
12 * Returns the current generation ID of this port.
13 *
14 * The generationId is reported by the switch as a @{link OFPortDescProp} in
15 * @link{OFPortDescStatsReply} and @link{OFPortStatus} messages. If the
16 * current OFPortDesc does not contain a generation Id, returns U64.ZERO;
17 *
18 * For OpenFlow versions earlier than 1.4, always returns U64.ZERO;
19 *
20 * @return the generation ID or U64.ZERO if not reported
21 * @since 1.4
22 */
23 public U64 getBsnGenerationId();