use of org.ovirt.engine.core.common.action.RemoveIscsiBondParameters in project ovirt-engine by oVirt.
the class DataCenterIscsiBondListModel method onRemove.
private void onRemove() {
ConfirmationModel model = (ConfirmationModel) getWindow();
ArrayList<ActionParametersBase> params = new ArrayList<>();
for (Object item : getSelectedItems()) {
params.add(new RemoveIscsiBondParameters(((IscsiBond) item).getId()));
}
model.startProgress();
Frontend.getInstance().runMultipleAction(ActionType.RemoveIscsiBond, params, result -> {
DataCenterIscsiBondListModel localModel = (DataCenterIscsiBondListModel) result.getState();
localModel.stopProgress();
cancel();
}, this);
}
Aggregations