dom0: detach vif at qvm-dom0-network-via-netvm down
This commit is contained in:
parent
2b26350cb2
commit
07dc5d1430
@ -76,6 +76,7 @@ def netdown():
|
|||||||
print 'There is no eth0 that is a Xen vif device, aborting.'
|
print 'There is no eth0 that is a Xen vif device, aborting.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
os.system('ifconfig eth0 down')
|
os.system('ifconfig eth0 down')
|
||||||
|
os.system('xl network-detach 0 0')
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print 'Usage: qvm-dom0-network-via-netvm [up|down]'
|
print 'Usage: qvm-dom0-network-via-netvm [up|down]'
|
||||||
|
Loading…
Reference in New Issue
Block a user