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;
}
Aggregations