summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorSirisha Devineni <sirisha_devineni@persistent.co.in>2012-10-08 19:39:15 +0530
committerSirisha Devineni <sirisha_devineni@persistent.co.in>2012-10-09 18:12:22 +0530
commitce04b13f26169e2d71b7d3122d3a769cb4348bf7 (patch)
treef437afa8c818c6f84adeb5803c319fe9299d4063 /nova/exception.py
parentfb101685cc14ed9b0396ce966e571d3fb457c32f (diff)
Dis-associate an auto-assigned floating IP should return proper warning
Added new exception class CannotDissociateAutoAssignedFloatingIP and raised exception instead of return. Fixes bug 1061499 Change-Id: I348573a235c6b81653837267072b5c48fa15b8af
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 0b969e625..ded18aac6 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -669,6 +669,10 @@ class NoFloatingIpInterface(NotFound):
message = _("Interface %(interface)s not found.")
+class CannotDisassociateAutoAssignedFloatingIP(NovaException):
+ message = _("Cannot disassociate auto assigined floating ip")
+
+
class KeypairNotFound(NotFound):
message = _("Keypair %(name)s not found for user %(user_id)s")