use of com.cloud.legacymodel.storage.TemplateProp in project cosmic by MissionCriticalCloud.
the class DummySecondaryStorageResource method getDefaultSystemVmTemplateInfo.
public Map<String, TemplateProp> getDefaultSystemVmTemplateInfo() {
final List<VMTemplateVO> tmplts = this._tmpltDao.listAllSystemVMTemplates();
final Map<String, TemplateProp> tmpltInfo = new HashMap<>();
if (tmplts != null) {
for (final VMTemplateVO tmplt : tmplts) {
final TemplateProp routingInfo = new TemplateProp(tmplt.getUniqueName(), TemplateConstants.DEFAULT_SYSTEM_VM_TEMPLATE_PATH + tmplt.getId() + File.separator, false, false);
tmpltInfo.put(tmplt.getUniqueName(), routingInfo);
}
}
return tmpltInfo;
}
Aggregations