diff --git a/neutronclient/common/exceptions.py b/neutronclient/common/exceptions.py index b9485ecb8..b3ab4d7a1 100644 --- a/neutronclient/common/exceptions.py +++ b/neutronclient/common/exceptions.py @@ -94,6 +94,10 @@ class IpAddressGenerationFailureClient(NeutronClientException): pass +class ExternalIpAddressExhaustedClient(NeutronClientException): + pass + + class Unauthorized(NeutronClientException): message = _("Unauthorized: bad credentials.") diff --git a/neutronclient/v2_0/client.py b/neutronclient/v2_0/client.py index cc8f7056a..0e7fd5690 100644 --- a/neutronclient/v2_0/client.py +++ b/neutronclient/v2_0/client.py @@ -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):