dom0: detach vif at qvm-dom0-network-via-netvm down

This commit is contained in:
Marek Marczykowski 2011-09-03 16:14:12 +02:00
parent 2b26350cb2
commit 07dc5d1430

View File

@ -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]'