From a3faff94ffdc96a3ee56b391d1bd9d3efed831a7 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Wed, 15 Aug 2012 10:44:29 -0700 Subject: [PATCH] S2S VPN: CS-15998: Fix wrong vpc id in Site2SiteVpnGatewayResponse --- .../com/cloud/api/response/Site2SiteVpnGatewayResponse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java b/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java index ef395c5c991..b1eaffdced6 100644 --- a/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java +++ b/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java @@ -32,7 +32,7 @@ public class Site2SiteVpnGatewayResponse extends BaseResponse implements Control private String ip; @SerializedName(ApiConstants.VPC_ID) @Param(description="the vpc id of this gateway") - private Long vpcId; + private IdentityProxy vpcId = new IdentityProxy("vpc"); @SerializedName(ApiConstants.ACCOUNT) @Param(description="the owner") private String accountName; @@ -61,7 +61,7 @@ public class Site2SiteVpnGatewayResponse extends BaseResponse implements Control } public void setVpcId(Long vpcId) { - this.vpcId = vpcId; + this.vpcId.setValue(vpcId); } public void setRemoved(Date removed) {