From 07dc5d14306f3dcb8aff2122b194942baf554c5c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 3 Sep 2011 16:14:12 +0200 Subject: [PATCH] dom0: detach vif at qvm-dom0-network-via-netvm down --- dom0/qvm-tools/qvm-dom0-network-via-netvm | 1 + 1 file changed, 1 insertion(+) diff --git a/dom0/qvm-tools/qvm-dom0-network-via-netvm b/dom0/qvm-tools/qvm-dom0-network-via-netvm index 2be63489..0c95f451 100755 --- a/dom0/qvm-tools/qvm-dom0-network-via-netvm +++ b/dom0/qvm-tools/qvm-dom0-network-via-netvm @@ -76,6 +76,7 @@ def netdown(): print 'There is no eth0 that is a Xen vif device, aborting.' sys.exit(1) os.system('ifconfig eth0 down') + os.system('xl network-detach 0 0') def usage(): print 'Usage: qvm-dom0-network-via-netvm [up|down]'