> +               logger.debug(">> allocating floating IP from pool %s for 
> node(%s)", poolName, nodeID);
> +               ip = floatingIpApi.allocateFromPool(poolName);
> +               if (ip != null){
> +                  break;
> +               }
> +            } catch (InsufficientResourcesException ire){
> +               logger.trace("<< [%s] failed to allocate floating IP from 
> pool %s for node(%s)", ire.getMessage(), poolName, nodeID);
> +            }
> +         }
> +      }
> +      
> +      // 2.) Attempt to allocate, if necessary, via 'create()' call
> +      if (ip == null){
> +         try {
> +            logger.debug(">> creating floating IP for node(%s)", nodeID);
> +            ip = floatingIpApi.create();

Same as above?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/425/files#r14585903

Reply via email to