mirror of https://github.com/apache/cloudstack.git
creating zone wide vlan is disabled if zone is security group enabled
This commit is contained in:
parent
6ca037b886
commit
ac8524da51
|
|
@ -1499,6 +1499,10 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
throw new InvalidParameterValueException("Virtual Network creation is not allowd if zone is security group enabled");
|
||||
}
|
||||
|
||||
if (zone.isSecurityGroupEnabled() && cmd.getAccountName() == null) {
|
||||
throw new InvalidParameterValueException("Can't create a zone wide network if zone is security group enabled");
|
||||
}
|
||||
|
||||
//If one of the following parameters are defined (starIP/endIP/netmask/gateway), all the rest should be defined too
|
||||
ArrayList<String> networkConfigs = new ArrayList<String>();
|
||||
networkConfigs.add(gateway);
|
||||
|
|
|
|||
Loading…
Reference in New Issue