From fc68d74d4cbc5e4a547f4d119f68f2cb2dbbeaad Mon Sep 17 00:00:00 2001 From: zhouhenglc Date: Fri, 2 Jun 2023 10:20:00 +0800 Subject: [PATCH] Add FirewallGroupPortNotSupported exception This exception has been used in neutron-fwaas[1] for a long time. [1] https://opendev.org/openstack/neutron-fwaas/src/commit/768937b0d7e7301092af189701f6adca49d3168c/neutron_fwaas/common/exceptions.py#L22 Change-Id: I0bb6b070ca154a6a2992fabd70460497c292f9ba --- neutron_lib/exceptions/firewall_v2.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neutron_lib/exceptions/firewall_v2.py b/neutron_lib/exceptions/firewall_v2.py index a9c614847..e5dd319a0 100644 --- a/neutron_lib/exceptions/firewall_v2.py +++ b/neutron_lib/exceptions/firewall_v2.py @@ -175,3 +175,8 @@ class FirewallGroupDefaultAlreadyExists(exceptions.InUse): """ message = _("Default firewall group already exists. 'default' is the " "reserved name for firewall group.") + + +class FirewallGroupPortNotSupported(exceptions.Conflict): + message = _("Port %(port_id)s is not supported by firewall driver " + "'%(driver_name)s'.")