mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
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:
parent
dba6fe1c9e
commit
0a5c4c76c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user