Skip to content

Commit cdae53a

Browse files
CloudStack-QASateesh Chodapuneedi
authored andcommitted
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>
1 parent 0b84958 commit cdae53a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/network/rules/dao/PortForwardingRulesDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public List<PortForwardingRuleVO> listByAccount(long accountId) {
155155
@Override
156156
public List<PortForwardingRuleVO> listByDestIpAddr(String ip4Address) {
157157
SearchCriteria<PortForwardingRuleVO> sc = AllFieldsSearch.create();
158-
sc.setParameters("address", ip4Address);
158+
sc.setParameters("dstIp", ip4Address);
159159
return listBy(sc);
160160
}
161161

0 commit comments

Comments
 (0)