1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog
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
..
atmos [atmos] Updates reference to service 2013-01-07 20:53:24 +00:00
aws Merge pull request #1469 from davetchen/master 2013-01-14 13:54:42 -08:00
bare_metal_cloud
bin
bluebox [bluebox] Updates reference to service 2013-01-07 20:53:27 +00:00
brightbox [Brightbox] Updates reference to service 2013-01-07 20:53:27 +00:00
clodo [clodo] Updates reference to service 2013-01-07 20:53:27 +00:00
cloudstack [cloudstack] Updates reference to service 2013-01-07 20:53:28 +00:00
compute/models Move ssh private_key, public_key, username to Server model to reduce duplication 2012-10-31 12:31:49 +01:00
core Merge branch 'master' of github.com:fog/fog into debug_logging 2013-01-14 10:20:48 -06:00
dnsimple [dnsimple] Updates reference to service 2013-01-07 20:53:28 +00:00
dnsmadeeasy [dns_made_easy|dns] Updates reference to service 2013-01-07 20:53:28 +00:00
dynect [dynect|dns] Updates reference to service 2013-01-07 20:53:28 +00:00
ecloud [rackspace] compute_v2 and blockstorage are mocked 2013-01-11 21:21:18 -05:00
glesys [glesys|compute] Updates reference to service 2013-01-07 21:01:13 +00:00
go_grid [go_grid|compute] Updates reference to service 2013-01-07 21:01:13 +00:00
google [google|storage] Updates reference to service 2013-01-07 21:01:13 +00:00
hp [hp] Updates reference to service 2013-01-07 21:01:13 +00:00
ibm [ibm] Updates reference to service 2013-01-07 21:01:14 +00:00
joyent [joyent|compute] Updates reference to service 2013-01-07 21:01:14 +00:00
libvirt [libvirt|compute] Updates reference to service 2013-01-07 21:01:15 +00:00
linode [linode] Updates reference to service 2013-01-07 20:53:28 +00:00
local [local|storage] Updates reference to service 2013-01-07 21:01:16 +00:00
ninefold [ninefold|compute] Updates reference to service 2013-01-07 21:01:17 +00:00
openstack Merge pull request #1396 from kanetann/master 2013-01-12 18:49:06 -08:00
ovirt [ovirt|compute] Updates reference to service 2013-01-07 21:01:19 +00:00
rackspace Merge pull request #1470 from rackspace/image_obj 2013-01-14 15:20:34 -08:00
serverlove [serverlove|compute] Updates reference to service 2013-01-07 21:01:21 +00:00
storm_on_demand [storm_on_demand] Updates reference to service 2013-01-07 21:01:21 +00:00
terremark [terremark] Updates reference to service 2013-01-07 21:01:22 +00:00
vcloud [vcloud|compute] Updates reference to service 2013-01-07 21:01:23 +00:00
virtual_box [virtual_box|compute] Updates reference to service 2013-01-07 21:01:23 +00:00
vmfusion [vmfusion] Updates reference to service 2013-01-07 21:01:23 +00:00
voxel [voxel|compute] Updates reference to service 2013-01-07 21:01:23 +00:00
vsphere vsphere: Support multiple NIC backings 2013-01-15 13:08:03 +01:00
xenserver [xenserver] replace #connection with #service in models 2013-01-08 00:14:13 +01:00
zerigo [zerigo|dns] Updates reference to service 2013-01-07 21:01:25 +00:00
atmos.rb
aws.rb Introduce AWS::COMPLIANT_BUCKET_NAMES constant 2012-12-05 21:12:25 +01:00
bare_metal_cloud.rb
bin.rb
bluebox.rb
brightbox.rb
cdn.rb
clodo.rb
cloudstack.rb
compute.rb reverted back to version 1 of the Rackspace compute interface along with a deprecation warning 2012-12-20 15:26:06 -06:00
core.rb [core] Splits Fog::VERSION into own file 2012-11-27 16:30:40 +00:00
dns.rb
dnsimple.rb
dnsmadeeasy.rb
dynect.rb
ecloud.rb [ecloud] improvements and some mocking 2013-01-04 13:50:05 -05:00
glesys.rb
go_grid.rb
google.rb
hp.rb [hp] Updates reference to service 2013-01-07 21:01:13 +00:00
ibm.rb
identity.rb
image.rb
joyent.rb
libvirt.rb
linode.rb
local.rb
network.rb
ninefold.rb
openstack.rb Merge pull request #1361 from dprince/auth_improvements 2012-12-10 19:43:04 -08:00
ovirt.rb
providers.rb
rackspace.rb [rackspace] Moved methods to MockData module 2013-01-14 10:03:37 -05:00
serverlove.rb
storage.rb
storm_on_demand.rb
terremark.rb
vcloud.rb
version.rb remove const_defined? guard 2012-12-06 11:34:28 +00:00
virtual_box.rb
vmfusion.rb
volume.rb
voxel.rb
vsphere.rb
xenserver.rb [xenserver] Use Nokogiri instead of slow REXML for parsing 2013-01-04 05:41:28 +01:00
zerigo.rb