use of org.ovirt.engine.core.common.action.ExternalSubnetParameters in project ovirt-engine by oVirt.
the class BackendOpenStackSubnetResource method remove.
@Override
public Response remove() {
ExternalSubnet subnet = lookupSubnetById(id);
if (subnet != null) {
ExternalSubnetParameters parameters = new ExternalSubnetParameters();
parameters.setSubnet(subnet);
return performAction(ActionType.RemoveSubnetFromProvider, parameters);
}
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
use of org.ovirt.engine.core.common.action.ExternalSubnetParameters in project ovirt-engine by oVirt.
the class RemoveExternalSubnetModel method onRemove.
private void onRemove() {
ArrayList<ActionParametersBase> list = new ArrayList<>();
for (ExternalSubnet subnet : getSubnets()) {
ActionParametersBase parameters = new ExternalSubnetParameters(subnet);
list.add(parameters);
}
startProgress();
Frontend.getInstance().runMultipleAction(ActionType.RemoveSubnetFromProvider, list, false, result -> {
stopProgress();
sourceListModel.getSearchCommand().execute();
cancel();
}, null);
}
Aggregations