Search in sources :

Example 1 with CreateVGVDSCommandParameters

use of org.ovirt.engine.core.common.vdscommands.CreateVGVDSCommandParameters in project ovirt-engine by oVirt.

the class AddSANStorageDomainCommand method createVG.

private String createVG() {
    VDSReturnValue returnValue = runVdsCommand(VDSCommandType.CreateVG, new CreateVGVDSCommandParameters(getVds().getId(), getStorageDomain().getId(), getParameters().getLunIds(), getParameters().isForce()));
    String volumeGroupId = (String) ((returnValue.getReturnValue() instanceof String) ? returnValue.getReturnValue() : null);
    return volumeGroupId;
}
Also used : CreateVGVDSCommandParameters(org.ovirt.engine.core.common.vdscommands.CreateVGVDSCommandParameters) VDSReturnValue(org.ovirt.engine.core.common.vdscommands.VDSReturnValue)

Aggregations

CreateVGVDSCommandParameters (org.ovirt.engine.core.common.vdscommands.CreateVGVDSCommandParameters)1 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1