cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiz...@apache.org
Subject [11/25] git commit: updated refs/heads/advancedsg-leaseweb to c5383c8
Date Wed, 26 Jun 2013 09:30:21 GMT
CLOUDSTACK-737
         Security Group script assume there is only one nic per VM, it is a big task to support
multiple NICs, may seperate that as another project


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

Branch: refs/heads/advancedsg-leaseweb
Commit: 80830ce51601ade2ee460de860aa46ff78bd9cb5
Parents: 20907e2
Author: Anthony Xu <anthony@anthony-dev.(none)>
Authored: Mon Feb 4 17:09:06 2013 -0800
Committer: Wei Zhou <w.zhou@leaseweb.com>
Committed: Tue Jun 11 11:58:28 2013 +0200

----------------------------------------------------------------------
 server/src/com/cloud/vm/UserVmManagerImpl.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/80830ce5/server/src/com/cloud/vm/UserVmManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java
index 9be4cbc..3aeea98 100755
--- a/server/src/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -2876,6 +2876,9 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager,
Use
         if (networkIdList == null || networkIdList.isEmpty()) {
             throw new InvalidParameterValueException("need to specify networkIDs");
         }
+        if (networkIdList.size() > 1 ) {
+            throw new InvalidParameterValueException("VM can only be on one network in Zone
with Security group enabled zone");
+        }
         // Verify that all the networks are Shared/Guest; can't create combination of SG
enabled and disabled networks 
         for (Long networkId : networkIdList) {
             NetworkVO network = _networkDao.findById(networkId);


Mime
View raw message