@Service public class FloatingIpManager extends Object implements FloatingIpService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.store.service.EventuallyConsistentMap<FloatingIpId,FloatingIp> |
floatingIpBindStore |
protected org.onosproject.store.service.EventuallyConsistentMap<FloatingIpId,FloatingIp> |
floatingIpStore |
protected RouterService |
routerService |
protected org.onosproject.store.service.StorageService |
storageService |
protected TenantNetworkService |
tenantNetworkService |
protected VirtualPortService |
virtualPortService |
| Constructor and Description |
|---|
FloatingIpManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(FloatingIpListener listener)
Adds the specified listener to floating Ip manager.
|
boolean |
createFloatingIps(Collection<FloatingIp> floatingIps)
Creates new floatingIps.
|
void |
deactivate() |
boolean |
exists(FloatingIpId floatingIpId)
Returns exists or not of specific floatingIp identifier.
|
boolean |
fixedIpIsUsed(org.onlab.packet.IpAddress fixedIpAddr,
TenantId tenantId,
FloatingIpId floatingIpId)
Returns is used or not of specific fixed IP address.
|
boolean |
floatingIpIsUsed(org.onlab.packet.IpAddress floatingIpAddr,
FloatingIpId floatingIpId)
Returns is used or not of specific floating IP address.
|
FloatingIp |
getFloatingIp(FloatingIpId floatingIpId)
Returns the floatingIp with the specified identifier.
|
Collection<FloatingIp> |
getFloatingIps()
Returns a collection of the currently known floating IP.
|
boolean |
removeFloatingIps(Collection<FloatingIpId> floatingIpIds)
Removes the specified floatingIp from the store.
|
void |
removeListener(FloatingIpListener listener)
Removes the specified listener to floating Ip manager.
|
boolean |
updateFloatingIps(Collection<FloatingIp> floatingIps)
Updates existing floatingIps.
|
protected org.onosproject.store.service.EventuallyConsistentMap<FloatingIpId,FloatingIp> floatingIpStore
protected org.onosproject.store.service.EventuallyConsistentMap<FloatingIpId,FloatingIp> floatingIpBindStore
protected org.onosproject.core.ApplicationId appId
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected TenantNetworkService tenantNetworkService
@Reference(cardinality=MANDATORY_UNARY) protected VirtualPortService virtualPortService
@Reference(cardinality=MANDATORY_UNARY) protected RouterService routerService
@Activate public void activate()
@Deactivate public void deactivate()
public Collection<FloatingIp> getFloatingIps()
FloatingIpServicegetFloatingIps in interface FloatingIpServicepublic FloatingIp getFloatingIp(FloatingIpId floatingIpId)
FloatingIpServicegetFloatingIp in interface FloatingIpServicefloatingIpId - floatingIp identifierpublic boolean exists(FloatingIpId floatingIpId)
FloatingIpServiceexists in interface FloatingIpServicefloatingIpId - floatingIp identifierpublic boolean floatingIpIsUsed(org.onlab.packet.IpAddress floatingIpAddr,
FloatingIpId floatingIpId)
FloatingIpServicefloatingIpIsUsed in interface FloatingIpServicefloatingIpAddr - floatingIp addressfloatingIpId - floatingIp identifierpublic boolean fixedIpIsUsed(org.onlab.packet.IpAddress fixedIpAddr,
TenantId tenantId,
FloatingIpId floatingIpId)
FloatingIpServicefixedIpIsUsed in interface FloatingIpServicefixedIpAddr - fixedIp addresstenantId - the tenant identifier of floating IPfloatingIpId - floatingIp identifierpublic boolean createFloatingIps(Collection<FloatingIp> floatingIps)
FloatingIpServicecreateFloatingIps in interface FloatingIpServicefloatingIps - the collection of floatingIppublic boolean updateFloatingIps(Collection<FloatingIp> floatingIps)
FloatingIpServiceupdateFloatingIps in interface FloatingIpServicefloatingIps - the collection of floatingIppublic boolean removeFloatingIps(Collection<FloatingIpId> floatingIpIds)
FloatingIpServiceremoveFloatingIps in interface FloatingIpServicefloatingIpIds - the collection of floatingIp identifierpublic void addListener(FloatingIpListener listener)
FloatingIpServiceaddListener in interface FloatingIpServicelistener - floating Ip listenerpublic void removeListener(FloatingIpListener listener)
FloatingIpServiceremoveListener in interface FloatingIpServicelistener - floating Ip listener