Search in sources :

Example 1 with AddVolumesToExport

use of com.emc.sa.service.vipr.block.tasks.AddVolumesToExport in project coprhd-controller by CoprHD.

the class BlockStorageUtils method addVolumesToExport.

public static void addVolumesToExport(Collection<URI> volumeIds, Integer hlu, URI exportId, Map<URI, Integer> volumeHlus, Integer minPaths, Integer maxPaths, Integer pathsPerInitiator, URI portGroup) {
    Task<ExportGroupRestRep> task = execute(new AddVolumesToExport(exportId, volumeIds, hlu, volumeHlus, minPaths, maxPaths, pathsPerInitiator, portGroup));
    addRollback(new RemoveBlockResourcesFromExport(exportId, volumeIds));
    addAffectedResource(task);
}
Also used : ExportGroupRestRep(com.emc.storageos.model.block.export.ExportGroupRestRep) AddVolumesToExport(com.emc.sa.service.vipr.block.tasks.AddVolumesToExport) RemoveBlockResourcesFromExport(com.emc.sa.service.vipr.block.tasks.RemoveBlockResourcesFromExport)

Aggregations

AddVolumesToExport (com.emc.sa.service.vipr.block.tasks.AddVolumesToExport)1 RemoveBlockResourcesFromExport (com.emc.sa.service.vipr.block.tasks.RemoveBlockResourcesFromExport)1 ExportGroupRestRep (com.emc.storageos.model.block.export.ExportGroupRestRep)1