blob: e98278b592d40820662c86ba91cad70af2fcc405 [file] [log] [blame]
package org.onlab.onos.net;
/**
* Abstraction of a network port.
*/
public interface Port {
/**
* 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
}