blob: f0dc8eeb43a4788de94dfc2e2090893000143ff7 [file] [log] [blame]
package org.onlab.onos.net.device;
import org.onlab.onos.net.PortNumber;
/**
* Information about a port.
*/
public interface PortDescription {
// TODO: possibly relocate this to a common ground so that this can also used by host tracking if required
/**
* Returns the port number.
*
* @return port number
*/
PortNumber portNumber();
/**
* Indicates whether or not the port is up and active.
*
* @return true if the port is active and has carrier signal
*/
boolean isEnabled();
}