mirror of https://github.com/apache/cloudstack.git
bug 7189: returning vmdisplayname if available for all port fwding crud cmds
status 7189: resolved fixed
This commit is contained in:
parent
1e8d5675f6
commit
c115a2e401
|
|
@ -1004,6 +1004,7 @@ public class ApiResponseHelper {
|
|||
UserVm vm = ApiDBUtils.findUserVmByPublicIpAndGuestIp(fwRule.getPublicIpAddress(), fwRule.getPrivateIpAddress());
|
||||
response.setVirtualMachineId(vm.getId());
|
||||
response.setVirtualMachineName(vm.getHostName());
|
||||
response.setVirtualMachineDisplayName(vm.getDisplayName());
|
||||
}
|
||||
response.setObjectName("portforwardingrule");
|
||||
return response;
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@ public class FirewallRuleResponse extends BaseResponse {
|
|||
@SerializedName("vmname") @Param(description="the VM name for the port forwarding rule")
|
||||
private String virtualMachineName;
|
||||
|
||||
@SerializedName("vmdisplayname") @Param(description="the VM display name for the port forwarding rule")
|
||||
private String virtualMachineDisplayName;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
@ -87,4 +90,12 @@ public class FirewallRuleResponse extends BaseResponse {
|
|||
public void setVirtualMachineName(String virtualMachineName) {
|
||||
this.virtualMachineName = virtualMachineName;
|
||||
}
|
||||
|
||||
public String getVirtualMachineDisplayName() {
|
||||
return virtualMachineDisplayName;
|
||||
}
|
||||
|
||||
public void setVirtualMachineDisplayName(String virtualMachineDisplayName) {
|
||||
this.virtualMachineDisplayName = virtualMachineDisplayName;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue