Disallow CHC connection with Havana

Signed-off-by: Ji Jiang <ji.jiang@citrix.com>
This commit is contained in:
Ji Jiang 2021-03-02 13:34:05 +00:00 committed by Konstantina Chremmou
parent ab614e4669
commit 7b63b58622
3 changed files with 5 additions and 6 deletions

View File

@ -973,16 +973,15 @@ namespace XenAdmin
return;
}
// Allow Citrix Hypervisor Center connect to Havana, Stockholm and cloud released CH only
// Allow Citrix Hypervisor Center connect to Stockholm and cloud released versions only
//
if ((int)API_Version.LATEST >= (int)API_Version.API_2_16
&& !Helpers.StockholmOrGreater(master) && !Helpers.HavanaOrGreater(master))
if ((int)API_Version.LATEST >= (int)API_Version.API_2_16 && !Helpers.StockholmOrGreater(master))
{
connection.EndConnect();
Program.Invoke(Program.MainWindow, delegate
{
var msg = string.Format(Messages.GUI_NOT_COMPATIBLE, BrandManager.LegacyProduct, Helpers.GetName(master));
var msg = string.Format(Messages.GUI_NOT_COMPATIBLE, Helpers.GetName(master));
var url = InvisibleMessages.OUT_OF_DATE_WEBSITE;
var title = string.Format(Messages.CONNECTION_REFUSED_TITLE, Helpers.GetName(master).Ellipsise(80));
var error = $"{msg}\n{url}";

View File

@ -17918,7 +17918,7 @@ namespace XenAdmin {
}
/// <summary>
/// Looks up a localized string similar to This version of [XenCenter] can only connect to {0} 7.1 CU2, [XenServer] 8.2, and greater versions. It cannot connect to {1}.
/// Looks up a localized string similar to This version of [XenCenter] can only connect to [XenServer] 8.2 and greater versions. It cannot connect to {0}.
///
///You can get a compatible version of [XenCenter] from the following location:.
/// </summary>

View File

@ -6251,7 +6251,7 @@ Note: Any custom color selections will remain unchanged</value>
<value>UEFI &amp;Secure Boot</value>
</data>
<data name="GUI_NOT_COMPATIBLE" xml:space="preserve">
<value>This version of [XenCenter] can only connect to {0} 7.1 CU2, [XenServer] 8.2, and greater versions. It cannot connect to {1}.
<value>This version of [XenCenter] can only connect to [XenServer] 8.2 and greater versions. It cannot connect to {0}.
You can get a compatible version of [XenCenter] from the following location:</value>
</data>