You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2012/08/15 21:14:51 UTC
git commit: S2S VPN: CS-15998: Fix wrong vpc id in
Site2SiteVpnGatewayResponse
Updated Branches:
refs/heads/master 07efdb640 -> a3faff94f
S2S VPN: CS-15998: Fix wrong vpc id in Site2SiteVpnGatewayResponse
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/a3faff94
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/a3faff94
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/a3faff94
Branch: refs/heads/master
Commit: a3faff94ffdc96a3ee56b391d1bd9d3efed831a7
Parents: 07efdb6
Author: Sheng Yang <sh...@citrix.com>
Authored: Wed Aug 15 10:44:29 2012 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Wed Aug 15 12:10:19 2012 -0700
----------------------------------------------------------------------
.../api/response/Site2SiteVpnGatewayResponse.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a3faff94/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java b/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java
index ef395c5..b1eaffd 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) {