diff options
| author | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-07-11 13:34:39 -0700 |
|---|---|---|
| committer | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-07-11 13:34:39 -0700 |
| commit | 2a6f97940f71c056b4bfb0cd9a86f5d676abc4e1 (patch) | |
| tree | acfae7cd5239939dd59dd8b9f766c489a725ae9d /nova/exception.py | |
| parent | 6843421be9cdef1fc12d3480889bdcfd96821e1b (diff) | |
| download | nova-2a6f97940f71c056b4bfb0cd9a86f5d676abc4e1.tar.gz nova-2a6f97940f71c056b4bfb0cd9a86f5d676abc4e1.tar.xz nova-2a6f97940f71c056b4bfb0cd9a86f5d676abc4e1.zip | |
add optional parameter networks to the Create server OS API
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index a6776b64f..a1803d4f6 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -142,6 +142,10 @@ class Invalid(NovaException): message = _("Unacceptable parameters.") +class AlreadyInUse(NovaException): + message = _("Already is in use.") + + class InvalidSignature(Invalid): message = _("Invalid signature %(signature)s for user %(user)s.") @@ -361,6 +365,15 @@ class NoNetworksFound(NotFound): message = _("No networks defined.") +class NetworkNotFoundForProject(NotFound): + message = _("Either Network %(network_id)s is not present or " + "is not assigned to the project %(project_id)s.") + + +class NetworkHostNotSet(NovaException): + message = _("Host is not set to the network (%(network_id)s).") + + class DatastoreNotFound(NotFound): message = _("Could not find the datastore reference(s) which the VM uses.") @@ -385,6 +398,19 @@ class FixedIpNotFoundForHost(FixedIpNotFound): message = _("Host %(host)s has zero fixed ips.") +class FixedIpNotFoundForNetwork(FixedIpNotFound): + message = _("Fixed IP address (%(address)s) does not exist in " + "network (%(network_id)s).") + + +class FixedIpAlreadyInUse(AlreadyInUse): + message = _("Fixed IP address %(address)s is already in use.") + + +class FixedIpInvalid(Invalid): + message = _("Fixed IP address %(address)s is invalid.") + + class NoMoreFixedIps(Error): message = _("Zero fixed ips available.") |
