Add SubnetInUseByIPsecSiteConnection in vpnaas exception

This exception added in commit 0edb0e68f1a2f673d1befa8833eab0ce7a1521ba

Change-Id: Ia928ed32970f4a6e58e4b08a0ced18bb55a9e01a
This commit is contained in:
Dongcan Ye 2020-03-12 11:38:25 +00:00
parent 7798139ffc
commit 83bc6ab206
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ class SubnetInUseByEndpointGroup(exceptions.InUse):
message = _("Subnet %(subnet_id)s is used by endpoint group %(group_id)s")
class SubnetInUseByIPsecSiteConnection(exceptions.InUse):
message = _("Subnet %(subnet_id)s is used by ipsec site connection "
"%(ipsec_site_connection_id)s")
class VPNStateInvalidToUpdate(exceptions.BadRequest):
message = _("Invalid state %(state)s of vpnaas resource %(id)s "
"for updating")