> -         instanceTemplate.addNetworkInterface(options.getNetwork().get(), 
> Type.ONE_TO_ONE_NAT);
> -      } else {
> -         instanceTemplate.addNetworkInterface(options.getNetwork().get());
> +      NewInstance newInstance = NewInstance.create(
> +            hardware.getUri(), // machineType
> +            name, // name
> +            options.network(), // network
> +            disks, // disks
> +            group // description
> +      );
> +
> +      // Add tags from template and for security groups
> +      newInstance.tags().items().addAll(options.getTags());
> +      FirewallTagNamingConvention naming = 
> firewallTagNamingConvention.get(group);
> +      for (int port : options.getInboundPorts()) {
> +         newInstance.tags().items().add(naming.name(port));

Is this some kind of "convenience tagging" or something GCE already does?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/86/files#r20059777

Reply via email to