bug 8399: dhcp owner is System in Basic zone setup and for Direct zone wide network

status 8399: resolved fixed
This commit is contained in:
alena 2011-02-04 15:53:02 -08:00
parent 0b34c4965b
commit 4699d91f4e
1 changed files with 5 additions and 0 deletions

View File

@ -811,6 +811,11 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
public DomainRouterVO deployDhcp(Network guestNetwork, DeployDestination dest, Account owner, Map<Param, Object> params) throws InsufficientCapacityException,
StorageUnavailableException, ConcurrentOperationException, ResourceUnavailableException {
long dcId = dest.getDataCenter().getId();
NetworkOffering offering = _networkOfferingDao.findByIdIncludingRemoved(guestNetwork.getNetworkOfferingId());
if (offering.isSystemOnly() || guestNetwork.isShared()) {
owner = _accountMgr.getAccount(Account.ACCOUNT_ID_SYSTEM);
}
if (s_logger.isDebugEnabled()) {
s_logger.debug("Starting a dhcp for network configurations: dhcp=" + guestNetwork + " in " + dest);