Add Tap Mirror exception

Add TapMirrorNotFound and TapMirrorTunnelConflict to
taas exceptions.

Change-Id: I96413cdeaa85f8f52c80a5e6dd72e0ddaa2e10ed
Related-Bug: #2015471
This commit is contained in:
elajkat
2023-09-18 10:28:45 +02:00
committed by Lajos Katona
parent 72442e0ba0
commit 584de2c144

View File

@@ -44,3 +44,11 @@ class TapServiceNotBelongToTenant(qexception.NotAuthorized):
class TapServiceLimitReached(qexception.OverQuota):
message = _("Reached the maximum quota for Tap Services")
class TapMirrorNotFound(qexception.NotFound):
message = _("Tap Mirror %(mirror_id)s does not exist")
class TapMirrorTunnelConflict(qexception.Conflict):
message = _("Tap Mirror with tunnel_id %(tunnel_id)s already exists")