@Beta
public interface VirtualNetworkService
Modifier and Type | Field and Description |
---|---|
static String |
VIRTUAL_NETWORK_TOPIC
The topic used for obtaining globally unique ids.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(NetworkId networkId,
Class<T> serviceClass)
Returns implementation of the specified service class for operating
in the context of the given network.
|
org.onlab.osgi.ServiceDirectory |
getServiceDirectory()
Returns service directory.
|
Set<VirtualDevice> |
getVirtualDevices(NetworkId networkId)
Returns a collection of all virtual devices in the specified network.
|
Set<VirtualHost> |
getVirtualHosts(NetworkId networkId)
Returns a collection of all virtual hosts in the specified network.
|
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.
|
Set<VirtualNetwork> |
getVirtualNetworks(TenantId tenantId)
Returns a collection of all virtual networks created on behalf of the
specified tenant.
|
Set<VirtualPort> |
getVirtualPorts(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns list of all virtual ports of the specified device.
|
static final String VIRTUAL_NETWORK_TOPIC
Set<VirtualNetwork> getVirtualNetworks(TenantId tenantId)
tenantId
- tenant identifierorg.onlab.util.ItemNotFoundException
- if no such network foundSet<VirtualDevice> getVirtualDevices(NetworkId networkId)
networkId
- network identifierorg.onlab.util.ItemNotFoundException
- if no such network foundSet<VirtualHost> getVirtualHosts(NetworkId networkId)
networkId
- network identifierorg.onlab.util.ItemNotFoundException
- if no such network foundSet<VirtualLink> getVirtualLinks(NetworkId networkId)
networkId
- network identifierorg.onlab.util.ItemNotFoundException
- if no such network foundSet<VirtualPort> getVirtualPorts(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId
- network identifierdeviceId
- device identifierorg.onlab.util.ItemNotFoundException
- if no such network found<T> T get(NetworkId networkId, Class<T> serviceClass)
The following services will be available:
DeviceService
LinkService
HostService
TopologyService
PathService
FlowRuleService
FlowObjectiveService
IntentService
T
- 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