mirror of https://github.com/apache/cloudstack.git
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:
parent
0b84958a66
commit
cdae53a289
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue