mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 12:30:50 +01:00
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:
parent
a7186ee4e6
commit
b6a8845bd0
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user