Rephrase QoSRuleParameterConflict message

The name of QoSRuleParameterConflict exception class suggests that
it's a generic exception that can be used by multiple QoS rules to
raise a parameter conflict. On the other hand, exception's message
refers to bandwidth which could be confusing when used with QoS
minimum packet rate rule.

Related-Bug: #1922237
See-Also: https://review.opendev.org/785236
Change-Id: I05d33fd3337b755b1b0b8a5986739c76a1db3d84
This commit is contained in:
Przemyslaw Szczerbik 2021-08-11 09:11:22 +02:00
parent 599038af02
commit 77723c9370
1 changed files with 1 additions and 2 deletions

View File

@ -77,8 +77,7 @@ class QosRuleNotSupportedByNetwork(e.Conflict):
class QoSRuleParameterConflict(e.Conflict):
message = _("Unable to add the rule with value %(rule_value)s to the "
"policy %(policy_id)s as the existing rule of type "
"%(existing_rule)s restricts the bandwidth to "
"%(existing_value)s.")
"%(existing_rule)s has value %(existing_value)s.")
class QoSRulesConflict(e.Conflict):