Skip to content

Commit 2e88c41

Browse files
author
Gustavo Rück
committed
apply suggestions
1 parent b6e626c commit 2e88c41

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

engine/api/src/main/java/org/apache/cloudstack/engine/orchestration/service/NetworkOrchestrationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public interface NetworkOrchestrationService {
113113
"Indicates whether to enable the NSX plugin", false, ConfigKey.Scope.Zone, null);
114114

115115
ConfigKey<Integer> VmNetworkThrottlingRate = new ConfigKey<Integer>("Network", Integer.class, "vm.network.throttling.rate", "200",
116-
"Default data transfer rate in megabits per second allowed in User vm's default network.", true);
116+
"Default data transfer rate in megabits per second allowed in User vm's default network.", true, ConfigKey.Scope.Zone);
117117

118118
ConfigKey<Boolean> NETRIS_ENABLED = new ConfigKey<>(Boolean.class, "netris.plugin.enable", "Advanced", "false",
119119
"Indicates whether to enable the Netris plugin", false, ConfigKey.Scope.Zone, null);

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4955,8 +4955,8 @@ public String getConfigComponentName() {
49554955
@Override
49564956
public ConfigKey<?>[] getConfigKeys() {
49574957
return new ConfigKey<?>[]{NetworkGcWait, NetworkGcInterval, NetworkLockTimeout, DeniedRoutes,
4958-
GuestDomainSuffix, NetworkThrottlingRate, MinVRVersion,
4958+
GuestDomainSuffix, NetworkThrottlingRate, VmNetworkThrottlingRate, MinVRVersion,
49594959
PromiscuousMode, MacAddressChanges, ForgedTransmits, MacLearning, RollingRestartEnabled,
4960-
TUNGSTEN_ENABLED, NSX_ENABLED, NETRIS_ENABLED, NETWORK_LB_HAPROXY_MAX_CONN, VmNetworkThrottlingRate};
4960+
TUNGSTEN_ENABLED, NSX_ENABLED, NETRIS_ENABLED, NETWORK_LB_HAPROXY_MAX_CONN, NETWORK_LB_HAPROXY_IDLE_TIMEOUT};
49614961
}
49624962
}

server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9165,7 +9165,7 @@ public Integer getServiceOfferingNetworkRate(final long serviceOfferingId, final
91659165
if (offering.getVmType() != null && offering.getVmType().equalsIgnoreCase(VirtualMachine.Type.DomainRouter.toString())) {
91669166
networkRate = NetworkOrchestrationService.NetworkThrottlingRate.valueIn(dataCenterId);
91679167
} else {
9168-
networkRate = NetworkOrchestrationService.VmNetworkThrottlingRate.value();
9168+
networkRate = NetworkOrchestrationService.VmNetworkThrottlingRate.valueIn(dataCenterId);
91699169
}
91709170
}
91719171

0 commit comments

Comments
 (0)