mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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
This commit is contained in:
parent
65210f4e7e
commit
8a86d08fe3
@ -2058,6 +2058,9 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||||||
if (networkIdList == null || networkIdList.isEmpty()) {
|
if (networkIdList == null || networkIdList.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("need to specify networkIDs");
|
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
|
// Verify that all the networks are Shared/Guest; can't create combination of SG enabled and disabled networks
|
||||||
for (Long networkId : networkIdList) {
|
for (Long networkId : networkIdList) {
|
||||||
NetworkVO network = _networkDao.findById(networkId);
|
NetworkVO network = _networkDao.findById(networkId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user