diff --git a/neutronclient/common/exceptions.py b/neutronclient/common/exceptions.py index f4085d319..65f1c26e4 100644 --- a/neutronclient/common/exceptions.py +++ b/neutronclient/common/exceptions.py @@ -139,6 +139,10 @@ class IpAddressInUseClient(Conflict): pass +class OverQuotaClient(Conflict): + pass + + # TODO(amotoki): It is unused in Neutron, but it is referred to # in Horizon code. After Horizon code is updated, remove it. class AlreadyAttachedClient(Conflict): diff --git a/neutronclient/tests/unit/test_cli20.py b/neutronclient/tests/unit/test_cli20.py index 51ff0bf00..e49605d3e 100644 --- a/neutronclient/tests/unit/test_cli20.py +++ b/neutronclient/tests/unit/test_cli20.py @@ -591,6 +591,7 @@ class CLITestV20ExceptionHandler(CLITestV20Base): exceptions.IpAddressGenerationFailureClient, 409), ('ExternalIpAddressExhausted', exceptions.ExternalIpAddressExhaustedClient, 400), + ('OverQuota', exceptions.OverQuotaClient, 409), ] error_msg = 'dummy exception message'