From 51ad3d4ee9f28184510a2802867535284c0f1b8b Mon Sep 17 00:00:00 2001 From: Nachi Ueno Date: Tue, 31 Jul 2012 17:47:02 +0000 Subject: Adding port attribute in network parameter of boot. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example is (network:[{‘port’:}] ) The specified port will be used. A port who have already device_id can not be used to be boot. This fix is for isolating functionalities between Quantum and Nova. There are no need update nova side if port model will be changed in future quantum model. This function is for QuantumV2 api use only. Added port attribute in requested_network attribute. Fixes bug 1031096. Change-Id: Id2c86228edb0c22f536f8b36a955c87870e9d98b --- nova/exception.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index de8982488..4d1945bad 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -588,10 +588,22 @@ class NetworkBusy(NovaException): message = _("Network %(network)s has active ports, cannot delete.") +class NetworkIsDuplicated(NovaException): + message = _("Network %(network)s is duplicated.") + + class DatastoreNotFound(NotFound): message = _("Could not find the datastore reference(s) which the VM uses.") +class PortInUse(NovaException): + message = _("Port %(port_id)s is still in use.") + + +class PortNotFound(NotFound): + message = _("Port %(port_id)s could not be found.") + + class FixedIpNotFound(NotFound): message = _("No fixed IP associated with id %(id)s.") -- cgit