]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: Simplify VI (vSphere) API and VMware product version handling
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 18 Oct 2014 22:11:13 +0000 (00:11 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 8 Nov 2014 14:35:36 +0000 (15:35 +0100)
commit0396394f027edb5fa70514a0d11fa62ea7281bd9
treef5996d46dbb0bff3a35b8670f90b1cf214fd6797
parent01b4de2b9f5ca821e341166210161f53552f5d60
esx: Simplify VI (vSphere) API and VMware product version handling

Store version numbers in this format

version = 1000000 * major + 1000 * minor + micro

produced by virParseVersionString instead of dedicated enums.

Split the complex esxVI_ProductVersion enum into a simpler
esxVI_ProductLine enum and a product version number.

Relax API and product version number checks to accept everything that
is equal or greater than the supported minimum version. VMware ESX
went through 3 major versions and the vSphere API always stayed
backward compatible. This commit assumes that this will also be true
for future VMware ESX versions.

Also reword error messages in esxConnectTo* to say what was expected
and what was found instead (suggested by Richard W.M. Jones).
src/esx/esx_driver.c
src/esx/esx_vi.c
src/esx/esx_vi.h