public interface VirtualDeviceProvider extends VirtualProvider
| Modifier and Type | Method and Description |
|---|---|
void |
changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable)
Administratively enables or disables a port.
|
boolean |
isReachable(org.onosproject.net.DeviceId deviceId)
Indicates whether or not the all physical devices mapped by the given
virtual device are reachable.
|
boolean |
isTraversable(org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
Indicates whether or not the specified connect points on the underlying
network are traversable.
|
void |
roleChanged(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.MastershipRole newRole)
Notifies the provider of a mastership role change for the specified
device as decided by the core.
|
idvoid roleChanged(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.MastershipRole newRole)
deviceId - device identifiernewRole - newly determined mastership roleboolean isTraversable(org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
src - source connection pointdst - destination connection pointboolean isReachable(org.onosproject.net.DeviceId deviceId)
deviceId - device identifiervoid changePortState(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
boolean enable)
deviceId - device identifierportNumber - port numberenable - true if port is to be enabled, false to disable