asyncTasks.detachFloatingIp(project, instance, new VirtualIp(vip.getPoolData(), updated));
}
public VirtualIp allocateFloatingIp(Project project, VirtualIpPoolData poolData) throws CloudException {
NetworkPool pool = networkPools.buildPool(poolData);
NetworkPoolAllocation allocation = networkPools.allocateIp(project, pool);
return ((MappableIpNetworkPool.Allocation) allocation).getVirtualIp();
}