Add traffic control exceptions

Added new traffic control exceptions TcLibQdiscNeededArguments
and TcLibQdiscTypeError in ``neutron-lib.exceptions.qos``.

Related-Bug: #1560963

Change-Id: I4cad9bbfc5e0ed20bd24be33544ba0fa06898f54
This commit is contained in:
Rodolfo Alonso Hernandez 2018-12-11 16:24:54 +00:00
parent 532b398b90
commit b934133e69
2 changed files with 15 additions and 0 deletions

View File

@ -85,3 +85,13 @@ class QoSRulesConflict(e.Conflict):
class PolicyRemoveAuthorizationError(e.NotAuthorized):
message = _("Failed to remove provided policy %(policy_id)s "
"because you are not authorized.")
class TcLibQdiscTypeError(e.NeutronException):
message = _("TC Qdisc type %(qdisc_type)s is not supported; supported "
"types: %(supported_qdisc_types)s.")
class TcLibQdiscNeededArguments(e.NeutronException):
message = _("TC Qdisc type %(qdisc_type)s needs following arguments: "
"%(needed_arguments)s.")

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds new traffic control exceptions ``TcLibQdiscNeededArguments``
and ``TcLibQdiscTypeError`` in ``neutron-lib.exceptions.qos``.