From 15b2a3b85b157e4a032d1fbb68bd3d7a509ed765 Mon Sep 17 00:00:00 2001 From: Trey Morris Date: Fri, 16 Sep 2011 14:07:41 -0500 Subject: moved floating ip db access and sanity checking from network api into network manager added floating ip get by fixed address added fixed_ip_get moved floating ip testing from osapi into the network tests where they belong Change-Id: I3ee53971206e37405a2adc2491412f7896e1af87 --- nova/exception.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index e4d3b16f8..ca9453172 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -539,8 +539,12 @@ class NoMoreFloatingIps(FloatingIpNotFound): message = _("Zero floating ips available.") -class FloatingIpAlreadyInUse(NovaException): - message = _("Floating ip %(address)s already in use by %(fixed_ip)s.") +class FloatingIpAssociated(NovaException): + message = _("Floating ip %(address)s is associated.") + + +class FloatingIpNotAssociated(NovaException): + message = _("Floating ip %(address)s is not associated.") class NoFloatingIpsDefined(NotFound): -- cgit