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``.