@Beta public interface VirtualNetworkAdminService extends VirtualNetworkService
VIRTUAL_NETWORK_TOPIC| Modifier and Type | Method and Description |
|---|---|
void |
bindVirtualPort(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
org.onosproject.net.ConnectPoint realizedBy)
Binds an existing virtual port on the specified device.
|
VirtualDevice |
createVirtualDevice(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Creates a new virtual device within the specified network.
|
VirtualHost |
createVirtualHost(NetworkId networkId,
org.onosproject.net.HostId hostId,
org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
org.onosproject.net.HostLocation location,
Set<org.onlab.packet.IpAddress> ips)
Creates a new virtual host within the specified network.
|
VirtualLink |
createVirtualLink(NetworkId networkId,
org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
Creates a new virtual link within the specified network.
|
VirtualNetwork |
createVirtualNetwork(TenantId tenantId)
Creates a new virtual network for the specified tenant.
|
VirtualPort |
createVirtualPort(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
org.onosproject.net.ConnectPoint realizedBy)
Creates a new virtual port on the specified device.
|
Set<TenantId> |
getTenantIds()
Returns the set of tenant identifiers known to the system.
|
void |
registerTenantId(TenantId tenantId)
Registers the specified, externally generated tenant identifier.
|
void |
removeVirtualDevice(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Removes the specified virtual device and all its ports and affiliated links.
|
void |
removeVirtualHost(NetworkId networkId,
org.onosproject.net.HostId hostId)
Removes the specified virtual host.
|
void |
removeVirtualLink(NetworkId networkId,
org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
Removes the specified virtual link.
|
void |
removeVirtualNetwork(NetworkId networkId)
Removes the specified virtual network and all its devices and links.
|
void |
removeVirtualPort(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber)
Removes the specified virtual port.
|
void |
unregisterTenantId(TenantId tenantId)
Unregisters the specified, externally generated tenant identifier.
|
get, getVirtualDevices, getVirtualHosts, getVirtualLinks, getVirtualNetworks, getVirtualPortsvoid registerTenantId(TenantId tenantId)
tenantId - tenant identifiervoid unregisterTenantId(TenantId tenantId)
tenantId - tenant identifierIllegalStateException - if there are networks still owned by this tenantSet<TenantId> getTenantIds()
VirtualNetwork createVirtualNetwork(TenantId tenantId)
tenantId - tenant identifiervoid removeVirtualNetwork(NetworkId networkId)
networkId - network identifierVirtualDevice createVirtualDevice(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - network identifierdeviceId - device identifierorg.onlab.util.ItemNotFoundException - if no such network foundvoid removeVirtualDevice(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - network identifierdeviceId - device identifierorg.onlab.util.ItemNotFoundException - if no such network or device foundVirtualHost createVirtualHost(NetworkId networkId, org.onosproject.net.HostId hostId, org.onlab.packet.MacAddress mac, org.onlab.packet.VlanId vlan, org.onosproject.net.HostLocation location, Set<org.onlab.packet.IpAddress> ips)
networkId - network identifierhostId - host identifiermac - mac addressvlan - vlan identifierlocation - host locationips - set of ip addressesorg.onlab.util.ItemNotFoundException - if no such network foundvoid removeVirtualHost(NetworkId networkId, org.onosproject.net.HostId hostId)
networkId - network identifierhostId - host identifierorg.onlab.util.ItemNotFoundException - if no such network or host foundVirtualLink createVirtualLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
networkId - network identifiersrc - source connection pointdst - destination connection pointorg.onlab.util.ItemNotFoundException - if no such network foundvoid removeVirtualLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
networkId - network identifiersrc - source connection pointdst - destination connection pointorg.onlab.util.ItemNotFoundException - if no such network or link foundVirtualPort createVirtualPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
networkId - network identifierdeviceId - virtual device identifierportNumber - virtual port numberrealizedBy - underlying physical port using which this virtual port is realizedorg.onlab.util.ItemNotFoundException - if no such network or device is foundvoid bindVirtualPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
networkId - network identifierdeviceId - virtual device identifierportNumber - virtual port numberrealizedBy - underlying physical port using which this virtual port is realizedorg.onlab.util.ItemNotFoundException - if no such network or device is foundvoid removeVirtualPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber)
networkId - network identifierdeviceId - device identifierportNumber - port numberorg.onlab.util.ItemNotFoundException - if no such network or port found