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 Sun, 05 Oct 2014 16:48:03 GMT
> +
> +   @Inject
> +   public FirewallRuleToIpPermission(Map<FirewallIpProtocol, IpProtocol> firewallIpProtocolToIpProtocol)
{
> +      this.firewallIpProtocolToIpProtocol = checkNotNull(firewallIpProtocolToIpProtocol,
> +            "firewallIpProtocolToIpProtocol");
> +   }
> +
> +   @Override
> +   public IpPermission apply(FirewallRule input) {
> +      IpPermission.Builder permissionBuilder = new IpPermission.Builder();
> +      String destinationPort = input.getDestinationPort();
> +      if (destinationPort != null) {
> +         if (destinationPort.contains("!")) {
> +            destinationPort = destinationPort.substring(destinationPort.indexOf("!")
+ 1,
> +                  destinationPort.length());
> +         }

Working on this right now.

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