Merge pull request #1309 from wido/CLOUDSTACK-9210

CLOUDSTACK-9210: Pass secondary IPs to default_network_rules() functionThis 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.

* pr/1309:
  CLOUDSTACK-9210: Pass secondary IPs to default_network_rules() function

Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
Remi Bergsma 2016-01-17 12:56:10 +01:00
commit 2afb739f06
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(':')