Browse Source

Add traffic control exceptions

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

Related-Bug: #1560963

Change-Id: I4cad9bbfc5e0ed20bd24be33544ba0fa06898f54
tags/1.22.0
Rodolfo Alonso Hernandez 1 year ago
parent
commit
b934133e69
2 changed files with 15 additions and 0 deletions
  1. +10
    -0
      neutron_lib/exceptions/qos.py
  2. +5
    -0
      releasenotes/notes/add-traffic-control-exceptions-0e137dae3a556d54.yaml

+ 10
- 0
neutron_lib/exceptions/qos.py 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.")

+ 5
- 0
releasenotes/notes/add-traffic-control-exceptions-0e137dae3a556d54.yaml View File

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

Loading…
Cancel
Save