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
This commit is contained in:
Adit Sarfaty 2016-12-26 08:42:32 +02:00
parent e8a66301c6
commit 75ed8bd998

View File

@ -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"