Skip to content

Commit 60bec39

Browse files
subhash yedugundlaresmo
authored andcommitted
CLOUDSTACK-10135 ACL rules order is not maintained for ACL_OUTBOUND in VPC VR (apache#2313)
1 parent 3ee8d83 commit 60bec39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/patches/debian/config/opt/cloud/bin/cs/CsNetfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def compare(self, list):
167167
cpy = cpy.replace('-A', '-I')
168168
if isinstance(fw[1], int):
169169
# if the rule is for ACLs, we want to insert them in order, right before the DROP all
170-
if rule_chain.startswith("ACL_INBOUND"):
170+
if rule_chain.startswith("ACL_INBOUND") or rule_chain.startswith("ACL_OUTBOUND"):
171171
rule_count = self.chain.get_count(rule_chain)
172172
cpy = cpy.replace("-A %s" % new_rule.get_chain(), '-I %s %s' % (new_rule.get_chain(), rule_count))
173173
else:

0 commit comments

Comments
 (0)