Search in sources :

Example 1 with AddHostToExport

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

the class BlockStorageUtils method addHostToExport.

public static void addHostToExport(URI exportId, URI host, Integer minPaths, Integer maxPaths, Integer pathsPerInitiator, URI portGroup) {
    Task<ExportGroupRestRep> task = execute(new AddHostToExport(exportId, host, minPaths, maxPaths, pathsPerInitiator, portGroup));
    addRollback(new DeactivateBlockExport(exportId));
    addAffectedResource(task);
}
Also used : DeactivateBlockExport(com.emc.sa.service.vipr.block.tasks.DeactivateBlockExport) AddHostToExport(com.emc.sa.service.vipr.block.tasks.AddHostToExport) ExportGroupRestRep(com.emc.storageos.model.block.export.ExportGroupRestRep)

Aggregations

AddHostToExport (com.emc.sa.service.vipr.block.tasks.AddHostToExport)1 DeactivateBlockExport (com.emc.sa.service.vipr.block.tasks.DeactivateBlockExport)1 ExportGroupRestRep (com.emc.storageos.model.block.export.ExportGroupRestRep)1