use of com.cloud.storage.dao.VMTemplateDao in project cosmic by MissionCriticalCloud.
the class SshKeyToRouterRules method accept.
@Override
public boolean accept(final NetworkTopologyVisitor visitor, final VirtualRouter router) throws ResourceUnavailableException {
_router = router;
final UserVmDao userVmDao = visitor.getVirtualNetworkApplianceFactory().getUserVmDao();
_userVM = userVmDao.findById(_profile.getVirtualMachine().getId());
userVmDao.loadDetails(_userVM);
final NicDao nicDao = visitor.getVirtualNetworkApplianceFactory().getNicDao();
_nicVo = nicDao.findById(_nic.getId());
// for basic zone, send vm data/password information only to the router in the same pod
final VMTemplateDao templateDao = visitor.getVirtualNetworkApplianceFactory().getTemplateDao();
_template = templateDao.findByIdIncludingRemoved(_profile.getTemplateId());
return visitor.visit(this);
}
use of com.cloud.storage.dao.VMTemplateDao in project cloudstack by apache.
the class SshKeyToRouterRules method accept.
@Override
public boolean accept(final NetworkTopologyVisitor visitor, final VirtualRouter router) throws ResourceUnavailableException {
_router = router;
UserVmDao userVmDao = visitor.getVirtualNetworkApplianceFactory().getUserVmDao();
_userVM = userVmDao.findById(_profile.getVirtualMachine().getId());
userVmDao.loadDetails(_userVM);
NicDao nicDao = visitor.getVirtualNetworkApplianceFactory().getNicDao();
_nicVo = nicDao.findById(_nic.getId());
// for basic zone, send vm data/password information only to the router in the same pod
VMTemplateDao templateDao = visitor.getVirtualNetworkApplianceFactory().getTemplateDao();
_template = templateDao.findByIdIncludingRemoved(_profile.getTemplateId());
return visitor.visit(this);
}
Aggregations