mirror of https://github.com/apache/cloudstack.git
adding more range checks in the createZone functionality
This commit is contained in:
parent
e28ed752fc
commit
58f2f37fc9
|
|
@ -1145,7 +1145,7 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
throw new InvalidParameterValueException("Please specify valid integers for the vlan range.");
|
||||
}
|
||||
|
||||
if(vnetStart > vnetEnd) {
|
||||
if((vnetStart > vnetEnd) || (vnetStart < 0) || (vnetEnd > 4096)) {
|
||||
s_logger.warn("Invalid vnet range: start range:"+vnetStart+" end range:"+vnetEnd);
|
||||
throw new InvalidParameterValueException("Vnet range should be between 0-4096 and start range should be lesser than or equal to end range");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue