public interface VirtualNetworkStore extends Store<VirtualNetworkEvent,VirtualNetworkStoreDelegate>
Modifier and Type | Method and Description |
---|---|
VirtualDevice |
addDevice(NetworkId networkId,
DeviceId deviceId)
Adds a new virtual device to the store.
|
VirtualHost |
addHost(NetworkId networkId,
HostId hostId,
MacAddress mac,
VlanId vlan,
HostLocation location,
java.util.Set<IpAddress> ips)
Adds a new virtual host to the store.
|
VirtualLink |
addLink(NetworkId networkId,
ConnectPoint src,
ConnectPoint dst,
Link.State state,
TunnelId realizedBy)
Adds a new virtual link.
|
VirtualNetwork |
addNetwork(TenantId tenantId)
Adds a new virtual network for the specified tenant to the store.
|
VirtualPort |
addPort(NetworkId networkId,
DeviceId deviceId,
PortNumber portNumber,
ConnectPoint realizedBy)
Adds a new virtual port to the network.
|
void |
addTenantId(TenantId tenantId)
Adds a new tenant ID to the store.
|
void |
addTunnelId(Intent intent,
TunnelId tunnelId)
Deprecated.
in Kingfisher Release (1.10)
|
void |
bindPort(NetworkId networkId,
DeviceId deviceId,
PortNumber portNumber,
ConnectPoint realizedBy)
Binds an existing virtual port to the network.
|
java.util.Set<VirtualDevice> |
getDevices(NetworkId networkId)
Returns the list of devices in the specified virtual network.
|
java.util.Set<VirtualHost> |
getHosts(NetworkId networkId)
Returns the list of hosts in the specified virtual network.
|
VirtualLink |
getLink(NetworkId networkId,
ConnectPoint src,
ConnectPoint dst)
Returns the virtual link matching the network identifier, source connect point,
and destination connect point.
|
java.util.Set<VirtualLink> |
getLinks(NetworkId networkId)
Returns the list of virtual links in the specified virtual network.
|
VirtualNetwork |
getNetwork(NetworkId networkId)
Returns the virtual network for the given network identifier.
|
java.util.Set<VirtualNetwork> |
getNetworks(TenantId tenantId)
Returns the list of networks.
|
java.util.Set<VirtualPort> |
getPorts(NetworkId networkId,
DeviceId deviceId)
Returns the list of ports of the specified virtual device.
|
java.util.Set<TenantId> |
getTenantIds()
Returns set of registered tenant IDs.
|
java.util.Set<TunnelId> |
getTunnelIds(Intent intent)
Deprecated.
in Kingfisher Release (1.10)
|
void |
removeDevice(NetworkId networkId,
DeviceId deviceId)
Removes the specified virtual device from the given network.
|
void |
removeHost(NetworkId networkId,
HostId hostId)
Removes the specified virtual host from the store.
|
VirtualLink |
removeLink(NetworkId networkId,
ConnectPoint src,
ConnectPoint dst)
Removes the specified link from the store.
|
void |
removeNetwork(NetworkId networkId)
Removes the specified virtual network from the store.
|
void |
removePort(NetworkId networkId,
DeviceId deviceId,
PortNumber portNumber)
Removes the specified port from the given device and network.
|
void |
removeTenantId(TenantId tenantId)
Removes the specified tenant ID from the store.
|
void |
removeTunnelId(Intent intent,
TunnelId tunnelId)
Deprecated.
in Kingfisher Release (1.10)
|
void |
updateLink(VirtualLink virtualLink,
TunnelId tunnelId,
Link.State state)
Updates the tunnelId in the virtual link.
|
void |
updatePortState(NetworkId networkId,
DeviceId deviceId,
PortNumber portNumber,
boolean isEnabled)
Updates port state of an existing virtual port.
|
hasDelegate, setDelegate, unsetDelegate
void addTenantId(TenantId tenantId)
tenantId
- tenant identifiervoid removeTenantId(TenantId tenantId)
tenantId
- tenant identifierjava.util.Set<TenantId> getTenantIds()
VirtualNetwork addNetwork(TenantId tenantId)
tenantId
- tenant identifiervoid removeNetwork(NetworkId networkId)
networkId
- network identifierVirtualDevice addDevice(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- device identifiervoid removeDevice(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- device identifierVirtualHost addHost(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 addressesvoid removeHost(NetworkId networkId, HostId hostId)
networkId
- network identifierhostId
- host identifierVirtualLink addLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst, Link.State state, TunnelId realizedBy)
networkId
- network identifiersrc
- source end-point of the linkdst
- destination end-point of the linkstate
- link staterealizedBy
- underlying tunnel identifier using which this link is realizedvoid updateLink(VirtualLink virtualLink, TunnelId tunnelId, Link.State state)
virtualLink
- virtual linktunnelId
- tunnel identifierstate
- link stateVirtualLink removeLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst)
networkId
- network identifiersrc
- source connection pointdst
- destination connection pointVirtualPort addPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, ConnectPoint realizedBy)
networkId
- network identifierdeviceId
- device identifierportNumber
- port numberrealizedBy
- underlying port which realizes the virtual portvoid bindPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, ConnectPoint realizedBy)
networkId
- network identifierdeviceId
- device identifierportNumber
- port numberrealizedBy
- underlying port which realizes the virtual portvoid updatePortState(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, boolean isEnabled)
networkId
- network identifierdeviceId
- device identifierportNumber
- port numberisEnabled
- indicator whether the port is up and activevoid removePort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber)
networkId
- network identifierdeviceId
- device identifierportNumber
- port numberjava.util.Set<VirtualNetwork> getNetworks(TenantId tenantId)
tenantId
- tenant identifierVirtualNetwork getNetwork(NetworkId networkId)
networkId
- network identifierjava.util.Set<VirtualDevice> getDevices(NetworkId networkId)
networkId
- network identifierjava.util.Set<VirtualHost> getHosts(NetworkId networkId)
networkId
- network identifierjava.util.Set<VirtualLink> getLinks(NetworkId networkId)
networkId
- network identifierVirtualLink getLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst)
networkId
- network identifiersrc
- source connect pointdst
- destination connect pointjava.util.Set<VirtualPort> getPorts(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- device identifier@Deprecated void addTunnelId(Intent intent, TunnelId tunnelId)
intent
- intenttunnelId
- tunnel identifier@Deprecated java.util.Set<TunnelId> getTunnelIds(Intent intent)
intent
- intent