mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-10135 ACL rules order is not maintained for ACL_OUTBOUND in VPC VR (#2313)
(cherry picked from commit 60bec39b9d)
This commit is contained in:
parent
382d458f43
commit
f250b3ae0c
|
|
@ -168,7 +168,7 @@ class CsNetfilters(object):
|
|||
cpy = cpy.replace('-A', '-I')
|
||||
if isinstance(fw[1], int):
|
||||
# if the rule is for ACLs, we want to insert them in order, right before the DROP all
|
||||
if rule_chain.startswith("ACL_INBOUND"):
|
||||
if rule_chain.startswith("ACL_INBOUND") or rule_chain.startswith("ACL_OUTBOUND"):
|
||||
rule_count = self.chain.get_count(rule_chain)
|
||||
cpy = cpy.replace("-A %s" % new_rule.get_chain(), '-I %s %s' % (new_rule.get_chain(), rule_count))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue