mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
Guest cidr is optional for Advance zone (zone can have just Shared networks)
This commit is contained in:
parent
a6f805c140
commit
26d272021f
@ -1658,11 +1658,8 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
||||
|
||||
NetworkType zoneType = isBasic ? NetworkType.Basic : NetworkType.Advanced;
|
||||
|
||||
// Guest cidr is required for Advanced zone creation; error out when the
|
||||
// parameter specified for Basic zone
|
||||
if (zoneType == NetworkType.Advanced && guestCidr == null && !isSecurityGroupEnabled) {
|
||||
throw new InvalidParameterValueException("guestCidrAddress parameter is required for Advanced zone creation");
|
||||
} else if (zoneType == NetworkType.Basic && guestCidr != null) {
|
||||
// error out when the parameter specified for Basic zone
|
||||
if (zoneType == NetworkType.Basic && guestCidr != null) {
|
||||
throw new InvalidParameterValueException("guestCidrAddress parameter is not supported for Basic zone");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user