public interface VirtualDeviceProvider extends VirtualProvider
Modifier and Type | Method and Description |
---|---|
void |
changePortState(DeviceId deviceId,
PortNumber portNumber,
boolean enable)
Administratively enables or disables a port.
|
boolean |
isReachable(DeviceId deviceId)
Indicates whether or not the all physical devices mapped by the given
virtual device are reachable.
|
boolean |
isTraversable(ConnectPoint src,
ConnectPoint dst)
Indicates whether or not the specified connect points on the underlying
network are traversable.
|
void |
roleChanged(DeviceId deviceId,
MastershipRole newRole)
Notifies the provider of a mastership role change for the specified
device as decided by the core.
|
id
void roleChanged(DeviceId deviceId, MastershipRole newRole)
deviceId
- device identifiernewRole
- newly determined mastership roleboolean isTraversable(ConnectPoint src, ConnectPoint dst)
src
- source connection pointdst
- destination connection pointboolean 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