Skip to content

Commit 5445a5e

Browse files
committed
VPC VR: do not apply ACL rules for static routes which are not associated to VPC private gateway
1 parent 15c2e50 commit 5445a5e

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
@@ -603,7 +603,7 @@ def fw_vpcrouter(self):
603603
if item == "id":
604604
continue
605605
static_route = static_routes.get_bag()[item]
606-
if static_route['ip_address'] == self.address['public_ip'] and not static_route['revoke']:
606+
if "ip_address" in static_route and static_route['ip_address'] == self.address['public_ip'] and not static_route['revoke']:
607607
self.fw.append(["mangle", "",
608608
"-A PREROUTING -m state --state NEW -i %s -s %s ! -d %s/32 -j ACL_OUTBOUND_%s" %
609609
(self.dev, static_route['network'], static_route['ip_address'], self.dev)])

0 commit comments

Comments
 (0)