Search in sources :

Example 1 with FabricFcSanEp

use of com.emc.cloud.platform.ucs.out.model.FabricFcSanEp in project coprhd-controller by CoprHD.

the class UCSMServiceImpl method getUplinkFCInterfaces.

@Override
public Map<String, FabricFcSanEp> getUplinkFCInterfaces(String ucsmURL, String username, String password) throws ClientGeneralException {
    Map<String, FabricFcSanEp> uplinkFcInterfaceMap = new HashMap<String, FabricFcSanEp>();
    ComputeSession computeSession = sessionManager.getSession(ucsmURL, username, password);
    ConfigResolveClass configResolveClass = new ConfigResolveClass();
    configResolveClass.setClassId(NamingClassId.FABRIC_FC_SAN_EP);
    configResolveClass.setInHierarchical("true");
    com.emc.cloud.platform.ucs.out.model.ConfigResolveClass configResolveClassOut = computeSession.execute(factory.createConfigResolveClass(configResolveClass), com.emc.cloud.platform.ucs.out.model.ConfigResolveClass.class);
    for (JAXBElement<?> managedObject : getConfigSetManagedObjects(configResolveClassOut)) {
        if (managedObject.getValue() instanceof FabricFcSanEp) {
            uplinkFcInterfaceMap.put(((FabricFcSanEp) managedObject.getValue()).getDn(), (FabricFcSanEp) managedObject.getValue());
        }
    }
    return uplinkFcInterfaceMap;
}
Also used : FabricFcSanEp(com.emc.cloud.platform.ucs.out.model.FabricFcSanEp) HashMap(java.util.HashMap) ConfigResolveClass(com.emc.cloud.platform.ucs.in.model.ConfigResolveClass)

Aggregations

ConfigResolveClass (com.emc.cloud.platform.ucs.in.model.ConfigResolveClass)1 FabricFcSanEp (com.emc.cloud.platform.ucs.out.model.FabricFcSanEp)1 HashMap (java.util.HashMap)1