Package org.onosproject.net.device
Interface PortDescription
-
- All Superinterfaces:
Annotated
,Description
- All Known Implementing Classes:
DefaultPortDescription
public interface PortDescription extends Description
Information about a port.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEnabled()
Indicates whether or not the port is up and active.boolean
isRemoved()
Indicates whether or not the port was removed.PortNumber
portNumber()
Returns the port number.long
portSpeed()
Returns the current port speed in Mbps.Port.Type
type()
Returns the port type.-
Methods inherited from interface org.onosproject.net.Description
annotations
-
-
-
-
Method Detail
-
portNumber
PortNumber portNumber()
Returns the port number.- Returns:
- port number
-
isEnabled
boolean isEnabled()
Indicates whether or not the port is up and active.- Returns:
- true if the port is active and has carrier signal
-
isRemoved
boolean isRemoved()
Indicates whether or not the port was removed.- Returns:
- true if the port is removed.
-
type
Port.Type type()
Returns the port type.- Returns:
- port type
-
portSpeed
long portSpeed()
Returns the current port speed in Mbps.- Returns:
- current port speed
-
-