[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Cleanup vif entries in store when domain goes away.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 3b146df7f09ed1ac21ca349691441997aed6a0ce
# Parent  102765de794c45574a80b6862f63bf6995e5c839
Cleanup vif entries in store when domain goes away.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 102765de794c -r 3b146df7f09e tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Thu Aug 25 15:45:19 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Thu Aug 25 15:45:39 2005
@@ -750,6 +750,11 @@
                                  devdb['node'].getData())
                     typedb[dev].delete()
                 typedb.saveDB(save=True)
+            if type == 'vif':
+                typedb = ddb.addChild(type)
+                for dev in typedb.keys():
+                    typedb[dev].delete()
+                typedb.saveDB(save=True)
 
     def show(self):
         """Print virtual machine info.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.