Skip to content

Commit f250b3a

Browse files
subhash yedugundlaresmo
authored andcommitted
CLOUDSTACK-10135 ACL rules order is not maintained for ACL_OUTBOUND in VPC VR (#2313)
(cherry picked from commit 60bec39)
1 parent 382d458 commit f250b3a

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
@@ -168,7 +168,7 @@ def compare(self, list):
168168
cpy = cpy.replace('-A', '-I')
169169
if isinstance(fw[1], int):
170170
# if the rule is for ACLs, we want to insert them in order, right before the DROP all
171-
if rule_chain.startswith("ACL_INBOUND"):
171+
if rule_chain.startswith("ACL_INBOUND") or rule_chain.startswith("ACL_OUTBOUND"):
172172
rule_count = self.chain.get_count(rule_chain)
173173
cpy = cpy.replace("-A %s" % new_rule.get_chain(), '-I %s %s' % (new_rule.get_chain(), rule_count))
174174
else:

0 commit comments

Comments
 (0)