bug 11425: dont count direct IP in resource count while updating resource count through API

status 11425: resolved fixed
This commit is contained in:
Murali Reddy 2011-09-14 22:52:30 +05:30
parent 97c4029700
commit d73bf096c0
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}