make sure to deexpress before we remove the host since deexpress uses the host

This commit is contained in:
Vishvananda Ishaya
2010-06-24 04:11:58 +01:00
committed by andy
parent e9e767ac1b
commit 08619dd37a
+1 -1
View File
@@ -160,8 +160,8 @@ class BaseNetwork(datastore.RedisModel):
def deallocate_ip(self, ip_str):
if not ip_str in self.assigned:
raise exception.AddressNotAllocated()
self._rem_host(ip_str)
self.deexpress(address=ip_str)
self._rem_host(ip_str)
def list_addresses(self):
for address in self.hosts: