CLOUDSTACK-9770: fix missing ip routes in VR

This commit is contained in:
Wei Zhou 2017-02-03 10:04:10 +01:00
parent c8916792c6
commit 8c69cb1c1f

View File

@ -528,6 +528,7 @@ class CsIP:
# add 'defaul via gateway' rule in the device specific routing table
if "gateway" in self.address and self.address["gateway"] != "None":
route.add_route(self.dev, self.address["gateway"])
route.add_network_route(self.dev, str(self.address["network"]))
if self.get_type() in ["public"]:
CsRule(self.dev).addRule("from " + str(self.address["network"]))