use of com.cloud.vm.dao.UserVmDao in project cloudstack by apache.
the class PasswordToRouterRules method accept.
@Override
public boolean accept(final NetworkTopologyVisitor visitor, final VirtualRouter router) throws ResourceUnavailableException {
_router = router;
UserVmDao userVmDao = visitor.getVirtualNetworkApplianceFactory().getUserVmDao();
userVmDao.loadDetails((UserVmVO) profile.getVirtualMachine());
// for basic zone, send vm data/password information only to the router in the same pod
NicDao nicDao = visitor.getVirtualNetworkApplianceFactory().getNicDao();
nicVo = nicDao.findById(nic.getId());
return visitor.visit(this);
}
use of com.cloud.vm.dao.UserVmDao in project cloudstack by apache.
the class DhcpEntryRules 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.getId());
userVmDao.loadDetails(_userVM);
NicDao nicDao = visitor.getVirtualNetworkApplianceFactory().getNicDao();
_nicVo = nicDao.findById(_nic.getId());
return visitor.visit(this);
}
Aggregations