mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Add InvernessOrGreater
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
76b3c05b9a
commit
50dadf4ec6
@ -413,6 +413,24 @@ namespace XenAdmin.Core
|
|||||||
platform_version != null && productVersionCompare(platform_version, "2.2.50") >= 0;
|
platform_version != null && productVersionCompare(platform_version, "2.2.50") >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <param name="conn">May be null, in which case true is returned.</param>
|
||||||
|
public static bool InvernessOrGreater(IXenConnection conn)
|
||||||
|
{
|
||||||
|
return conn == null || InvernessOrGreater(Helpers.GetMaster(conn));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Inverness is ver. 2.4.0
|
||||||
|
/// <param name="host">May be null, in which case true is returned.</param>
|
||||||
|
public static bool InvernessOrGreater(Host host)
|
||||||
|
{
|
||||||
|
if (host == null)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
string platform_version = HostPlatformVersion(host);
|
||||||
|
return
|
||||||
|
platform_version != null && productVersionCompare(platform_version, "2.3.50") >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cream (Creedence SP1) has API version 2.4
|
/// Cream (Creedence SP1) has API version 2.4
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user