dom0/core: remove ugly hack in network-reconnect code (#637)
This commit is contained in:
parent
9c912694be
commit
ad7da49e74
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user