From ce04b13f26169e2d71b7d3122d3a769cb4348bf7 Mon Sep 17 00:00:00 2001 From: Sirisha Devineni Date: Mon, 8 Oct 2012 19:39:15 +0530 Subject: 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 --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') 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") -- cgit