@Beta public interface VirtualNetworkAdminService extends VirtualNetworkService
VIRTUAL_NETWORK_TOPIC| Modifier and Type | Method and Description |
|---|---|
void |
bindVirtualPort(NetworkId networkId,
DeviceId deviceId,
PortNumber portNumber,
ConnectPoint realizedBy)
Binds an existing virtual port on the specified device.
|
VirtualDevice |
createVirtualDevice(NetworkId networkId,
DeviceId deviceId)
Creates a new virtual device within the specified network.
|
VirtualHost |
createVirtualHost(NetworkId networkId,
HostId hostId,
MacAddress mac,
VlanId vlan,
HostLocation location,
java.util.Set<IpAddress> ips)
Creates a new virtual host within the specified network.
|
VirtualLink |
createVirtualLink(NetworkId networkId,
ConnectPoint src,
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,
DeviceId deviceId,
PortNumber portNumber,
ConnectPoint realizedBy)
Creates a new virtual port on the specified device.
|
java.util.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,
DeviceId deviceId)
Removes the specified virtual device and all its ports and affiliated links.
|
void |
removeVirtualHost(NetworkId networkId,
HostId hostId)
Removes the specified virtual host.
|
void |
removeVirtualLink(NetworkId networkId,
ConnectPoint src,
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,
DeviceId deviceId,
PortNumber portNumber)
Removes the specified virtual port.
|
void |
unregisterTenantId(TenantId tenantId)
Unregisters the specified, externally generated tenant identifier.
|
void |
updatePortState(NetworkId networkId,
DeviceId deviceId,
PortNumber portNumber,
boolean isEnabled)
Updates port state of an existing virtual port on the specified device.
|
get, getPhysicalDevices, getServiceDirectory, getVirtualDevices, getVirtualHosts, getVirtualLinks, getVirtualNetworkApplicationId, getVirtualNetworks, getVirtualPortsaddListener, removeListenervoid registerTenantId(TenantId tenantId)
tenantId - tenant identifiervoid unregisterTenantId(TenantId tenantId)
tenantId - tenant identifierjava.lang.IllegalStateException - if there are networks still owned by this tenantjava.util.Set<TenantId> getTenantIds()
VirtualNetwork createVirtualNetwork(TenantId tenantId)
tenantId - tenant identifiervoid removeVirtualNetwork(NetworkId networkId)
networkId - network identifierVirtualDevice createVirtualDevice(NetworkId networkId, DeviceId deviceId)
networkId - network identifierdeviceId - device identifierItemNotFoundException - if no such network foundvoid removeVirtualDevice(NetworkId networkId, DeviceId deviceId)
networkId - network identifierdeviceId - device identifierItemNotFoundException - if no such network or device foundVirtualHost createVirtualHost(NetworkId networkId, HostId hostId, MacAddress mac, VlanId vlan, HostLocation location, java.util.Set<IpAddress> ips)
networkId - network identifierhostId - host identifiermac - mac addressvlan - vlan identifierlocation - host locationips - set of ip addressesItemNotFoundException - if no such network foundvoid removeVirtualHost(NetworkId networkId, HostId hostId)
networkId - network identifierhostId - host identifierItemNotFoundException - if no such network or host foundVirtualLink createVirtualLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst)
networkId - network identifiersrc - source connection pointdst - destination connection pointItemNotFoundException - if no such network foundvoid removeVirtualLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst)
networkId - network identifiersrc - source connection pointdst - destination connection pointItemNotFoundException - if no such network or link foundVirtualPort createVirtualPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, ConnectPoint realizedBy)
networkId - network identifierdeviceId - virtual device identifierportNumber - virtual port numberrealizedBy - underlying physical port using which this virtual port is realizedItemNotFoundException - if no such network or device is foundvoid bindVirtualPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, ConnectPoint realizedBy)
networkId - network identifierdeviceId - virtual device identifierportNumber - virtual port numberrealizedBy - underlying physical port using which this virtual port is realizedItemNotFoundException - if no such network or device is foundvoid updatePortState(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, boolean isEnabled)
networkId - network identifierdeviceId - virtual device identifierportNumber - virtual port numberisEnabled - indicator whether the port is up and activeItemNotFoundException - if no such network or device is foundvoid removeVirtualPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber)
networkId - network identifierdeviceId - device identifierportNumber - port numberItemNotFoundException - if no such network or port found