From 5a5117b744ec5c7869be66cdbcffdcd972ab50fa Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 6 Jul 2012 11:10:43 -0700 Subject: [PATCH] CS-15471: Fix wrong type of updating customer gateway lifetime Also fixes one typo. --- api/src/com/cloud/api/commands/ListVpnConnectionsCmd.java | 2 +- api/src/com/cloud/api/commands/UpdateVpnCustomerGatewayCmd.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/com/cloud/api/commands/ListVpnConnectionsCmd.java b/api/src/com/cloud/api/commands/ListVpnConnectionsCmd.java index e942bc4226f..a7cd2eb6d85 100644 --- a/api/src/com/cloud/api/commands/ListVpnConnectionsCmd.java +++ b/api/src/com/cloud/api/commands/ListVpnConnectionsCmd.java @@ -28,7 +28,7 @@ import com.cloud.network.Site2SiteVpnConnection; @Implementation(description="Lists site to site vpn connection gateways", responseObject=Site2SiteVpnConnectionResponse.class) public class ListVpnConnectionsCmd extends BaseListProjectAndAccountResourcesCmd { - public static final Logger s_logger = Logger.getLogger (ListVpnCustomerGatewaysCmd.class.getName()); + public static final Logger s_logger = Logger.getLogger (ListVpnConnectionsCmd.class.getName()); private static final String s_name = "listvpnconnectionsresponse"; diff --git a/api/src/com/cloud/api/commands/UpdateVpnCustomerGatewayCmd.java b/api/src/com/cloud/api/commands/UpdateVpnCustomerGatewayCmd.java index 2c32fae25c9..98b7ea93ac3 100644 --- a/api/src/com/cloud/api/commands/UpdateVpnCustomerGatewayCmd.java +++ b/api/src/com/cloud/api/commands/UpdateVpnCustomerGatewayCmd.java @@ -57,7 +57,7 @@ public class UpdateVpnCustomerGatewayCmd extends BaseAsyncCmd { @Parameter(name=ApiConstants.ESP_POLICY, type=CommandType.STRING, required=true, description="ESP policy of the customer gateway") private String espPolicy; - @Parameter(name=ApiConstants.LIFETIME, type=CommandType.STRING, required=false, description="Lifetime of vpn connection to the customer gateway, in seconds") + @Parameter(name=ApiConstants.LIFETIME, type=CommandType.LONG, required=false, description="Lifetime of vpn connection to the customer gateway, in seconds") private Long lifetime; /////////////////////////////////////////////////////