Skip to content

Commit 0c93a85

Browse files
authored
add ip rule for VPC extra IPs (#6846)
1 parent d7dedff commit 0c93a85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,9 @@ def post_config_change(self, method):
610610
if "nw_type" in address and address["nw_type"] == "guest":
611611
route.add_network_route(self.dev, str(address["network"]))
612612

613+
if self.get_type() in ["public"]:
614+
CsRule(self.dev).addRule("from " + str(self.address["network"]))
615+
613616
route.add_network_route(self.dev, str(self.address["network"]))
614617

615618
CsHelper.execute("sudo ip route flush cache")

0 commit comments

Comments
 (0)