Removed unused version check DundeePlus. Added Nile version check.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
Konstantina Chremmou 2023-04-11 13:00:33 +01:00
parent 60bb234f7b
commit 26e4731b46

View File

@ -189,11 +189,6 @@ namespace XenAdmin.Core
return platformVersion != null && ProductVersionCompare(platformVersion, "2.0.0") >= 0;
}
public static bool DundeePlusOrGreater(IXenConnection conn)
{
return conn == null || conn.Session == null || conn.Session.APIVersion >= API_Version.API_2_6;
}
/// <summary>
/// Ely platform version is 2.1.1
/// </summary>
@ -481,6 +476,36 @@ namespace XenAdmin.Core
return platformVersion != null && ProductVersionCompare(platformVersion, "3.2.50") >= 0;
}
/// <summary>
/// Nile platform version is 3.4.0
/// </summary>
/// <param name="conn">May be null, in which case true is returned.</param>
public static bool NileOrGreater(IXenConnection conn)
{
return conn == null || NileOrGreater(GetCoordinator(conn));
}
/// <summary>
/// Nile platform version is 3.4.0
/// </summary>
/// <param name="host">May be null, in which case true is returned.</param>
public static bool NileOrGreater(Host host)
{
return host == null || NileOrGreater(HostPlatformVersion(host));
}
/// <summary>
/// Nile platform version is 3.4.0
/// </summary>
public static bool NileOrGreater(string platformVersion)
{
return platformVersion != null && ProductVersionCompare(platformVersion, "3.3.50") >= 0;
}
#endregion
#region Xapi RPM Versions
public static bool XapiEqualOrGreater_1_290_0(IXenConnection conn)
{
var coordinator = GetCoordinator(conn);