> - 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));
This is a weird thing we are doing to track firewall rules. I hope it gets refactored out in the future. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/86/files#r20059820