CA-306864: Allow adding hosts to a pool where the cluster network is a VLAN on top of a bond

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2019-01-09 15:04:36 +00:00 committed by Konstantina Chremmou
parent dba6fe1c9e
commit 0a5c4c76c5

View File

@ -699,6 +699,19 @@ namespace XenAdmin.Core
if (clusterHostPif == null)
return true;
// if this PIF is a VLAN, then use the tagged_PIF field of the VLAN
if (clusterHostPif.VLAN >= 0)
{
var vlan = masterConnection.Resolve(clusterHostPif.VLAN_master_of);
if (vlan != null)
{
var taggedPif = masterConnection.Resolve(vlan.tagged_PIF);
if (taggedPif != null)
clusterHostPif = taggedPif;
}
}
clusterHostInBond = clusterHostPif.IsBondNIC();
var pifsWithIPAddress = 0;