Search in sources :

Example 1 with ComputeBlade

use of com.cloud.ucs.structure.ComputeBlade in project cloudstack by apache.

the class UcsManagerImpl method discoverBlades.

private void discoverBlades(UcsManagerVO ucsMgrVo) {
    List<ComputeBlade> blades = listBlades(ucsMgrVo.getId());
    for (ComputeBlade b : blades) {
        UcsBladeVO vo = new UcsBladeVO();
        vo.setDn(b.getDn());
        vo.setUcsManagerId(ucsMgrVo.getId());
        vo.setUuid(UUID.randomUUID().toString());
        bladeDao.persist(vo);
    }
}
Also used : UcsBladeVO(com.cloud.ucs.database.UcsBladeVO) ComputeBlade(com.cloud.ucs.structure.ComputeBlade)

Aggregations

UcsBladeVO (com.cloud.ucs.database.UcsBladeVO)1 ComputeBlade (com.cloud.ucs.structure.ComputeBlade)1