Skip to content

Commit 280f3be

Browse files
author
Nitin Kumar Maharana
committed
CLOUDSTACK-9623: Deploying virtual machine fails due to "Couldn't find vlanId" in Basic Zone
1 parent 61ce75e commit 280f3be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/com/cloud/network/IpAddressManagerImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ public boolean configure(String name, Map<String, Object> params) {
391391
AssignIpAddressFromPodVlanSearch = _ipAddressDao.createSearchBuilder();
392392
AssignIpAddressFromPodVlanSearch.and("dc", AssignIpAddressFromPodVlanSearch.entity().getDataCenterId(), Op.EQ);
393393
AssignIpAddressFromPodVlanSearch.and("allocated", AssignIpAddressFromPodVlanSearch.entity().getAllocatedTime(), Op.NULL);
394+
AssignIpAddressFromPodVlanSearch.and("vlanId", AssignIpAddressFromPodVlanSearch.entity().getVlanId(), Op.IN);
395+
394396
SearchBuilder<VlanVO> podVlanSearch = _vlanDao.createSearchBuilder();
395397
podVlanSearch.and("type", podVlanSearch.entity().getVlanType(), Op.EQ);
396398
podVlanSearch.and("networkId", podVlanSearch.entity().getNetworkId(), Op.EQ);

0 commit comments

Comments
 (0)