CA-289335: If there is no other network available, pick the management network for the migration of VDIs.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-06-06 15:16:31 +01:00 committed by Mihaela Stoica
parent 14aa3f3f5d
commit 57ab2ced2b

View File

@ -31,6 +31,7 @@
using System.Collections.Generic;
using XenAdmin.Controls;
using System.Linq;
using XenAPI;
namespace XenAdmin.Wizards.CrossPoolMigrateWizard
@ -93,6 +94,9 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard
public override void PopulatePage()
{
networkComboBox.PopulateComboBox(Connection, item => !item.IsManagement);
if (networkComboBox.SelectedItem == null)
networkComboBox.SelectedItem = networkComboBox.Items.Cast<NetworkComboBoxItem>().FirstOrDefault(item => item.IsManagement);
}
public KeyValuePair<string, string> NetworkUuid