xenapi:populating hypervisor version in host state

This will be used in the scheduler to compare it to the image
properties.
Pulled out conversion of version string into integer to utils.
Partially implements blueprint xen-support-for-hypervisor-versions

Change-Id: Ib2eb91f6f18af6d39f9381daeff7ba9a24b4785a
This commit is contained in:
Aarti Kriplani
2013-07-15 10:53:10 +05:30
parent 4c9ec4caa5
commit 49edcb0e73

View File

@@ -1131,3 +1131,7 @@ def is_none_string(val):
return False
return val.lower() == 'none'
def convert_version_to_int(version):
return version[0] * 1000000 + version[1] * 1000 + version[2]