mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
add ip rule for VPC extra IPs (#6846)
This commit is contained in:
parent
d7dedfff1f
commit
0c93a85b3a
@ -610,6 +610,9 @@ class CsIP:
|
||||
if "nw_type" in address and address["nw_type"] == "guest":
|
||||
route.add_network_route(self.dev, str(address["network"]))
|
||||
|
||||
if self.get_type() in ["public"]:
|
||||
CsRule(self.dev).addRule("from " + str(self.address["network"]))
|
||||
|
||||
route.add_network_route(self.dev, str(self.address["network"]))
|
||||
|
||||
CsHelper.execute("sudo ip route flush cache")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user