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
|
# Cleanup stale VIFs
|
||||||
vm.cleanup_vifs()
|
vm.cleanup_vifs()
|
||||||
|
|
||||||
# wait for frontend to forget about this device (UGLY HACK)
|
# force frontend to forget about this device
|
||||||
time.sleep(0.2)
|
# module actually will be loaded back by udev, as soon as network is attached
|
||||||
|
vm.run("root:modprobe -r xen-netfront xennet")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
vm.attach_network(wait=False)
|
vm.attach_network(wait=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user