@Service public class DistributedVirtualNetworkStore extends org.onosproject.store.AbstractStore<VirtualNetworkEvent,VirtualNetworkStoreDelegate> implements VirtualNetworkStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedVirtualNetworkStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Distributed network store service activate method.
|
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)
Adds the intent to tunnel identifier mapping to the store.
|
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.
|
void |
deactivate()
Distributed network store service deactivate method.
|
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)
Return the set of tunnel identifiers store against the intent.
|
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)
Removes the intent to tunnel identifier mapping from the store.
|
void |
updateLink(VirtualLink virtualLink,
TunnelId tunnelId,
org.onosproject.net.Link.State state)
Updates the tunnelId in the virtual link.
|
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Activate public void activate()
@Deactivate public void deactivate()
public void addTenantId(TenantId tenantId)
VirtualNetworkStoreaddTenantId in interface VirtualNetworkStoretenantId - tenant identifierpublic void removeTenantId(TenantId tenantId)
VirtualNetworkStoreremoveTenantId in interface VirtualNetworkStoretenantId - tenant identifierpublic Set<TenantId> getTenantIds()
VirtualNetworkStoregetTenantIds in interface VirtualNetworkStorepublic VirtualNetwork addNetwork(TenantId tenantId)
VirtualNetworkStoreaddNetwork in interface VirtualNetworkStoretenantId - tenant identifierpublic void removeNetwork(NetworkId networkId)
VirtualNetworkStoreremoveNetwork in interface VirtualNetworkStorenetworkId - network identifierpublic VirtualDevice addDevice(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkStoreaddDevice in interface VirtualNetworkStorenetworkId - network identifierdeviceId - device identifierpublic void removeDevice(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkStoreremoveDevice in interface VirtualNetworkStorenetworkId - network identifierdeviceId - device identifierpublic 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)
VirtualNetworkStoreaddHost in interface VirtualNetworkStorenetworkId - network identifierhostId - host identifiermac - mac addressvlan - vlan identifierlocation - host locationips - set of ip addressespublic void removeHost(NetworkId networkId, org.onosproject.net.HostId hostId)
VirtualNetworkStoreremoveHost in interface VirtualNetworkStorenetworkId - network identifierhostId - host identifierpublic VirtualLink addLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst, org.onosproject.net.Link.State state, TunnelId realizedBy)
VirtualNetworkStoreaddLink in interface VirtualNetworkStorenetworkId - network identifiersrc - source end-point of the linkdst - destination end-point of the linkstate - link staterealizedBy - underlying tunnel identifier using which this link is realizedpublic void updateLink(VirtualLink virtualLink, TunnelId tunnelId, org.onosproject.net.Link.State state)
VirtualNetworkStoreupdateLink in interface VirtualNetworkStorevirtualLink - virtual linktunnelId - tunnel identifierstate - link statepublic VirtualLink removeLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
VirtualNetworkStoreremoveLink in interface VirtualNetworkStorenetworkId - network identifiersrc - source connection pointdst - destination connection pointpublic VirtualPort addPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
VirtualNetworkStoreaddPort in interface VirtualNetworkStorenetworkId - network identifierdeviceId - device identifierportNumber - port numberrealizedBy - underlying port which realizes the virtual portpublic void bindPort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
VirtualNetworkStorebindPort in interface VirtualNetworkStorenetworkId - network identifierdeviceId - device identifierportNumber - port numberrealizedBy - underlying port which realizes the virtual portpublic void removePort(NetworkId networkId, org.onosproject.net.DeviceId deviceId, org.onosproject.net.PortNumber portNumber)
VirtualNetworkStoreremovePort in interface VirtualNetworkStorenetworkId - network identifierdeviceId - device identifierportNumber - port numberpublic Set<VirtualNetwork> getNetworks(TenantId tenantId)
VirtualNetworkStoregetNetworks in interface VirtualNetworkStoretenantId - tenant identifierpublic VirtualNetwork getNetwork(NetworkId networkId)
VirtualNetworkStoregetNetwork in interface VirtualNetworkStorenetworkId - network identifierpublic Set<VirtualDevice> getDevices(NetworkId networkId)
VirtualNetworkStoregetDevices in interface VirtualNetworkStorenetworkId - network identifierpublic Set<VirtualHost> getHosts(NetworkId networkId)
VirtualNetworkStoregetHosts in interface VirtualNetworkStorenetworkId - network identifierpublic Set<VirtualLink> getLinks(NetworkId networkId)
VirtualNetworkStoregetLinks in interface VirtualNetworkStorenetworkId - network identifierpublic VirtualLink getLink(NetworkId networkId, org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
VirtualNetworkStoregetLink in interface VirtualNetworkStorenetworkId - network identifiersrc - source connect pointdst - destination connect pointpublic Set<VirtualPort> getPorts(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
VirtualNetworkStoregetPorts in interface VirtualNetworkStorenetworkId - network identifierdeviceId - device identifierpublic void addTunnelId(org.onosproject.net.intent.Intent intent,
TunnelId tunnelId)
VirtualNetworkStoreaddTunnelId in interface VirtualNetworkStoreintent - intenttunnelId - tunnel identifierpublic Set<TunnelId> getTunnelIds(org.onosproject.net.intent.Intent intent)
VirtualNetworkStoregetTunnelIds in interface VirtualNetworkStoreintent - intentpublic void removeTunnelId(org.onosproject.net.intent.Intent intent,
TunnelId tunnelId)
VirtualNetworkStoreremoveTunnelId in interface VirtualNetworkStoreintent - intenttunnelId - tunnel identifier