use of com.emc.storageos.networkcontroller.impl.NetworkZoningParam in project coprhd-controller by CoprHD.
the class AbstractDefaultMaskingOrchestrator method generateZoningAddInitiatorsWorkflow.
public String generateZoningAddInitiatorsWorkflow(Workflow workflow, String previousStep, ExportGroup exportGroup, Map<URI, List<URI>> exportMasksToInitiators) throws WorkflowException {
URI exportGroupURI = exportGroup.getId();
String zoningStep = workflow.createStepId();
Workflow.Method zoningExecuteMethod = _networkDeviceController.zoneExportAddInitiatorsMethod(exportGroupURI, exportMasksToInitiators);
List<NetworkZoningParam> zoningParams = NetworkZoningParam.convertExportMaskInitiatorMapsToNetworkZoningParam(exportGroupURI, exportMasksToInitiators, _dbClient);
Workflow.Method zoningRollbackMethod = _networkDeviceController.zoneExportRemoveInitiatorsMethod(zoningParams);
zoningStep = workflow.createStep((previousStep == null ? EXPORT_GROUP_ZONING_TASK : null), "Zoning subtask for export-group: " + exportGroupURI, previousStep, NullColumnValueGetter.getNullURI(), "network-system", _networkDeviceController.getClass(), zoningExecuteMethod, zoningRollbackMethod, zoningStep);
return zoningStep;
}
use of com.emc.storageos.networkcontroller.impl.NetworkZoningParam in project coprhd-controller by CoprHD.
the class AbstractDefaultMaskingOrchestrator method generateZoningRemoveVolumesWorkflow.
protected String generateZoningRemoveVolumesWorkflow(Workflow workflow, String previousStep, ExportGroup exportGroup, List<ExportMask> exportMasks, Collection<URI> volumeURIs) throws WorkflowException {
URI exportGroupURI = exportGroup.getId();
List<URI> exportMaskURIs = new ArrayList<URI>();
for (ExportMask mask : exportMasks) {
exportMaskURIs.add(mask.getId());
}
List<NetworkZoningParam> zoningParams = NetworkZoningParam.convertExportMasksToNetworkZoningParam(exportGroup.getId(), exportMaskURIs, _dbClient);
String zoningStep = workflow.createStepId();
Workflow.Method zoningExecuteMethod = _networkDeviceController.zoneExportRemoveVolumesMethod(zoningParams, volumeURIs);
zoningStep = workflow.createStep((previousStep == null ? EXPORT_GROUP_ZONING_TASK : null), "Zoning subtask for export-group: " + exportGroupURI, previousStep, NullColumnValueGetter.getNullURI(), "network-system", _networkDeviceController.getClass(), zoningExecuteMethod, null, zoningStep);
return zoningStep;
}
Aggregations