Hi,
Yes, a factory model is advised, this is how I've got it going within
VCloudNodeDriver class where VCloud_1_5_Driver extends
VCloudNodeDriver:
def __new__(cls, key, secret=None, secure=True, host=None, port=None,
api_version=DEFAULT_API_VERSION, **kwargs):
if cls is VCloudNodeDriver:
if str(api_version) == '0.8':
cls = VCloudNodeDriver
elif str(api_version) == '1.5':
cls = VCloud_1_5_Driver
else:
raise NotImplementedError(
"No VCloudNodeDriver found for API version %s" %
(api_version))
return super(VCloudNodeDriver, cls).__new__(cls)
In addition to the above you'd need to add the following within the
DRIVERS definition in providers.py (you probably have something
similar already):
Provider.VCLOUD:
('libcloud.compute.drivers.vcloud', 'VCloudNodeDriver'),
On 6 April 2012 21:32, Galet, Michal <[email protected]> wrote:
> Yes, it is compatible with vanilla deployments of vCloud Director v1.5. The
> driver is fully implemented except for Reservation Pool model
> where you can specify sizing of the new node (we didn't need this). Should be
> easy to extend the implementation to support this.
>
> I implemented the v1.5 support as a separate driver but I guess it should be
> implemented inside a single driver using api_version parameter.
>
> -----Original Message-----
> From: Sengor [mailto:[email protected]]
> Sent: Friday, April 06, 2012 12:53 PM
> To: [email protected]
> Subject: Re: [dev] Contribute compute driver for vCloud 1.5
>
> Hi,
>
> Yes that'd be great. I was in the process of implementing something
> similar... Would your driver be compatible with vanilla deployments of vCloud
> Director v1.5?
>
> To contribute you'd normally need to open a new Jira ticket @
> https://issues.apache.org/jira/browse/LIBCLOUD
>
>
> On 6 April 2012 17:44, Galet, Michal <[email protected]> wrote:
>> Hi all,
>>
>> in our company we implemented a libcloud compute driver for the recent
>> vCloud 1.5 API. We would love to contribute the implementation to the
>> community.
>>
>> The implementation is similar to the 0.8 version however it might be a bit
>> focused to our needs inside private cloud.
>>
>> I noticed that some users already asked for this:
>> http://communities.vmware.com/thread/302725
>>
>> Would you be interested in such contribution?
>>
>> Kind regards,
>> Michal Galet
>>
>> NOTICE: This email and any attachments may contain confidential and
>> proprietary information of NetSuite Inc. and is for the sole use of the
>> intended recipient for the stated purpose. Any improper use or distribution
>> is prohibited. If you are not the intended recipient, please notify the
>> sender; do not review, copy or distribute; and promptly delete or destroy
>> all transmitted information. Please note that all communications and
>> information transmitted through this email system may be monitored by
>> NetSuite or its agents and that all incoming email is automatically scanned
>> by a third party spam and filtering service.
>
>
>
> --
> sengork
>
> NOTICE: This email and any attachments may contain confidential and
> proprietary information of NetSuite Inc. and is for the sole use of the
> intended recipient for the stated purpose. Any improper use or distribution
> is prohibited. If you are not the intended recipient, please notify the
> sender; do not review, copy or distribute; and promptly delete or destroy all
> transmitted information. Please note that all communications and information
> transmitted through this email system may be monitored by NetSuite or its
> agents and that all incoming email is automatically scanned by a third party
> spam and filtering service.
--
sengork