mirror of https://github.com/apache/cloudstack.git
bug 11425: dont count direct IP in resource count while updating resource count through API
status 11425: resolved fixed
This commit is contained in:
parent
97c4029700
commit
d73bf096c0
|
|
@ -105,6 +105,7 @@ public class IPAddressDaoImpl extends GenericDaoBase<IPAddressVO, Long> implemen
|
|||
AllocatedIpCountForAccount.select(null, Func.COUNT, AllocatedIpCountForAccount.entity().getAddress());
|
||||
AllocatedIpCountForAccount.and("account", AllocatedIpCountForAccount.entity().getAllocatedToAccountId(), Op.EQ);
|
||||
AllocatedIpCountForAccount.and("allocated", AllocatedIpCountForAccount.entity().getAllocatedTime(), Op.NNULL);
|
||||
AllocatedIpCountForAccount.and("network", AllocatedIpCountForAccount.entity().getAssociatedWithNetworkId(), Op.NNULL);
|
||||
AllocatedIpCountForAccount.done();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue