mirror of https://github.com/apache/cloudstack.git
Merge 22dc645c58 into 9bbd32a8ef
This commit is contained in:
commit
9f5e11f891
|
|
@ -112,6 +112,9 @@ public interface NetworkOrchestrationService {
|
|||
ConfigKey<Boolean> NSX_ENABLED = new ConfigKey<>(Boolean.class, "nsx.plugin.enable", "Advanced", "false",
|
||||
"Indicates whether to enable the NSX plugin", false, ConfigKey.Scope.Zone, null);
|
||||
|
||||
ConfigKey<Integer> VmNetworkThrottlingRate = new ConfigKey<Integer>("Network", Integer.class, "vm.network.throttling.rate", "200",
|
||||
"Default data transfer rate in megabits per second allowed in User vm's default network.", true);
|
||||
|
||||
ConfigKey<Boolean> NETRIS_ENABLED = new ConfigKey<>(Boolean.class, "netris.plugin.enable", "Advanced", "false",
|
||||
"Indicates whether to enable the Netris plugin", false, ConfigKey.Scope.Zone, null);
|
||||
ConfigKey<Integer> NETWORK_LB_HAPROXY_MAX_CONN = new ConfigKey<>(
|
||||
|
|
|
|||
|
|
@ -4919,6 +4919,6 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
|
|||
return new ConfigKey<?>[]{NetworkGcWait, NetworkGcInterval, NetworkLockTimeout, DeniedRoutes,
|
||||
GuestDomainSuffix, NetworkThrottlingRate, MinVRVersion,
|
||||
PromiscuousMode, MacAddressChanges, ForgedTransmits, MacLearning, RollingRestartEnabled,
|
||||
TUNGSTEN_ENABLED, NSX_ENABLED, NETRIS_ENABLED, NETWORK_LB_HAPROXY_MAX_CONN};
|
||||
TUNGSTEN_ENABLED, NSX_ENABLED, NETRIS_ENABLED, NETWORK_LB_HAPROXY_MAX_CONN, VmNetworkThrottlingRate};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -289,14 +289,6 @@ public enum Config {
|
|||
"cloud-public",
|
||||
"Default network label to be used when fetching interface for GRE endpoints",
|
||||
null),
|
||||
VmNetworkThrottlingRate(
|
||||
"Network",
|
||||
ManagementServer.class,
|
||||
Integer.class,
|
||||
"vm.network.throttling.rate",
|
||||
"200",
|
||||
"Default data transfer rate in megabits per second allowed in User vm's default network.",
|
||||
null),
|
||||
|
||||
SecurityGroupWorkCleanupInterval(
|
||||
"Network",
|
||||
|
|
|
|||
|
|
@ -8251,7 +8251,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
if (offering.getVmType() != null && offering.getVmType().equalsIgnoreCase(VirtualMachine.Type.DomainRouter.toString())) {
|
||||
networkRate = NetworkOrchestrationService.NetworkThrottlingRate.valueIn(dataCenterId);
|
||||
} else {
|
||||
networkRate = Integer.parseInt(_configDao.getValue(Config.VmNetworkThrottlingRate.key()));
|
||||
networkRate = NetworkOrchestrationService.VmNetworkThrottlingRate.value();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue