dom0/core: remove ugly hack in network-reconnect code (#637)

This commit is contained in:
Marek Marczykowski 2012-07-22 01:33:08 +02:00
parent 9c912694be
commit ad7da49e74

View File

@ -1851,8 +1851,9 @@ class QubesNetVm(QubesVm):
# Cleanup stale VIFs
vm.cleanup_vifs()
# wait for frontend to forget about this device (UGLY HACK)
time.sleep(0.2)
# force frontend to forget about this device
# module actually will be loaded back by udev, as soon as network is attached
vm.run("root:modprobe -r xen-netfront xennet")
try:
vm.attach_network(wait=False)