private void validatePortAssignment(StorageSystem storageSystem,URI varray,BlockStorageScheduler blockScheduler,List<Initiator> initiators,Collection<URI> volumes,URI exportGroupURI,ExportPathParameters exportPathParameters){
  try {
    ExportPathParams pathParams=blockScheduler.calculateExportPathParamForVolumes(volumes,0,storageSystem.getId(),exportGroupURI);
    if (exportPathParameters != null) {
      if (exportPathParameters.getMaxPaths() != null) {
        pathParams.setMaxPaths(exportPathParameters.getMaxPaths());
      }
      if (exportPathParameters.getMinPaths() != null) {
        pathParams.setMinPaths(exportPathParameters.getMinPaths());
      }
      if (exportPathParameters.getPathsPerInitiator() != null) {
        pathParams.setPathsPerInitiator(exportPathParameters.getPathsPerInitiator());
      }
    }
    blockScheduler.assignStoragePorts(storageSystem,varray,initiators,pathParams,null,volumes);
  }
 catch (  ControllerException ex) {
    _log.error(ex.getLocalizedMessage());
    throw (ex);
  }
}

private void validatePortAssignment ( StorageSystem storageSystem , URI varray , BlockStorageScheduler blockScheduler , List < Initiator > initiators , Collection < URI > volumes , URI exportGroupURI , ExportPathParameters exportPathParameters ) { try { ExportPathParams pathParams = blockScheduler . calculateExportPathParamForVolumes ( volumes , 0 , storageSystem . getId ( ) , exportGroupURI ) ; if ( exportPathParameters != null ) { if ( exportPathParameters . getMaxPaths ( ) != null ) { pathParams . setMaxPaths ( exportPathParameters . getMaxPaths ( ) ) ; } if ( exportPathParameters . getMinPaths ( ) != null ) { pathParams . setMinPaths ( exportPathParameters . getMinPaths ( ) ) ; } if ( exportPathParameters . getPathsPerInitiator ( ) != null ) { pathParams . setPathsPerInitiator ( exportPathParameters . getPathsPerInitiator ( ) ) ; } } blockScheduler . assignStoragePorts ( storageSystem , varray , initiators , pathParams , null , volumes ) ; } catch ( ControllerException ex ) { _log . error ( ex . getLocalizedMessage ( ) ) ; throw ( ex ) ; } }
verifies that storageports can be assigned for a storagesystem given a set of initiators . this will verify that the numpaths variable is not too low or too high to allow assignment .
