cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [40/50] [abbrv] git commit: updated refs/heads/rbd-snap-clone to 2355a81
Date Thu, 23 May 2013 21:20:15 GMT
Remote access vpn: method name change


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f41d398c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f41d398c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f41d398c

Branch: refs/heads/rbd-snap-clone
Commit: f41d398cf75cee5e700d668252b4d52d5fe4f1a7
Parents: 19321d4
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Authored: Wed May 22 16:05:03 2013 -0700
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Wed May 22 16:05:03 2013 -0700

----------------------------------------------------------------------
 .../cloud/network/vpn/RemoteAccessVpnService.java  |    2 +-
 .../command/user/vpn/DeleteRemoteAccessVpnCmd.java |    2 +-
 .../src/com/cloud/network/NetworkManagerImpl.java  |    2 +-
 .../network/vpn/RemoteAccessVpnManagerImpl.java    |    4 ++--
 server/src/com/cloud/user/AccountManagerImpl.java  |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f41d398c/api/src/com/cloud/network/vpn/RemoteAccessVpnService.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/network/vpn/RemoteAccessVpnService.java b/api/src/com/cloud/network/vpn/RemoteAccessVpnService.java
index d637da6..b554719 100644
--- a/api/src/com/cloud/network/vpn/RemoteAccessVpnService.java
+++ b/api/src/com/cloud/network/vpn/RemoteAccessVpnService.java
@@ -32,7 +32,7 @@ public interface RemoteAccessVpnService {
 
     RemoteAccessVpn createRemoteAccessVpn(long vpnServerAddressId, String ipRange, boolean
openFirewall, long networkId)
             throws NetworkRuleConflictException;
-    void destroyRemoteAccessVpn(long vpnServerAddressId, Account caller) throws ResourceUnavailableException;
+    void destroyRemoteAccessVpnForIp(long vpnServerAddressId, Account caller) throws ResourceUnavailableException;
     RemoteAccessVpn startRemoteAccessVpn(long vpnServerAddressId, boolean openFirewall) throws
ResourceUnavailableException;
 
     VpnUser addVpnUser(long vpnOwnerId, String userName, String password);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f41d398c/api/src/org/apache/cloudstack/api/command/user/vpn/DeleteRemoteAccessVpnCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/vpn/DeleteRemoteAccessVpnCmd.java
b/api/src/org/apache/cloudstack/api/command/user/vpn/DeleteRemoteAccessVpnCmd.java
index 5b1c5c6..06c2530 100644
--- a/api/src/org/apache/cloudstack/api/command/user/vpn/DeleteRemoteAccessVpnCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vpn/DeleteRemoteAccessVpnCmd.java
@@ -84,7 +84,7 @@ public class DeleteRemoteAccessVpnCmd extends BaseAsyncCmd {
 
     @Override
     public void execute() throws ResourceUnavailableException {
-        _ravService.destroyRemoteAccessVpn(publicIpId, UserContext.current().getCaller());
+        _ravService.destroyRemoteAccessVpnForIp(publicIpId, UserContext.current().getCaller());
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f41d398c/server/src/com/cloud/network/NetworkManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/NetworkManagerImpl.java b/server/src/com/cloud/network/NetworkManagerImpl.java
index 0f43b87..254510b 100755
--- a/server/src/com/cloud/network/NetworkManagerImpl.java
+++ b/server/src/com/cloud/network/NetworkManagerImpl.java
@@ -3273,7 +3273,7 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager,
L
         // the code would be triggered
         s_logger.debug("Cleaning up remote access vpns as a part of public IP id=" + ipId
+ " release...");
         try {
-            _vpnMgr.destroyRemoteAccessVpn(ipId, caller);
+            _vpnMgr.destroyRemoteAccessVpnForIp(ipId, caller);
         } catch (ResourceUnavailableException e) {
             s_logger.warn("Unable to destroy remote access vpn for ip id=" + ipId + " as
a part of ip release", e);
             success = false;

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f41d398c/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java b/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
index 062743b..9e7bb13 100755
--- a/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
+++ b/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
@@ -226,10 +226,10 @@ public class RemoteAccessVpnManagerImpl extends ManagerBase implements
RemoteAcc
     }
 
     @Override @DB
-    public void destroyRemoteAccessVpn(long ipId, Account caller) throws ResourceUnavailableException
{
+    public void destroyRemoteAccessVpnForIp(long ipId, Account caller) throws ResourceUnavailableException
{
         RemoteAccessVpnVO vpn = _remoteAccessVpnDao.findByPublicIpAddress(ipId);
         if (vpn == null) {
-            s_logger.debug("vpn id=" + ipId + " does not exists ");
+            s_logger.debug("there are no Remote access vpns for public ip address id=" +
ipId);
             return;
         }
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f41d398c/server/src/com/cloud/user/AccountManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java
index aac8d19..7421422 100755
--- a/server/src/com/cloud/user/AccountManagerImpl.java
+++ b/server/src/com/cloud/user/AccountManagerImpl.java
@@ -628,7 +628,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager,
M
 
             try {
                 for (RemoteAccessVpnVO vpn : remoteAccessVpns) {
-                    _remoteAccessVpnMgr.destroyRemoteAccessVpn(vpn.getServerAddressId(),
caller);
+                    _remoteAccessVpnMgr.destroyRemoteAccessVpnForIp(vpn.getServerAddressId(),
caller);
                 }
             } catch (ResourceUnavailableException ex) {
                 s_logger.warn("Failed to cleanup remote access vpn resources as a part of
account id=" + accountId + " cleanup due to Exception: ", ex);


Mime
View raw message