From a3b564dabf3939ee619fc9c5f67c83e7061e6759 Mon Sep 17 00:00:00 2001 From: elajkat Date: Fri, 3 Sep 2021 17:12:08 +0200 Subject: [PATCH] Exception for BFD: BfdMonitorInUse Change-Id: Ia1a7821cf95fd539464a2bbac1293df33ddf393a Related-Bug: #1907089 --- neutron_lib/exceptions/l3.py | 5 +++++ 1 file changed, 5 insertions(+) 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.")