Search in sources :

Example 11 with ExportsHostnameInfo

use of com.iwave.ext.netapp.model.ExportsHostnameInfo in project coprhd-controller by CoprHD.

the class NetAppFileCommunicationInterface method createExportMap.

private void createExportMap(ExportsRuleInfo export, UnManagedFSExportMap tempUnManagedExpMap, String storagePort) {
    List<ExportsHostnameInfo> readonlyHosts = export.getSecurityRuleInfos().get(0).getReadOnly();
    List<ExportsHostnameInfo> readwriteHosts = export.getSecurityRuleInfos().get(0).getReadWrite();
    List<ExportsHostnameInfo> rootHosts = export.getSecurityRuleInfos().get(0).getRoot();
    UnManagedFSExport tempUnManagedFSROExport = createUnManagedExport(export, readonlyHosts, RO, storagePort);
    if (tempUnManagedFSROExport != null) {
        tempUnManagedExpMap.put(tempUnManagedFSROExport.getFileExportKey(), tempUnManagedFSROExport);
    }
    UnManagedFSExport tempUnManagedFSRWExport = createUnManagedExport(export, readwriteHosts, RW, storagePort);
    if (tempUnManagedFSRWExport != null) {
        tempUnManagedExpMap.put(tempUnManagedFSRWExport.getFileExportKey(), tempUnManagedFSRWExport);
    }
    UnManagedFSExport tempUnManagedFSROOTExport = createUnManagedExport(export, rootHosts, ROOT, storagePort);
    if (tempUnManagedFSROOTExport != null) {
        tempUnManagedExpMap.put(tempUnManagedFSROOTExport.getFileExportKey(), tempUnManagedFSROOTExport);
    }
}
Also used : UnManagedFSExport(com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedFSExport) ExportsHostnameInfo(com.iwave.ext.netapp.model.ExportsHostnameInfo)

Aggregations

ExportsHostnameInfo (com.iwave.ext.netapp.model.ExportsHostnameInfo)11 ArrayList (java.util.ArrayList)8 SecurityRuleInfo (com.iwave.ext.netapp.model.SecurityRuleInfo)5 UnManagedFSExport (com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedFSExport)4 List (java.util.List)4 NaElement (netapp.manage.NaElement)4 ExportsRuleInfo (com.iwave.ext.netapp.model.ExportsRuleInfo)3 StringSet (com.emc.storageos.db.client.model.StringSet)2 UnManagedFileExportRule (com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedFileExportRule)2 NaAPIFailedException (netapp.manage.NaAPIFailedException)2 ExportSecurityType (com.emc.storageos.model.file.FileExportUpdateParams.ExportSecurityType)1 Test (org.junit.Test)1