Skip to content

Commit 9be6362

Browse files
committed
Update 11811: update ip domain_id and account_id
1 parent 80ebaae commit 9be6362

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4777,6 +4777,9 @@ public NicVO doInTransaction(TransactionStatus status) {
47774777
if (ipAddressVO != null && IpAddress.State.Free.equals(ipAddressVO.getState())) {
47784778
ipAddressVO.setState(IPAddressVO.State.Allocated);
47794779
ipAddressVO.setAllocatedTime(new Date());
4780+
Account account = _accountDao.findById(vm.getAccountId());
4781+
ipAddressVO.setAllocatedInDomainId(account.getDomainId());
4782+
ipAddressVO.setAllocatedToAccountId(account.getId());
47804783
_ipAddressDao.update(ipAddressVO.getId(), ipAddressVO);
47814784
}
47824785
}

0 commit comments

Comments
 (0)