# neutron_lib.exceptions.vpn module

exception neutron_lib.exceptions.vpn.CsrInternalError(**kwargs)

  Bases: `NeutronException`

  message = 'Fatal - %(reason)s'

exception neutron_lib.exceptions.vpn.CsrValidationFailure(**kwargs)

  Bases: `BadRequest`

  message = "Cisco CSR does not support %(resource)s attribute %(key)s with value '%(value)s'"

exception neutron_lib.exceptions.vpn.DeviceDriverImportError(**kwargs)

  Bases: `NeutronException`

  message = 'Can not load driver :%(device_driver)s'

exception neutron_lib.exceptions.vpn.EndpointGroupInUse(**kwargs)

  Bases: `BadRequest`

  message = 'Endpoint group %(group_id)s is in use and cannot be deleted'

exception neutron_lib.exceptions.vpn.ExternalNetworkHasNoSubnet(**kwargs)

  Bases: `BadRequest`

  message = "Router's %(router_id)s external network has no %(ip_version)s subnet"

exception neutron_lib.exceptions.vpn.FlavorsPluginNotLoaded(**kwargs)

  Bases: `NotFound`

  message = 'Flavors plugin not found'

exception neutron_lib.exceptions.vpn.IKEPolicyInUse(**kwargs)

  Bases: `InUse`

  message = "IKEPolicy %(ikepolicy_id)s is in use by existing IPsecSiteConnection and can't be updated or deleted"

exception neutron_lib.exceptions.vpn.IKEPolicyNotFound(**kwargs)

  Bases: `NotFound`

  message = 'IKEPolicy %(ikepolicy_id)s could not be found'

exception neutron_lib.exceptions.vpn.IPsecPolicyInUse(**kwargs)

  Bases: `InUse`

  message = "IPsecPolicy %(ipsecpolicy_id)s is in use by existing IPsecSiteConnection and can't be updated or deleted"

exception neutron_lib.exceptions.vpn.IPsecPolicyNotFound(**kwargs)

  Bases: `NotFound`

  message = 'IPsecPolicy %(ipsecpolicy_id)s could not be found'

exception neutron_lib.exceptions.vpn.IPsecSiteConnectionDpdIntervalValueError(**kwargs)

  Bases: `InvalidInput`

  message = 'ipsec_site_connection %(attr)s is equal to or less than dpd_interval'

exception neutron_lib.exceptions.vpn.IPsecSiteConnectionMtuError(**kwargs)

  Bases: `InvalidInput`

  message = 'ipsec_site_connection MTU %(mtu)d is too small for ipv%(version)s'

exception neutron_lib.exceptions.vpn.IPsecSiteConnectionNotFound(**kwargs)

  Bases: `NotFound`

  message = 'ipsec_site_connection %(ipsec_site_conn_id)s not found'

exception neutron_lib.exceptions.vpn.IPsecSiteConnectionPeerCidrError(**kwargs)

  Bases: `InvalidInput`

  message = 'ipsec_site_connection peer cidr %(peer_cidr)s is invalid CIDR'

exception neutron_lib.exceptions.vpn.IkeValidationFailure(**kwargs)

  Bases: `BadRequest`

  message = "IKE does not support %(resource)s attribute %(key)s with value '%(value)s'"

exception neutron_lib.exceptions.vpn.InvalidEndpointGroup(**kwargs)

  Bases: `BadRequest`

  message = 'Endpoint group%(suffix)s %(which)s cannot be specified, when VPN Service has subnet specified'

exception neutron_lib.exceptions.vpn.InvalidEndpointInEndpointGroup(**kwargs)

  Bases: `InvalidInput`

  message = "Endpoint '%(endpoint)s' is invalid for group type '%(group_type)s': %(why)s"

exception neutron_lib.exceptions.vpn.IpsecValidationFailure(**kwargs)

  Bases: `BadRequest`

  message = "IPSec does not support %(resource)s attribute %(key)s with value '%(value)s'"

exception neutron_lib.exceptions.vpn.MissingEndpointForEndpointGroup(**kwargs)

  Bases: `BadRequest`

  message = "No endpoints specified for endpoint group '%(group)s'"

