jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kulakov <notificati...@github.com>
Subject Re: [jclouds-labs] CloudSigma2 ComputeService and SecurityGroupExtension (#70)
Date Thu, 02 Oct 2014 22:48:55 GMT
> +            permissionBuilder.toPort(Integer.parseInt(destinationPort));
> +         }
> +      }
> +      permissionBuilder.ipProtocol(input.getIpProtocol() != null ? firewallIpProtocolToIpProtocol.get(input
> +            .getIpProtocol()) : IpProtocol.UNRECOGNIZED);
> +      if (input.getSourceIp() != null) {
> +         permissionBuilder.cidrBlock(input.getSourceIp().contains("!") ? "0.0.0.0/0"
: input.getSourceIp());
> +      } else {
> +         permissionBuilder.cidrBlock("0.0.0.0/0");
> +      }
> +      return permissionBuilder.build();
> +   }
> +
> +   private int[] parsePort(String portRange) {
> +      int[] ports = new int[2];
> +      String[] portStringsArray = portRange.split(":");

@demobox You mean to rename variable?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/70/files#r18372959
Mime
View raw message