ipPools.deallocateFloatingIp(getProject(), vip.getData().getIp());
}
@POST
public WrappedFloatingIp allocate(FloatingIp template) throws CloudException {
VirtualIpPoolData pool = findPool(template.pool);
if (pool == null) {
throw new IllegalArgumentException();
}
VirtualIp vip = ipPools.allocateFloatingIp(getProject(), pool);