@Beta public interface VirtualNetworkService extends org.onosproject.event.ListenerService<VirtualNetworkEvent,VirtualNetworkListener>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VIRTUAL_NETWORK_TOPIC
The topic used for obtaining globally unique ids.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(NetworkId networkId,
java.lang.Class<T> serviceClass)
Returns implementation of the specified service class for operating
in the context of the given network.
|
java.util.Set<org.onosproject.net.DeviceId> |
getPhysicalDevices(NetworkId networkId,
VirtualDevice virtualDevice)
Returns list of physical device identifier mapping with the virtual
device in the specified network.
|
org.onlab.osgi.ServiceDirectory |
getServiceDirectory()
Returns service directory.
|
java.util.Set<VirtualDevice> |
getVirtualDevices(NetworkId networkId)
Returns a collection of all virtual devices in the specified network.
|
java.util.Set<VirtualHost> |
getVirtualHosts(NetworkId networkId)
Returns a collection of all virtual hosts in the specified network.
|
java.util.Set<VirtualLink> |
getVirtualLinks(NetworkId networkId)
Returns collection of all virtual links in the specified network.
|
org.onosproject.core.ApplicationId |
getVirtualNetworkApplicationId(NetworkId networkId)
Returns the application identifier for a virtual network.
|
java.util.Set<VirtualNetwork> |
getVirtualNetworks(TenantId tenantId)
Returns a collection of all virtual networks created on behalf of the
specified tenant.
|
java.util.Set<VirtualPort> |
getVirtualPorts(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns list of all virtual ports of the specified device.
|
static final java.lang.String VIRTUAL_NETWORK_TOPIC
java.util.Set<VirtualNetwork> getVirtualNetworks(TenantId tenantId)
tenantId - tenant identifierorg.onlab.util.ItemNotFoundException - if no such network foundjava.util.Set<VirtualDevice> getVirtualDevices(NetworkId networkId)
networkId - network identifierorg.onlab.util.ItemNotFoundException - if no such network foundjava.util.Set<VirtualHost> getVirtualHosts(NetworkId networkId)
networkId - network identifierorg.onlab.util.ItemNotFoundException - if no such network foundjava.util.Set<VirtualLink> getVirtualLinks(NetworkId networkId)
networkId - network identifierorg.onlab.util.ItemNotFoundException - if no such network foundjava.util.Set<VirtualPort> getVirtualPorts(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - network identifierdeviceId - device identifierorg.onlab.util.ItemNotFoundException - if no such network foundjava.util.Set<org.onosproject.net.DeviceId> getPhysicalDevices(NetworkId networkId, VirtualDevice virtualDevice)
networkId - network identifiervirtualDevice - the virtual device<T> T get(NetworkId networkId, java.lang.Class<T> serviceClass)
The following services will be available:
DeviceServiceLinkServiceHostServiceTopologyServicePathServicePacketServiceFlowRuleServiceFlowObjectiveServiceIntentServiceT - type of servicenetworkId - network identifierserviceClass - service classorg.onlab.util.ItemNotFoundException - if no such network foundorg.onlab.osgi.ServiceNotFoundException - if no implementation foundorg.onlab.osgi.ServiceDirectory getServiceDirectory()
org.onosproject.core.ApplicationId getVirtualNetworkApplicationId(NetworkId networkId)
networkId - network identifier