Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-860

.templateOptions.networks("..") does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • jclouds-labs-google
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yaronr Yaron Rosenbaum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: