Merge "Exception for BFD: BfdMonitorInUse"

This commit is contained in:
Zuul 2021-11-27 13:37:28 +00:00 committed by Gerrit Code Review
commit fab7a88062
1 changed files with 5 additions and 0 deletions

View File

@ -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.")