1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

14 commits

Author SHA1 Message Date
Michael Moll
2041c0fd5d [vsphere] expose VM virtual hardware version 2014-05-29 15:16:43 +02:00
Paul Thornthwaite
6716f37c5f Replace deprecated Hash methods
Done with `rubocop --auto-correct --only DeprecatedHashMethods`
2014-05-26 16:22:08 +01:00
Paul Thornthwaite
2e0b7e545a Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01:00
geemus
6d2c2d0575 [vsphere] check for string true/false instead of boolean
closes #2857
2014-04-17 08:40:31 -05:00
Paul Thornthwaite
be698994b8 [Vsphere] Isolate helper from core
`Fog.class_from_string` was moved to core but is only used by the
VSphere provider with very little capacity for reuse.

This moves it to the `Fog::Vsphere` namespace so we can delete it from
core.
2014-03-25 17:22:21 +00:00
Paul Thornthwaite
8483a599f2 Remove trailing whitespace 2014-02-19 12:30:59 +00:00
Kevin Menard
e194943eb7 Merge pull request #2314 from MarcGrimme/storagectrl_type
[vSphere] Implementation of feature to specify scsi_controller type at create time
2013-11-05 10:20:23 -08:00
Kevin Menard
020436595a [vsphere|compute] Added the ability to create and destroy new volumes. 2013-10-28 17:57:55 -04:00
Marc Grimme
a6916ade0b [vSphere] Implementation of feature to specify scsi_controller type at create type and also support the attribute scsi_controller to return the right class. 2013-10-24 08:41:05 +02:00
Marc Grimme
e8f71c671d [vSphere] Implemented feature to specify a socket cpu layout as specified in vmware API. If not used numCoresPerSocket is left out and default VMware behaviour is used.
[vSphere] also fixed bug in vm_reconfig_memory: wrong memory value passed to reconfig_hardware (memory in bytes instead of memory in MB).
2013-10-21 15:07:24 +02:00
Marc Grimme
3f60613cd6 [vSphere] Support passing of a distributed switch for each interface. 2013-09-27 10:15:31 +02:00
Ewoud Kohl van Wijngaarden
26b5805852 vsphere: Support multiple NIC backings
A bit of background: currently fog supports Network[1], but there's also
DistributedVirtualPortgroup[2] which extends Network.

With this commit create_vm tries to detect if the network is a
DistributedVirtualPortgroup. If it is it will create the appropriate backing
(VirtualEthernetCardDistributedVirtualPortBackingInfo[3]). If it's not it will
fall back to the regular backing (VirtualEthernetCardNetworkBackingInfo[4]).

Known issues:
* It is possible for an administrator to assign network permissions to a
  DistributedVirtualPortgroup[2], but not to the DistributedVirtualSwitch[5].
  In that case you can't read its UUID and it fails with an exception.

[1]: http://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.Network.html
[2]: http://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.dvs.DistributedVirtualPortgroup.html
[3]: https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo.html
[4]: https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.vm.device.VirtualEthernetCard.NetworkBackingInfo.html
[5]: https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.DistributedVirtualSwitch.html
2013-01-15 13:08:03 +01:00
Ohad Levy
847d5aa497 [vsphere] allow to create a vm with multiple disks.
unitNumber has to be unique.
2012-12-27 16:55:32 +02:00
Ohad Levy
b70e972a58 VMWare vsphere provider refactor
missing:
- new model tests
- templates model
- clone

this patch includes a lot of changes and cleanups, exposing more fog
collections/models and rewriting most requests
it includes valuable feedback from endzyme <nick.huanca@gmail.com>
2012-11-14 15:31:02 +02:00