incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject [32/50] git commit: NetworkManagerImpl: Add method to getNetwork by uuid
Date Mon, 14 Jan 2013 16:15:58 GMT
NetworkManagerImpl: Add method to getNetwork by uuid

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>


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

Branch: refs/heads/cloud-agent-with-openvswitch
Commit: 8cdb40a416dba0c8baac6980772c3208127811e7
Parents: 2468797
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Fri Jan 11 15:27:18 2013 -0800
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Fri Jan 11 18:44:19 2013 -0800

----------------------------------------------------------------------
 .../src/com/cloud/network/NetworkManagerImpl.java  |    6 ++++++
 .../com/cloud/network/MockNetworkManagerImpl.java  |    6 ++++++
 .../test/com/cloud/vpc/MockNetworkManagerImpl.java |    6 ++++++
 3 files changed, 18 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8cdb40a4/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 c500376..206392d 100755
--- a/server/src/com/cloud/network/NetworkManagerImpl.java
+++ b/server/src/com/cloud/network/NetworkManagerImpl.java
@@ -2442,6 +2442,12 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService,
Manag
     }
 
     @Override
+    @DB
+    public Network getNetwork(String uuid) {
+        return _networksDao.findByUuid(uuid);
+    }
+
+    @Override
     public List<? extends RemoteAccessVPNServiceProvider> getRemoteAccessVpnElements()
{
         List<RemoteAccessVPNServiceProvider> elements = new ArrayList<RemoteAccessVPNServiceProvider>();
         for (NetworkElement element : _networkElements) {

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8cdb40a4/server/test/com/cloud/network/MockNetworkManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/test/com/cloud/network/MockNetworkManagerImpl.java b/server/test/com/cloud/network/MockNetworkManagerImpl.java
index 26a6e60..874e017 100755
--- a/server/test/com/cloud/network/MockNetworkManagerImpl.java
+++ b/server/test/com/cloud/network/MockNetworkManagerImpl.java
@@ -113,6 +113,12 @@ public class MockNetworkManagerImpl implements NetworkManager, Manager,
NetworkS
     }
 
     @Override
+    public Network getNetwork(String networkUuid) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
     public IpAddress getIp(long id) {
         // TODO Auto-generated method stub
         return null;

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8cdb40a4/server/test/com/cloud/vpc/MockNetworkManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/test/com/cloud/vpc/MockNetworkManagerImpl.java b/server/test/com/cloud/vpc/MockNetworkManagerImpl.java
index 8cb9dd5..bd8d8bc 100644
--- a/server/test/com/cloud/vpc/MockNetworkManagerImpl.java
+++ b/server/test/com/cloud/vpc/MockNetworkManagerImpl.java
@@ -156,6 +156,12 @@ public class MockNetworkManagerImpl implements NetworkManager, Manager{
         return null;
     }
 
+    @Override
+    public Network getNetwork(String networkUuid) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
     /* (non-Javadoc)
      * @see com.cloud.network.NetworkService#getIp(long)
      */


Mime
View raw message