summaryrefslogtreecommitdiff
path: root/neutronclient/common/exceptions.py
diff options
context:
space:
mode:
authorHongbin Lu <hongbin.lu@huawei.com>2018-01-19 00:23:51 +0000
committerHongbin Lu <hongbin.lu@huawei.com>2018-01-23 19:46:53 +0000
commit58c1be2b65f3e5ec6a87e2d53e3757314a815e9b (patch)
tree94764ee0a19d7ba60dae8de2d31edc7b0792e248 /neutronclient/common/exceptions.py
parent86e90cfb8611b59e97b13839376f31c6363f56e9 (diff)
downloadpython-neutronclient-58c1be2b65f3e5ec6a87e2d53e3757314a815e9b.tar.gz
Define IpAddressAlreadyAllocated exception
This exception will raise when creating a port with an IP allocated IP address. This exception needs to be defined in client so that nova can catch it and perform the error handling. Needed-By: I5bee9ae18764b6f285ecc5e8d7148a1019c74701 Change-Id: Ie1d4581d334e1ec491e56371c62978945ae24a44 Related-Bug: #1744103
Diffstat (limited to 'neutronclient/common/exceptions.py')
-rw-r--r--neutronclient/common/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/neutronclient/common/exceptions.py b/neutronclient/common/exceptions.py
index 4298d42..1040ee1 100644
--- a/neutronclient/common/exceptions.py
+++ b/neutronclient/common/exceptions.py
@@ -162,6 +162,10 @@ class IpAddressInUseClient(Conflict):
pass
+class IpAddressAlreadyAllocatedClient(Conflict):
+ pass
+
+
class InvalidIpForNetworkClient(BadRequest):
pass