Merge pull request #62 from MihaelaStoica/CA-109242

CA-109242: When a network has no PIF on a host, don't list it in that ho...
This commit is contained in:
Gabor Apati-Nagy 2014-05-01 23:31:20 +01:00
commit c487f32189

View File

@ -341,7 +341,8 @@ namespace XenAdmin.Controls.NetworkingTab
List<NetworkRow> networkRowsToAdd = new List<NetworkRow>();
for (int i = 0; i < networks.Length; i++)
{
if (!networks[i].Show(XenAdmin.Properties.Settings.Default.ShowHiddenVMs))
if (!networks[i].Show(XenAdmin.Properties.Settings.Default.ShowHiddenVMs) ||
Helpers.FindPIF(networks[i], XenObject as Host) == null)
continue;
networkRowsToAdd.Add(new NetworkRow(networks[i], XenObject));
}