From 176c09fa192df4b42570d1478039607108fad6d1 Mon Sep 17 00:00:00 2001 From: Yang Youseok Date: Fri, 23 Nov 2018 15:41:20 +0900 Subject: [PATCH] Add RouterNotFoundInRouterFactory exception Add new exception for l3-agent. It occurs when there is no valid router_info class which registered in router_factory. Related-Bug: #1804634 Change-Id: I55a1cb60898ab87ffe137f8c4b0b2f2803bfb219 --- neutron_lib/exceptions/l3.py | 5 +++++ ...uter-not-found-in-factory-exception-e2bf9431549ff9b9.yaml | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/add-router-not-found-in-factory-exception-e2bf9431549ff9b9.yaml diff --git a/neutron_lib/exceptions/l3.py b/neutron_lib/exceptions/l3.py index 4ed192f6c..cfd466573 100644 --- a/neutron_lib/exceptions/l3.py +++ b/neutron_lib/exceptions/l3.py @@ -77,6 +77,11 @@ class RouterNotCompatibleWithAgent(exceptions.NeutronException): message = _("Router '%(router_id)s' is not compatible with this agent.") +class RouterNotFoundInRouterFactory(exceptions.NeutronException): + message = _("Router '%(router_id)s' with features '%(features)s' could " + "not be found in the router factory.") + + class FloatingIpSetupException(exceptions.NeutronException): def __init__(self, message=None): self.message = message diff --git a/releasenotes/notes/add-router-not-found-in-factory-exception-e2bf9431549ff9b9.yaml b/releasenotes/notes/add-router-not-found-in-factory-exception-e2bf9431549ff9b9.yaml new file mode 100644 index 000000000..62f533a26 --- /dev/null +++ b/releasenotes/notes/add-router-not-found-in-factory-exception-e2bf9431549ff9b9.yaml @@ -0,0 +1,4 @@ +--- +features: + - Adds new L3 exception ``RouterNotFoundInRouterFactory`` in + ``neutron_lib.exceptions.l3``.