diff --git a/XenModel/Utils/Helpers.cs b/XenModel/Utils/Helpers.cs
index 3ca11f24b..335b3fc5d 100755
--- a/XenModel/Utils/Helpers.cs
+++ b/XenModel/Utils/Helpers.cs
@@ -413,6 +413,24 @@ namespace XenAdmin.Core
platform_version != null && productVersionCompare(platform_version, "2.2.50") >= 0;
}
+ /// May be null, in which case true is returned.
+ public static bool InvernessOrGreater(IXenConnection conn)
+ {
+ return conn == null || InvernessOrGreater(Helpers.GetMaster(conn));
+ }
+
+ /// Inverness is ver. 2.4.0
+ /// May be null, in which case true is returned.
+ 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;
+ }
+
///
/// Cream (Creedence SP1) has API version 2.4
///