diff --git a/api/src/com/cloud/api/response/Site2SiteCustomerGatewayResponse.java b/api/src/com/cloud/api/response/Site2SiteCustomerGatewayResponse.java index 17731872d40..0e2c3539815 100644 --- a/api/src/com/cloud/api/response/Site2SiteCustomerGatewayResponse.java +++ b/api/src/com/cloud/api/response/Site2SiteCustomerGatewayResponse.java @@ -43,6 +43,15 @@ public class Site2SiteCustomerGatewayResponse extends BaseResponse implements Co @SerializedName(ApiConstants.IPSEC_PSK) @Param(description="IPsec preshared-key of customer gateway") private String ipsecPsk; + @SerializedName(ApiConstants.IKE_POLICY) @Param(description="IKE policy of customer gateway") + private String ikePolicy; + + @SerializedName(ApiConstants.ESP_POLICY) @Param(description="IPsec policy of customer gateway") + private String espPolicy; + + @SerializedName(ApiConstants.LIFETIME) @Param(description="Lifetime of IKE and IPsec policy of customer gateway") + private Long lifetime; + @SerializedName(ApiConstants.ACCOUNT) @Param(description="the owner") private String accountName; @@ -85,6 +94,18 @@ public class Site2SiteCustomerGatewayResponse extends BaseResponse implements Co this.ipsecPsk = ipsecPsk; } + public void setIkePolicy(String ikePolicy) { + this.ikePolicy = ikePolicy; + } + + public void setEspPolicy(String espPolicy) { + this.espPolicy = espPolicy; + } + + public void setLifetime(Long lifetime) { + this.lifetime = lifetime; + } + public void setRemoved(Date removed) { this.removed = removed; } diff --git a/api/src/com/cloud/network/Site2SiteCustomerGateway.java b/api/src/com/cloud/network/Site2SiteCustomerGateway.java index d4facc34e75..29f580f18ba 100644 --- a/api/src/com/cloud/network/Site2SiteCustomerGateway.java +++ b/api/src/com/cloud/network/Site2SiteCustomerGateway.java @@ -9,6 +9,9 @@ public interface Site2SiteCustomerGateway extends ControlledEntity { public String getGatewayIp(); public String getGuestCidrList(); public String getIpsecPsk(); + public String getIkePolicy(); + public String getEspPolicy(); + public Long getLifetime(); public Date getRemoved(); String getName(); } diff --git a/server/src/com/cloud/api/ApiResponseHelper.java b/server/src/com/cloud/api/ApiResponseHelper.java index ab6ccf9be1f..2b97d03d903 100755 --- a/server/src/com/cloud/api/ApiResponseHelper.java +++ b/server/src/com/cloud/api/ApiResponseHelper.java @@ -3789,6 +3789,9 @@ public class ApiResponseHelper implements ResponseGenerator { response.setGatewayIp(result.getGatewayIp()); response.setGuestCidrList(result.getGuestCidrList()); response.setIpsecPsk(result.getIpsecPsk()); + response.setIkePolicy(result.getIkePolicy()); + response.setEspPolicy(result.getEspPolicy()); + response.setLifetime(result.getLifetime()); response.setRemoved(result.getRemoved()); response.setObjectName("vpncustomergateway"); diff --git a/server/src/com/cloud/network/Site2SiteCustomerGatewayVO.java b/server/src/com/cloud/network/Site2SiteCustomerGatewayVO.java index 5063f780b30..573d5f1445b 100644 --- a/server/src/com/cloud/network/Site2SiteCustomerGatewayVO.java +++ b/server/src/com/cloud/network/Site2SiteCustomerGatewayVO.java @@ -118,7 +118,8 @@ public class Site2SiteCustomerGatewayVO implements Site2SiteCustomerGateway { this.removed = removed; } - public long getLifetime() { + @Override + public Long getLifetime() { return lifetime; } @@ -126,6 +127,7 @@ public class Site2SiteCustomerGatewayVO implements Site2SiteCustomerGateway { this.lifetime = lifetime; } + @Override public String getIkePolicy() { return ikePolicy; } @@ -134,6 +136,7 @@ public class Site2SiteCustomerGatewayVO implements Site2SiteCustomerGateway { this.ikePolicy = ikePolicy; } + @Override public String getEspPolicy() { return espPolicy; }