CA-110447 Updating the pool-join rules so that we do not allow a licensed host to join an unlicensed pool

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2013-07-01 16:48:22 +01:00
parent a7186ee4e6
commit b6a8845bd0

View File

@ -409,6 +409,13 @@ namespace XenAdmin.Core
private static bool PaidHostFreeMaster(Host slave, Host master)
{
if (slave == null || master == null)
return false;
// Is using per socket generation licenses?
if (Helpers.ClearwaterOrGreater(slave) && Helpers.ClearwaterOrGreater(master))
return !slave.IsFreeLicense() && master.IsFreeLicense();
return (slave.IsFloodgateOrLater() && master.IsFloodgateOrLater() &&
!Host.RestrictHAFloodgate(slave) && Host.RestrictHAFloodgate(master));
}