Search in sources :

Example 1 with InternalImportExternalNetworkParameters

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);
}
Also used : ActionReturnValue(org.ovirt.engine.core.common.action.ActionReturnValue) InternalImportExternalNetworkParameters(org.ovirt.engine.core.common.action.InternalImportExternalNetworkParameters)

Aggregations

ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)1 InternalImportExternalNetworkParameters (org.ovirt.engine.core.common.action.InternalImportExternalNetworkParameters)1