property-based selection of default vcloud datacenter, network, etc

4 views
Skip to first unread message

Adrian Cole

unread,
Jul 22, 2011, 12:25:28 AM7/22/11
to jclou...@googlegroups.com
Hi, team.

vCloud-based apis have a concept of virtual datacenters.  Inside these are a number of networks and such.  Prior to this change, you could select a default network for your VMs to join, but not the datacenter :)

I've taken quite a bit of time to implement and test the ability to change the default org, datacenter, network, etc. and this applies to both ComputeService and provider-specific interfaces of vcloudexpress and vcloud products.  I've tested this by having our tests on trmk-ecloud select between running against miami and amsterdam.

In order to use this, you'll set a regex pattern to VCloudConstants.PROPERTY_VCLOUD_DEFAULT_VDC in the properties object passed to createContext().  For example ".*MIA.*" works in trmk-ecloud, as does ".*AMA.*" for amsterdam.

If you are interested in more, please see the issue here.  This change will be ready for the 1.1.0 release planned for this month.

https://code.google.com/p/jclouds/issues/detail?id=628

Cheers,
-adrian

Adrian Cole

unread,
Jul 22, 2011, 12:30:19 AM7/22/11
to jclou...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages