public interface VirtualNetworkStore extends org.onosproject.store.Store<VirtualNetworkEvent,VirtualNetworkStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
VirtualDevice |
addDevice(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Adds a new virtual device to the store.
|
VirtualHost |
addHost(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)
Adds a new virtual host to the store.
|
VirtualLink |
addLink(NetworkId networkId,
org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst,
org.onosproject.net.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,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
org.onosproject.net.ConnectPoint realizedBy)
Adds a new virtual port to the network.
|
void |
addTenantId(TenantId tenantId)
Adds a new tenant ID to the store.
|
void |
addTunnelId(org.onosproject.net.intent.Intent intent,
TunnelId tunnelId)
Deprecated.
in Kingfisher Release (1.10)
|
void |
bindPort(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.PortNumber portNumber,
org.onosproject.net.ConnectPoint realizedBy)
Binds an existing virtual port to the network.
|
Set<VirtualDevice> |
getDevices(NetworkId networkId)
Returns the list of devices in the specified virtual network.
|
Set<VirtualHost> |
getHosts(NetworkId networkId)
Returns the list of hosts in the specified virtual network.
|
VirtualLink |
getLink(NetworkId networkId,
org.onosproject.net.ConnectPoint src,
org.onosproject.net.ConnectPoint dst)
Returns the virtual link matching the network identifier, source connect point,
and destination connect point.
|
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.
|
Set<VirtualNetwork> |
getNetworks(TenantId tenantId)
Returns the list of networks.
|
Set<VirtualPort> |
getPorts(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns the list of ports of the specified virtual device.
|
Set<TenantId> |
getTenantIds()
Returns set of registered tenant IDs.
|
Set<TunnelId> |
getTunnelIds(org.onosproject.net.intent.Intent intent)
Deprecated.
in Kingfisher Release (1.10)
|
void |
removeDevice(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Removes the specified virtual device from the given network.
|
void |
removeHost(NetworkId networkId,
org.onosproject.net.HostId hostId)
Removes the specified virtual host from the store.
|
VirtualLink |
removeLink(NetworkId networkId,
org.onosproject.net.ConnectPoint src,
org.onosproject.net.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,
org.onosproject.net.DeviceId deviceId,
org.onosproject.net.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(org.onosproject.net.intent.Intent intent,
TunnelId tunnelId)
Deprecated.
in Kingfisher Release (1.10)
|
void |
updateLink(VirtualLink virtualLink,
TunnelId tunnelId,
org.onosproject.net.Link.State state)
Updates the tunnelId in the virtual link.
|
void addTenantId(TenantId tenantId)
tenantId - tenant identifiervoid removeTenantId(TenantId tenantId)
tenantId - tenant identifierSet<TenantId> getTenantIds()
VirtualNetwork addNetwork(TenantId tenantId)
tenantId - tenant identifiervoid removeNetwork(NetworkId networkId)
networkId - network identifierVirtualDevice addDevice(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - network identifierdeviceId - device identifiervoid removeDevice(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - network identifierdeviceId - device identifierVirtualHost addHost(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 addressesvoid removeHost(NetworkId networkId, org.onosproject.net.HostId hostId)
networkId - network identifierhostId - host identifierVirtualLink addLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst, org.onosproject.net.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, org.onosproject.net.Link.State state)
virtualLink - virtual linktunnelId - tunnel identifierstate - link stateVirtualLink removeLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
networkId - network identifiersrc - source connection pointdst - destination connection pointVirtualPort addPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
networkId - network identifierdeviceId - device identifierportNumber - port numberrealizedBy - underlying port which realizes the virtual portvoid bindPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
networkId - network identifierdeviceId - device identifierportNumber - port numberrealizedBy - underlying port which realizes the virtual portvoid removePort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber)
networkId - network identifierdeviceId - device identifierportNumber - port numberSet<VirtualNetwork> getNetworks(TenantId tenantId)
tenantId - tenant identifierVirtualNetwork getNetwork(NetworkId networkId)
networkId - network identifierSet<VirtualDevice> getDevices(NetworkId networkId)
networkId - network identifierSet<VirtualHost> getHosts(NetworkId networkId)
networkId - network identifierSet<VirtualLink> getLinks(NetworkId networkId)
networkId - network identifierVirtualLink getLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
networkId - network identifiersrc - source connect pointdst - destination connect pointSet<VirtualPort> getPorts(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - network identifierdeviceId - device identifier@Deprecated void addTunnelId(org.onosproject.net.intent.Intent intent, TunnelId tunnelId)
intent - intenttunnelId - tunnel identifier@Deprecated Set<TunnelId> getTunnelIds(org.onosproject.net.intent.Intent intent)
intent - intent@Deprecated void removeTunnelId(org.onosproject.net.intent.Intent intent, TunnelId tunnelId)
intent - intenttunnelId - tunnel identifier