if (ip == null || ip.isEmpty()) {
FloatingIP allocatedFloatingIP = floatingIp.create();
if (allocatedFloatingIP == null) {
String msg = "Failed to allocate an IP address.";
log.error(msg);
throw new CloudControllerException(msg);
}
ip = allocatedFloatingIP.getIp();
}
// wait till the fixed IP address gets assigned - this is needed before