Search in sources :

Example 1 with RemoveBlockResourcesFromExport

use of com.emc.sa.service.vipr.block.tasks.RemoveBlockResourcesFromExport 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)

Example 2 with RemoveBlockResourcesFromExport

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

the class BlockStorageUtils method removeBlockResourcesFromExport.

public static void removeBlockResourcesFromExport(Collection<URI> resourceId, URI exportId) {
    Task<ExportGroupRestRep> task = execute(new RemoveBlockResourcesFromExport(exportId, resourceId));
    addAffectedResource(task);
    removeExportIfEmpty(exportId);
}
Also used : ExportGroupRestRep(com.emc.storageos.model.block.export.ExportGroupRestRep) RemoveBlockResourcesFromExport(com.emc.sa.service.vipr.block.tasks.RemoveBlockResourcesFromExport)

Aggregations

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