mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-24 22:06:59 +01:00
Added JuraOrGreater function
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
ea1e26d062
commit
8ab61cf12e
@ -398,6 +398,24 @@ namespace XenAdmin.Core
|
||||
platform_version != null && productVersionCompare(platform_version, "2.3.50") >= 0;
|
||||
}
|
||||
|
||||
/// <param name="conn">May be null, in which case true is returned.</param>
|
||||
public static bool JuraOrGreater(IXenConnection conn)
|
||||
{
|
||||
return conn == null || JuraOrGreater(Helpers.GetMaster(conn));
|
||||
}
|
||||
|
||||
/// Jura is ver. 2.5.0
|
||||
/// <param name="host">May be null, in which case true is returned.</param>
|
||||
public static bool JuraOrGreater(Host host)
|
||||
{
|
||||
if (host == null)
|
||||
return true;
|
||||
|
||||
string platform_version = HostPlatformVersion(host);
|
||||
return
|
||||
platform_version != null && productVersionCompare(platform_version, "2.4.50") >= 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cream (Creedence SP1) has API version 2.4
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user