mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26b5805852
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 |
||
---|---|---|
.. | ||
atmos | ||
aws | ||
bare_metal_cloud | ||
bin | ||
bluebox | ||
brightbox | ||
clodo | ||
cloudstack | ||
compute/models | ||
core | ||
dnsimple | ||
dnsmadeeasy | ||
dynect | ||
ecloud | ||
glesys | ||
go_grid | ||
hp | ||
ibm | ||
joyent | ||
libvirt | ||
linode | ||
local | ||
ninefold | ||
openstack | ||
ovirt | ||
rackspace | ||
serverlove | ||
storm_on_demand | ||
terremark | ||
vcloud | ||
virtual_box | ||
vmfusion | ||
voxel | ||
vsphere | ||
xenserver | ||
zerigo | ||
atmos.rb | ||
aws.rb | ||
bare_metal_cloud.rb | ||
bin.rb | ||
bluebox.rb | ||
brightbox.rb | ||
cdn.rb | ||
clodo.rb | ||
cloudstack.rb | ||
compute.rb | ||
core.rb | ||
dns.rb | ||
dnsimple.rb | ||
dnsmadeeasy.rb | ||
dynect.rb | ||
ecloud.rb | ||
glesys.rb | ||
go_grid.rb | ||
google.rb | ||
hp.rb | ||
ibm.rb | ||
identity.rb | ||
image.rb | ||
joyent.rb | ||
libvirt.rb | ||
linode.rb | ||
local.rb | ||
network.rb | ||
ninefold.rb | ||
openstack.rb | ||
ovirt.rb | ||
providers.rb | ||
rackspace.rb | ||
serverlove.rb | ||
storage.rb | ||
storm_on_demand.rb | ||
terremark.rb | ||
vcloud.rb | ||
version.rb | ||
virtual_box.rb | ||
vmfusion.rb | ||
volume.rb | ||
voxel.rb | ||
vsphere.rb | ||
xenserver.rb | ||
zerigo.rb |