diff --git a/neutron_lib/exceptions/l3.py b/neutron_lib/exceptions/l3.py index d6c7e06eb..52ecac8f1 100644 --- a/neutron_lib/exceptions/l3.py +++ b/neutron_lib/exceptions/l3.py @@ -96,3 +96,8 @@ class IpTablesApplyException(exceptions.NeutronException): def __init__(self, message=None): self.message = message super().__init__() + + +class BfdMonitorInUse(exceptions.InUse): + message = _("Unable to complete operation on BFD monitor %(bfd_id)s. " + "There are one or more routes that still use the monitor.")