Merge "QoS Config: add minimum value of 1.0 to qos_peak_bw_multiplier"

This commit is contained in:
Jenkins 2016-12-26 07:37:40 +00:00 committed by Gerrit Code Review
commit eaabe51ebe

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"