use of org.ovirt.engine.core.common.action.AddIscsiBondParameters in project ovirt-engine by oVirt.
the class BackendIscsiBondsResource method add.
@Override
public Response add(IscsiBond iscsiBond) {
validateParameters(iscsiBond, "name");
org.ovirt.engine.core.common.businessentities.IscsiBond entity = getMapper(IscsiBond.class, org.ovirt.engine.core.common.businessentities.IscsiBond.class).map(iscsiBond, null);
entity.setStoragePoolId(dataCenterId);
return performCreate(ActionType.AddIscsiBond, new AddIscsiBondParameters(entity), new QueryIdResolver<Guid>(QueryType.GetIscsiBondById, IdQueryParameters.class));
}
use of org.ovirt.engine.core.common.action.AddIscsiBondParameters in project ovirt-engine by oVirt.
the class IscsiBondModel method addBond.
private void addBond() {
AddIscsiBondParameters params = new AddIscsiBondParameters(createIscsiBond());
startProgress();
Frontend.getInstance().runAction(ActionType.AddIscsiBond, params, result -> {
IscsiBondModel model = (IscsiBondModel) result.getState();
model.stopProgress();
model.cancel();
}, this);
}
Aggregations