exception neutron_lib.exceptions.vpn.MissingPeerCidrs(**kwargs)

  Bases: `BadRequest`

  message = 'Missing peer CIDRs for IPsec site-to-site connection'

exception neutron_lib.exceptions.vpn.MissingRequiredEndpointGroup(**kwargs)

  Bases: `BadRequest`

  message = 'Missing endpoint group%(suffix)s %(which)s for IPSec site-to-site connection'

exception neutron_lib.exceptions.vpn.MixedIPVersionsForIPSecConnection(**kwargs)

  Bases: `BadRequest`

  message = 'IP versions are not compatible between peer and local endpoints'

exception neutron_lib.exceptions.vpn.MixedIPVersionsForIPSecEndpoints(**kwargs)

  Bases: `BadRequest`

  message = 'Endpoints in group %(group)s do not have the same IP version, as required for IPSec site-to-site connection'

exception neutron_lib.exceptions.vpn.MixedIPVersionsForPeerCidrs(**kwargs)

  Bases: `BadRequest`

  message = 'Peer CIDRs do not have the same IP version, as required for IPSec site-to-site connection'

exception neutron_lib.exceptions.vpn.NoProviderFoundForFlavor(**kwargs)

  Bases: `NotFound`

  message = 'No service provider found for flavor %(flavor_id)s'

exception neutron_lib.exceptions.vpn.NonExistingSubnetInEndpointGroup(**kwargs)

  Bases: `InvalidInput`

  message = 'Subnet %(subnet)s in endpoint group does not exist'

exception neutron_lib.exceptions.vpn.PeerCidrsInvalid(**kwargs)

  Bases: `BadRequest`

  message = 'Peer CIDRs cannot be specified, when using endpoint groups'

exception neutron_lib.exceptions.vpn.RouterIsNotExternal(**kwargs)

  Bases: `BadRequest`

  message = 'Router %(router_id)s has no external network gateway set'

exception neutron_lib.exceptions.vpn.SubnetInUseByEndpointGroup(**kwargs)

  Bases: `InUse`

  message = 'Subnet %(subnet_id)s is used by endpoint group %(group_id)s'

exception neutron_lib.exceptions.vpn.SubnetInUseByIPsecSiteConnection(**kwargs)

  Bases: `InUse`

  message = 'Subnet %(subnet_id)s is used by ipsec site connection %(ipsec_site_connection_id)s'

exception neutron_lib.exceptions.vpn.SubnetInUseByVPNService(**kwargs)

  Bases: `InUse`

  message = 'Subnet %(subnet_id)s is used by VPNService %(vpnservice_id)s'

exception neutron_lib.exceptions.vpn.SubnetIsNotConnectedToRouter(**kwargs)

  Bases: `BadRequest`

  message = 'Subnet %(subnet_id)s is not connected to Router %(router_id)s'

exception neutron_lib.exceptions.vpn.VPNEndpointGroupNotFound(**kwargs)

  Bases: `NotFound`

  message = 'Endpoint group %(endpoint_group_id)s could not be found'

exception neutron_lib.exceptions.vpn.VPNPeerAddressNotResolved(**kwargs)

  Bases: `InvalidInput`

  message = 'Peer address %(peer_address)s cannot be resolved'

exception neutron_lib.exceptions.vpn.VPNServiceInUse(**kwargs)

  Bases: `InUse`

  message = 'VPNService %(vpnservice_id)s is still in use'

exception neutron_lib.exceptions.vpn.VPNServiceNotFound(**kwargs)

  Bases: `NotFound`

  message = 'VPNService %(vpnservice_id)s could not be found'

exception neutron_lib.exceptions.vpn.VPNStateInvalidToUpdate(**kwargs)

  Bases: `BadRequest`

  message = 'Invalid state %(state)s of vpnaas resource %(id)s for updating'

exception neutron_lib.exceptions.vpn.WrongEndpointGroupType(**kwargs)

  Bases: `BadRequest`

  message = "Endpoint group %(which)s type is '%(group_type)s' and should be '%(expected)s'"

this page last updated: 2026-03-03 11:51:03

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug