You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Izek Greenfield (JIRA)" <ji...@apache.org> on 2014/01/06 08:16:54 UTC

[jira] [Comment Edited] (JCLOUDS-416) TemplateBuilder is lacking network id support

    [ https://issues.apache.org/jira/browse/JCLOUDS-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13862825#comment-13862825 ] 

Izek Greenfield edited comment on JCLOUDS-416 at 1/6/14 7:16 AM:
-----------------------------------------------------------------

Hi,

I am try to do something like this:

   val modules = ImmutableSet.of(new ExecutorServiceModule(sameThreadExecutor(),     sameThreadExecutor()))

    val context = ContextBuilder.newBuilder("rackspace-cloudservers-us")
         .credentials("myUsername", "myApiKey")
         .modules(modules)
         .buildView(classOf[ComputeServiceContext])

    val compute = context.getComputeService()

    compute.createNodesInGroup("test_jclouds",1, compute.templateBuilder().smallest().networks(Lists.newArrayList("id1","id2")).build())


was (Author: igreenfi):
Hi,

I am try to do something like this:

val modules = ImmutableSet.of(new ExecutorServiceModule(sameThreadExecutor(), sameThreadExecutor()))

    val context = ContextBuilder.newBuilder("rackspace-cloudservers-us")
      .credentials("myUsername", "myApiKey")
      .modules(modules)
      .buildView(classOf[ComputeServiceContext])

    val compute = context.getComputeService()

    compute.createNodesInGroup("test_jclouds",1, compute.templateBuilder().smallest().networks(Lists.newArrayList("id1","id2")).build())

> 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
>              Labels: features, openstack, rackspace
>
> 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)