Yaron Rosenbaum created JCLOUDS-860:
---------------------------------------

             Summary: .templateOptions.networks("..") does not work
                 Key: JCLOUDS-860
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-860
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-labs-google
    Affects Versions: 2.0.0
            Reporter: Yaron Rosenbaum


I pre-created a newrok on gce, called "multicloud".
It lists when ....unwrapApi(GoogleComputeEngineApi.class).networks().list();
It's name is 'multicloud', id is '18175...15972', and 
selfLink=https://www.googleapis.com/compute/v1/projects/multicloud-something/global/networks/multicloud

I would like my nodes to be on this network.
I tried a number of variations:
getComputeService().templateOptions().networks("multicloud")
.networks("18175...15972")

and the same with:
getComputeService().templateOptions().as(GoogleComputeEngineTemplateOptions.class).networks(...)

Doesn't work, the default jClouds network is created / used.

The only thing that DOES work, is:
etComputeService().templateOptions().as(GoogleComputeEngineTemplateOptions.class).network(new
 
URI("https://www.googleapis.com/compute/v1/projects/multicloud-../global/networks/multicloud";));

IMO this is a bug, but I can't be sure because there's no documentation.
So double the bug :)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to