mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9210: Pass secondary IPs to default_network_rules() function
This is a mandatory argument but it was NOT passed which caused the re-programming of security groups to fail. Simple fix to just add the argument since the variable is available there.
This commit is contained in:
parent
ee2ccc4d41
commit
239148c31b
|
|
@ -818,7 +818,7 @@ def add_network_rules(vm_name, vm_id, vm_ip, signature, seqno, vmMac, rules, vif
|
|||
execute("iptables -F " + egress_vmchain)
|
||||
except:
|
||||
logging.debug("Error flushing iptables rules for " + vmchain + ". Presuming firewall rules deleted, re-initializing." )
|
||||
default_network_rules(vm_name, vm_id, vm_ip, vmMac, vif, brname)
|
||||
default_network_rules(vm_name, vm_id, vm_ip, vmMac, vif, brname, sec_ips)
|
||||
egressrule = 0
|
||||
for line in lines:
|
||||
tokens = line.split(':')
|
||||
|
|
|
|||
Loading…
Reference in New Issue