CLOUDSTACK-1514 : Unable to remove secondary ips though there are no PF rules associated with it

Fixed the search filter in PortForwardingRulesDaoImpl.java. Earlier we were
passing a wrong filter parameter "address" in listByDestIpAddr which doesn't
exist. Changed this to the right search criteria that uses dstIp as filter
parameter.

Signed-off-by: Venkata Swamybabu Budumuru <venkataswamybabu.budumuru@citrix.com>
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
Venkata Swamybabu Budumuru 2013-03-05 13:42:07 -05:00 committed by Sateesh Chodapuneedi
parent 0b84958a66
commit cdae53a289
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public class PortForwardingRulesDaoImpl extends GenericDaoBase<PortForwardingRul
@Override
public List<PortForwardingRuleVO> listByDestIpAddr(String ip4Address) {
SearchCriteria<PortForwardingRuleVO> sc = AllFieldsSearch.create();
sc.setParameters("address", ip4Address);
sc.setParameters("dstIp", ip4Address);
return listBy(sc);
}