Merge "Adds ExternalIpAddressExhaustedClient exception"
This commit is contained in:
@@ -94,6 +94,10 @@ class IpAddressGenerationFailureClient(NeutronClientException):
|
||||
pass
|
||||
|
||||
|
||||
class ExternalIpAddressExhaustedClient(NeutronClientException):
|
||||
pass
|
||||
|
||||
|
||||
class Unauthorized(NeutronClientException):
|
||||
message = _("Unauthorized: bad credentials.")
|
||||
|
||||
|
||||
@@ -51,7 +51,9 @@ def exception_handler_v20(status_code, error_content):
|
||||
'PortInUse': exceptions.PortInUseClient,
|
||||
'AlreadyAttached': exceptions.AlreadyAttachedClient,
|
||||
'IpAddressGenerationFailure':
|
||||
exceptions.IpAddressGenerationFailureClient, }
|
||||
exceptions.IpAddressGenerationFailureClient,
|
||||
'ExternalIpAddressExhausted':
|
||||
exceptions.ExternalIpAddressExhaustedClient, }
|
||||
|
||||
error_dict = None
|
||||
if isinstance(error_content, dict):
|
||||
|
||||
Reference in New Issue
Block a user