add networkofferid to search network for

This commit is contained in:
Daan Hoogland 2013-09-19 16:25:24 +02:00
parent b6d448d1fd
commit 284742ad11

View File

@ -3869,7 +3869,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
//check if we need to create guest network
Network privateNetwork = _networksDao.getPrivateNetwork(uriString, cidr,
networkOwnerId, pNtwk.getDataCenterId(), null);
networkOwnerId, pNtwk.getDataCenterId(), networkOfferingId);
if (privateNetwork == null) {
//create Guest network
privateNetwork = _networkMgr.createGuestNetwork(ntwkOff.getId(), networkName, displayText, gateway, cidr, uriString,