From 75ed8bd998543ceeb2097b1e5cbd48fc610f3433 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Mon, 26 Dec 2016 08:42:32 +0200 Subject: [PATCH] QoS Config: add minimum value of 1.0 to qos_peak_bw_multiplier The support for minimal float value added in oslo.config 3.14 Change-Id: Ie469841f47318b8a66ff427e8c7bab1c87875d1f --- vmware_nsx/common/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmware_nsx/common/config.py b/vmware_nsx/common/config.py index 87eaac6b64..0edbbbb84a 100644 --- a/vmware_nsx/common/config.py +++ b/vmware_nsx/common/config.py @@ -112,8 +112,7 @@ base_opts = [ "does not want to deploy a service node). In order to " "leverage distributed routers, replication_mode should " "be set to 'service'.")), - #TODO(asarfaty): add min/max values to FloatOpt. This value should be > 1 - cfg.FloatOpt('qos_peak_bw_multiplier', default=2.0, + cfg.FloatOpt('qos_peak_bw_multiplier', default=2.0, min=1.0, help=_("The QoS rules peak bandwidth value will be the " "configured maximum bandwidth of the QoS rule, " "multiplied by this value. Value must be bigger than"