ia64/xen-unstable
changeset 6429:3b146df7f09e
Cleanup vif entries in store when domain goes away.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author | cl349@firebug.cl.cam.ac.uk |
---|---|
date | Thu Aug 25 15:45:39 2005 +0000 (2005-08-25) |
parents | 102765de794c |
children | bf16d2ca9cc5 |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Thu Aug 25 15:45:19 2005 +0000 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Aug 25 15:45:39 2005 +0000 1.3 @@ -750,6 +750,11 @@ class XendDomainInfo: 1.4 devdb['node'].getData()) 1.5 typedb[dev].delete() 1.6 typedb.saveDB(save=True) 1.7 + if type == 'vif': 1.8 + typedb = ddb.addChild(type) 1.9 + for dev in typedb.keys(): 1.10 + typedb[dev].delete() 1.11 + typedb.saveDB(save=True) 1.12 1.13 def show(self): 1.14 """Print virtual machine info.