Updated Branches: refs/heads/master 7e44f8127 -> 4bbc65b34
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. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4bbc65b3 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4bbc65b3 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4bbc65b3 Branch: refs/heads/master Commit: 4bbc65b34ca1bd2a387161badadc8aea25d74020 Parents: 7e44f81 Author: Devdeep Singh <[email protected]> Authored: Thu Jun 27 08:16:54 2013 -0700 Committer: Devdeep Singh <[email protected]> Committed: Fri Jun 28 03:32:31 2013 +0530 ---------------------------------------------------------------------- server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4bbc65b3/server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java ---------------------------------------------------------------------- diff --git a/server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java b/server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java index 488761b..4e1810f 100755 --- a/server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java +++ b/server/src/org/apache/cloudstack/region/PortableIpDaoImpl.java @@ -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();
