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:
Wido den Hollander 2016-01-05 18:06:34 +01:00
parent ee2ccc4d41
commit 239148c31b
1 changed files with 1 additions and 1 deletions

View File

@ -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(':')