From: cl349@firebug.cl.cam.ac.uk Date: Thu, 25 Aug 2005 15:45:39 +0000 (+0000) Subject: Cleanup vif entries in store when domain goes away. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16850 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=51a81da82a8397da54e7c77bb921901b6a33c539;p=xen.git Cleanup vif entries in store when domain goes away. Signed-off-by: Christian Limpach --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 8aaa3ea13f..6b0a3a2bcc 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -750,6 +750,11 @@ class XendDomainInfo: 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.