Add FirewallGroupPortNotSupported exception

This exception has been used in neutron-fwaas[1] for a long time.

[1] 768937b0d7/neutron_fwaas/common/exceptions.py (L22)

Change-Id: I0bb6b070ca154a6a2992fabd70460497c292f9ba
This commit is contained in:
zhouhenglc 2023-06-02 10:20:00 +08:00
parent d6ca110d1a
commit fc68d74d4c

View File

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