use of org.ovirt.engine.core.common.action.InternalImportExternalNetworkParameters in project ovirt-engine by oVirt.
the class ImportExternalNetworkCommand method executeCommand.
@Override
protected void executeCommand() {
InternalImportExternalNetworkParameters parameters = new InternalImportExternalNetworkParameters(getProvider().getName(), getNetwork(), getParameters().getDataCenterId(), getParameters().isPublicUse(), getParameters().isAttachToAllClusters());
ActionReturnValue returnValue = runInternalAction(ActionType.InternalImportExternalNetwork, parameters, getContext().clone().withoutLock());
if (!returnValue.getSucceeded()) {
propagateFailure(runInternalAction(ActionType.InternalImportExternalNetwork, parameters));
return;
}
getReturnValue().setActionReturnValue(returnValue.getActionReturnValue());
setSucceeded(true);
}
Aggregations