Package org.onosproject.net.behaviour
Interface PortAdmin
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
@Beta public interface PortAdmin extends HandlerBehaviour
Means to administratively enable,disable and query the state of a port on a device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Boolean>
disable(PortNumber number)
Disable administratively a port.CompletableFuture<Boolean>
enable(PortNumber number)
Enable administratively a port.CompletableFuture<Boolean>
isEnabled(PortNumber number)
Retrieves the information about the administrative state of a port.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
enable
CompletableFuture<Boolean> enable(PortNumber number)
Enable administratively a port.- Parameters:
number
- the port to be enabled- Returns:
- CompletableFuture with true if the operation was successful
-
disable
CompletableFuture<Boolean> disable(PortNumber number)
Disable administratively a port.- Parameters:
number
- the port to be disabled- Returns:
- CompletableFuture with true if the operation was successful
-
isEnabled
CompletableFuture<Boolean> isEnabled(PortNumber number)
Retrieves the information about the administrative state of a port.- Parameters:
number
- identifier of the port to be queried about its state- Returns:
- CompletableFuture containing, when completed, true if the port isEnabled.
-
-