From bc47334d213d10951eb52d4f61c9f39f03c38033 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 10 Oct 2011 17:11:00 +0200 Subject: [PATCH] dom0: fix cleanup_vif --- dom0/qvm-core/qubes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 4f0c7868..6b63f9aa 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -604,7 +604,7 @@ class QubesVm(object): return dev_basepath = '/local/domain/%d/device/vif' % self.xid - for dev in xs.list('', dev_basepath): + for dev in xs.ls('', dev_basepath): # check if backend domain is alive backend_xid = int(xs.read('', '%s/%s/backend-id' % (dev_basepath, dev))) if xl_ctx.domid_to_name(backend_xid) is not None: @@ -1479,7 +1479,7 @@ class QubesNetVm(QubesVm): vm.cleanup_vifs() # wait for frontend to forget about this device (UGLY HACK) - time.sleep(0.1) + time.sleep(0.2) try: vm.attach_network(wait=False)