In case IpSecPolicy or IKEPolicy is updated while VPN connection that uses it
is already established, IPsecPolicyInUse or IKEPolicuInUse is raised.
Need to clarify their messages to emphasize that policies can't be updated
because they are used by established connection.
Change-Id: I259f9b8bcff7f8ec13ac630285f6e881c6653309
Closes-Bug: #
1315809
class IKEPolicyInUse(qexception.InUse):
- message = _("IKEPolicy %(ikepolicy_id)s is still in use")
+ message = _("IKEPolicy %(ikepolicy_id)s is in use by existing "
+ "IPsecSiteConnection and can't be updated or deleted")
class VPNServiceInUse(qexception.InUse):
class IPsecPolicyInUse(qexception.InUse):
- message = _("IPsecPolicy %(ipsecpolicy_id)s is still in use")
+ message = _("IPsecPolicy %(ipsecpolicy_id)s is in use by existing "
+ "IPsecSiteConnection and can't be updated or deleted")
class DeviceDriverImportError(qexception.NeutronException):