Delete fixed_ips when network is deleted

* adds failing test
 * adds exception that is raised when network is in use
 * fixes bug 754900

Change-Id: Ib95dc5927561b979b1eea237d4d6dc323483d4a5
This commit is contained in:
Vishvananda Ishaya
2012-04-03 11:30:57 -07:00
parent 352eb08b12
commit 2dc61cf148
2 changed files with 23 additions and 0 deletions

View File

@@ -525,6 +525,10 @@ class StorageRepositoryNotFound(NotFound):
message = _("Cannot find SR to read/write VDI.")
class NetworkInUse(NovaException):
message = _("Network %(network_id)s is still in use.")
class NetworkNotCreated(NovaException):
message = _("%(req)s is required to create a network.")