CLOUDSTACK-9954 Unable to create service offering with networkrate=0 (#2142)

Unable to create service offering with networkrate=0(Unlimited network throttling) with an error "Failed to create service offering xxxxxxx: specify the network rate value more than 0".
This commit is contained in:
SowjanyaPatha 2017-08-03 03:49:38 +05:30 committed by Rohit Yadav
parent 1b898d610c
commit 7fea069e8a

View File

@ -2054,7 +2054,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
if(!allowNetworkRate) {
throw new InvalidParameterValueException("Network rate can be specified only for non-System offering and system offerings having \"domainrouter\" systemvmtype");
}
if(cmd.getNetworkRate().intValue() < 1) {
if(cmd.getNetworkRate().intValue() < 0) {
throw new InvalidParameterValueException("Failed to create service offering " + name + ": specify the network rate value more than 0");
}
}