diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-08-15 07:56:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-08-15 07:56:20 +0000 |
commit | e5a8033888fa3e772598eb856fa7ac9c7189f45f (patch) | |
tree | 2ec601b9313b9f90dc7074ba958eff8754022b4b /nova/exception.py | |
parent | a301ff6dfd2a43ddb712eb69f4fb266dd3bc2b25 (diff) | |
parent | 8c2daea590df4fb3f6877c21007afedc889e1416 (diff) | |
download | nova-e5a8033888fa3e772598eb856fa7ac9c7189f45f.tar.gz nova-e5a8033888fa3e772598eb856fa7ac9c7189f45f.tar.xz nova-e5a8033888fa3e772598eb856fa7ac9c7189f45f.zip |
Merge "Uniqueness checks for floating ip addresses."
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nova/exception.py b/nova/exception.py index de8982488..9beadd2df 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -639,6 +639,15 @@ class NoFixedIpsDefined(NotFound): message = _("Zero fixed ips could be found.") +#TODO(bcwaldon): EOL this exception! +class Duplicate(NovaException): + pass + + +class FloatingIpExists(Duplicate): + message = _("Floating ip %(address)s already exists.") + + class FloatingIpNotFound(NotFound): message = _("Floating ip not found for id %(id)s.") @@ -907,11 +916,6 @@ class RotationRequiredForBackup(NovaException): message = _("Rotation param is required for backup image_type") -#TODO(bcwaldon): EOL this exception! -class Duplicate(NovaException): - pass - - class KeyPairExists(Duplicate): message = _("Key pair %(key_name)s already exists.") |