Skip to content

Commit 29d2a86

Browse files
weizhouapacherohityadavcloud
authored andcommitted
VR: Do not add iptables rules for the revoked ip addresses (apache#6189)
(cherry picked from commit c61ea9f) Signed-off-by: Rohit Yadav <[email protected]>
1 parent d08d3fb commit 29d2a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsAddress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def fw_vpcrouter(self):
498498
if not inf.startswith("eth"):
499499
continue
500500
for address in addresses:
501-
if "nw_type" in address and address["nw_type"] == "guest":
501+
if "nw_type" in address and address["nw_type"] == "guest" and address["add"]:
502502
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %
503503
(address["network"], self.address["network"], self.dev)])
504504
self.fw.append(["filter", "front", "-A FORWARD -s %s -d %s -j ACL_INBOUND_%s" %

0 commit comments

Comments
 (0)