blob: e2da4a177d28f7665d392f2d0e9be2b563ea0929 [file] [log] [blame]
package org.onlab.onos.net;
/**
* Abstraction of a network port.
*/
public interface Port extends Annotated {
/**
* Returns the port number.
*
* @return port number
*/
PortNumber number();
/**
* Indicates whether or not the port is currently up and active.
*
* @return true if the port is operational
*/
boolean isEnabled();
/**
* Returns the parent network element to which this port belongs.
*
* @return parent network element
*/
Element element();
// set of port attributes
}