summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2011-08-30 00:03:39 -0700
committerAnthony Young <sleepsonthefloor@gmail.com>2011-08-30 00:03:39 -0700
commita635027ddbeb73dfad8bbf2890f67cb1ed7511bf (patch)
tree4f980a3fb07103885a14a5df5ba9fd22e26693df /nova/exception.py
parent2a2aa10316abe9135541198bddd4c189976eb2fd (diff)
downloadnova-a635027ddbeb73dfad8bbf2890f67cb1ed7511bf.tar.gz
nova-a635027ddbeb73dfad8bbf2890f67cb1ed7511bf.tar.xz
nova-a635027ddbeb73dfad8bbf2890f67cb1ed7511bf.zip
disassociate floating ips before re-associating, and prevent re-association of already associated floating ips in manager
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 32981f4d5..b54981963 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -533,6 +533,10 @@ class NoMoreFloatingIps(FloatingIpNotFound):
message = _("Zero floating ips available.")
+class FloatingIpAlreadyInUse(NovaException):
+ message = _("Floating ip %(address) already in use by %(fixed_ip).")
+
+
class NoFloatingIpsDefined(NotFound):
message = _("Zero floating ips exist.")