From b939b0749a1a37400702286d19951d1682abccc7 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Tue, 4 Dec 2012 14:41:41 +0000 Subject: [PATCH] Returns more appropriate error when address pool is exhausted Fixes bug 1086226 Change-Id: I97a73151a1ed42877116238a6a741c68c75e199a --- quantum/api/v2/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quantum/api/v2/base.py b/quantum/api/v2/base.py index 02b2e935b12..37fedf475b3 100644 --- a/quantum/api/v2/base.py +++ b/quantum/api/v2/base.py @@ -47,6 +47,7 @@ netaddr.AddrFormatError: webob.exc.HTTPBadRequest, AttributeError: webob.exc.HTTPBadRequest, ValueError: webob.exc.HTTPBadRequest, + exceptions.IpAddressGenerationFailure: webob.exc.HTTPConflict, } QUOTAS = quota.QUOTAS