blob: 3be1b70f5b923e53a758c4dca95fa0b909d60912 [file] [log] [blame]
Sovietaced476bef42014-12-01 19:27:35 -05001
2 /**
3 * Returns true if the port is up, i.e., it's neither administratively
4 * down nor link down. It currently does NOT take STP state into
5 * consideration
6 * @return whether the port is up
7 */
8 public boolean isEnabled() {
9 return (!state.contains(OFPortState.LINK_DOWN) && !config.contains(OFPortConfig.PORT_DOWN));
10 }
Sovietaced476bef42014-12-01 19:27:35 -050011