diff --git a/neutron_lib/exceptions/vpn.py b/neutron_lib/exceptions/vpn.py index be7ce8599..2404f669a 100644 --- a/neutron_lib/exceptions/vpn.py +++ b/neutron_lib/exceptions/vpn.py @@ -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")