From 7fea069e8ad8c694b18aed1ebbb73b3946297653 Mon Sep 17 00:00:00 2001 From: SowjanyaPatha Date: Thu, 3 Aug 2017 03:49:38 +0530 Subject: [PATCH] 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". --- .../src/com/cloud/configuration/ConfigurationManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java index f7a6104ab7e..6c66fa39e69 100755 --- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java +++ b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java @@ -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"); } }