Skip to content

Commit 8854d4c

Browse files
authored
Merge pull request #1792 from nitin-maharana/nitin4
CLOUDSTACK-9623: Deploying virtual machine fails due to "Couldn't find vlanId" in Basic Zone
2 parents 992ce6e + 280f3be commit 8854d4c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

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

0 commit comments

Comments
 (0)