Modifier and Type | Method and Description |
---|---|
void |
changePortState(DeviceId deviceId,
PortNumber portNumber,
boolean enable)
Administratively enables or disables a port.
|
boolean |
isReachable(DeviceId deviceId)
Checks the reachability (connectivity) of a device from this provider.
|
void |
roleChanged(DeviceId deviceId,
MastershipRole newRole)
Notifies the provider of a mastership role change for the specified
device as decided by the core.
|
void |
triggerProbe(DeviceId deviceId)
Triggers an asynchronous probe of the specified device, intended to
determine whether the device is present or not.
|
void triggerProbe(DeviceId deviceId)
DeviceProviderService.deviceConnected(org.onosproject.net.DeviceId, org.onosproject.net.device.DeviceDescription)
)} or
DeviceProviderService.deviceDisconnected(org.onosproject.net.DeviceId)
at some later point in time.deviceId
- ID of device to be probedvoid roleChanged(DeviceId deviceId, MastershipRole newRole)
deviceId
- device identifiernewRole
- newly determined mastership roleboolean isReachable(DeviceId deviceId)
deviceId
- device identifiervoid changePortState(DeviceId deviceId, PortNumber portNumber, boolean enable)
deviceId
- device identifierportNumber
- port numberenable
- true if port is to be enabled, false to disable