[
https://issues.apache.org/jira/browse/JCLOUDS-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13872645#comment-13872645
]
Zack Shoylev commented on JCLOUDS-416:
--------------------------------------
Here is an example of how to use the template options with Rackspace:
Template template = computeService.templateBuilder()
.locationId("DFW")
.osFamily(OsFamily.UBUNTU)
.osVersionMatches("12.04")
.minRam(1024)
.options(TemplateOptions.Builder.networks("00000000-0000-0000-0000-000000000000"))
.build();
Here an instance will be created with only a PublicNet link (the uuid
00000000-0000-0000-0000-000000000000 is PublicNet and
11111111-1111-1111-1111-111111111111 is ServiceNet). You can also create your
own cloud networks and list them in the TemplateOptions as needed.
The rest of the code would be similar to
https://github.com/jclouds/jclouds-examples/blob/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudservers/CreateServer.java
> TemplateBuilder is lacking network id support
> ---------------------------------------------
>
> Key: JCLOUDS-416
> URL: https://issues.apache.org/jira/browse/JCLOUDS-416
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute
> Affects Versions: 1.7.0
> Reporter: Izek Greenfield
> Assignee: Andrew Bayer
> Labels: features, openstack, rackspace
> Fix For: 1.8.0, 1.7.1
>
>
> You can choose which network to assign to the new VM (Rackspace).
> need to add public and internal networks.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)