mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #1568 from MihaelaStoica/InvernessOrGreater
Add InvernessOrGreater
This commit is contained in:
commit
568b4c0de5
@ -413,6 +413,24 @@ namespace XenAdmin.Core
|
||||
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>
|
||||
/// Cream (Creedence SP1) has API version 2.4
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user