mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3246: Unable to use portable ips if the portable ip range is deleted and readded atleast once. Fixed the query used to look for available portable ips.
This commit is contained in:
parent
7e44f81273
commit
4bbc65b34c
|
|
@ -69,7 +69,7 @@ public class PortableIpDaoImpl extends GenericDaoBase<PortableIpVO, Long> implem
|
|||
listByRangeIDAndStateSearch.done();
|
||||
|
||||
listByRegionIDAndStateSearch = createSearchBuilder();
|
||||
listByRegionIDAndStateSearch.and("regionId", listByRegionIDAndStateSearch.entity().getRangeId(), SearchCriteria.Op.EQ);
|
||||
listByRegionIDAndStateSearch.and("regionId", listByRegionIDAndStateSearch.entity().getRegionId(), SearchCriteria.Op.EQ);
|
||||
listByRegionIDAndStateSearch.and("state", listByRegionIDAndStateSearch.entity().getState(), SearchCriteria.Op.EQ);
|
||||
listByRegionIDAndStateSearch.done();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue