mirror of https://github.com/apache/cloudstack.git
bug 6485: fix reboot logic
This commit is contained in:
parent
f6c9c27b76
commit
89988cb156
|
|
@ -1792,13 +1792,13 @@ def network_rules_for_rebooted_vm(session, vmName):
|
|||
return True
|
||||
|
||||
vif = "vif" + curr_domid + ".0"
|
||||
tap = "tap" + domid + ".0"
|
||||
tap = "tap" + curr_domid + ".0"
|
||||
vifs = [vif]
|
||||
try:
|
||||
util.pread2(['ifconfig', tap])
|
||||
vifs.append(tap)
|
||||
vifs.append(tap)
|
||||
except:
|
||||
pass
|
||||
pass
|
||||
vmchain = '-'.join(vm_name.split('-')[:-1])
|
||||
|
||||
for v in vifs:
|
||||
|
|
|
|||
Loading…
Reference in New Issue