mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8817: listFirewallRules response JSON startport/endport not an int
This commit is contained in:
parent
4d626c11bc
commit
221624d2fe
|
|
@ -87,11 +87,11 @@ public class FirewallResponse extends BaseResponse {
|
|||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
public void setStartPort(String startPort) {
|
||||
public void setStartPort(Integer startPort) {
|
||||
this.startPort = startPort;
|
||||
}
|
||||
|
||||
public void setEndPort(String endPort) {
|
||||
public void setEndPort(Integer endPort) {
|
||||
this.endPort = endPort;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2124,11 +2124,11 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
response.setId(fwRule.getUuid());
|
||||
response.setProtocol(fwRule.getProtocol());
|
||||
if (fwRule.getSourcePortStart() != null) {
|
||||
response.setStartPort(Integer.toString(fwRule.getSourcePortStart()));
|
||||
response.setStartPort(fwRule.getSourcePortStart());
|
||||
}
|
||||
|
||||
if (fwRule.getSourcePortEnd() != null) {
|
||||
response.setEndPort(Integer.toString(fwRule.getSourcePortEnd()));
|
||||
response.setEndPort(fwRule.getSourcePortEnd());
|
||||
}
|
||||
|
||||
List<String> cidrs = ApiDBUtils.findFirewallSourceCidrs(fwRule.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue