public interface VirtualPortService extends org.onosproject.event.ListenerService<VirtualPortEvent,VirtualPortListener>
| Modifier and Type | Method and Description |
|---|---|
boolean |
createPorts(Iterable<VirtualPort> virtualPorts)
Creates virtualPorts by virtualPorts.
|
boolean |
exists(VirtualPortId virtualPortId)
Returns if the virtualPort is existed.
|
VirtualPort |
getPort(FixedIp fixedIP)
Returns the virtualPort associated with the fixedIP.
|
VirtualPort |
getPort(org.onlab.packet.MacAddress mac)
Returns the virtualPort associated with the mac address.
|
VirtualPort |
getPort(TenantNetworkId networkId,
org.onlab.packet.IpAddress ip)
Returns the virtualPort associated with the networkId and ip.
|
VirtualPort |
getPort(VirtualPortId virtualPortId)
Returns the virtualPort with the identifier.
|
Collection<VirtualPort> |
getPorts()
Returns the collection of the currently known virtualPort.
|
Collection<VirtualPort> |
getPorts(org.onosproject.net.DeviceId deviceId)
Returns the collection of the virtualPorts associated with the deviceId.
|
Collection<VirtualPort> |
getPorts(TenantId tenantId)
Returns the collection of the virtualPorts associated with the tenantId.
|
Collection<VirtualPort> |
getPorts(TenantNetworkId networkId)
Returns the collection of the virtualPorts associated with the networkId.
|
boolean |
removePorts(Iterable<VirtualPortId> virtualPortIds)
Deletes virtualPortIds by virtualPortIds.
|
boolean |
updatePorts(Iterable<VirtualPort> virtualPorts)
Updates virtualPorts by virtualPorts.
|
boolean exists(VirtualPortId virtualPortId)
virtualPortId - virtualPort identifierVirtualPort getPort(VirtualPortId virtualPortId)
virtualPortId - virtualPort IDVirtualPort getPort(FixedIp fixedIP)
fixedIP - the fixedIP identifierVirtualPort getPort(org.onlab.packet.MacAddress mac)
mac - the mac addressVirtualPort getPort(TenantNetworkId networkId, org.onlab.packet.IpAddress ip)
networkId - the TenantNetworkId identifierip - the ip identifierCollection<VirtualPort> getPorts()
Collection<VirtualPort> getPorts(TenantNetworkId networkId)
networkId - the network identiferCollection<VirtualPort> getPorts(TenantId tenantId)
tenantId - the tenant identifierCollection<VirtualPort> getPorts(org.onosproject.net.DeviceId deviceId)
deviceId - the device identifierboolean createPorts(Iterable<VirtualPort> virtualPorts)
virtualPorts - the iterable collection of virtualPortsboolean updatePorts(Iterable<VirtualPort> virtualPorts)
virtualPorts - the iterable collection of virtualPortsboolean removePorts(Iterable<VirtualPortId> virtualPortIds)
virtualPortIds - the iterable collection of virtualPort identifiers