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);
}
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);
}
Aggregations