mirror of https://github.com/apache/cloudstack.git
bug 6485: fix reboot logic
This commit is contained in:
parent
40f15106be
commit
c1b7f5a6fa
|
|
@ -794,6 +794,13 @@ def network_rules_for_rebooted_vm(session, vmName):
|
|||
return True
|
||||
|
||||
vif = "vif" + curr_domid + ".0"
|
||||
tap = "tap" + curr_domid + ".0"
|
||||
vifs = [vif]
|
||||
try:
|
||||
util.pread2(['ifconfig', tap])
|
||||
vifs.append(tap)
|
||||
except:
|
||||
pass
|
||||
vmchain = '-'.join(vm_name.split('-')[:-1])
|
||||
|
||||
util.pread2(['iptables', '-A', 'BRIDGE-FIREWALL', '-m', 'physdev', '--physdev-is-bridged', '--physdev-out', vif, '-j', vmchain])
|
||||
|
|
|
|||
Loading…
Reference in New Issue