Hosts main tab -> NICs sub-tab:
- Edit/Add Vlan (dialog)
- Edit Management Network (dialog)
- Bond (dialog)
- Detach, Save network config, Refresh (confirmation/non-dialog)
Pre-integration ticket https://trac.qa.lab.tlv.redhat.com/trac/integration/ticket/458
Edit/Add Vlan = HostInterfaceView.xaml
Edit Management Network = HostManagementNetworkView.xaml
Bond = HostBondView.xaml
This bug is currently blocked by HostInterfaceListModel setItems() issue. UpdateItems() creates List<HostInterfaceLineModel> from List<VdsNetworkInterface> and calls setItems(newList), which causes ClassCastException in SearchableListModel.setItems(), since HostInterfaceLineModel is not IVdcQueryable.
Furthermore, it looks like HostInterfaceListModel treats "items" as collection of HostInterfaceLineModel, and "selectedItem" / "selectedItems" as VdsNetworkInterface. Our application assumes "items" are of same type as "selectedItem" / "selectedItems" and this causes another ClassCastException. HostInterfaceListModel should treat all items consistently.
All issues related to HostInterfaceListModel items & selection have been resolved (by adapting to the custom item handling behavior).
It is now possible to select rows in Host NIC table, with commands (action buttons) changing their "enabled" state appropriately according to selection.
Update: Based on discussion with Gilad, Host NIC table will be, most likely, implemented as form-based sub tab, because it doesn't really fit the typical table widget strategy.
- auto refresh will be disabled for HostInterfaceListModel
- each refresh will clear any previous selections
closing ON_QA bugs as oVirt 3.1 was released: