Sovietaced | 476bef4 | 2014-12-01 19:27:35 -0500 | [diff] [blame] | 1 | |
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 | } | ||||
Sovietaced | 476bef4 | 2014-12-01 19:27:35 -0500 | [diff] [blame] | 11 |