From 8c69cb1c1fd7ba93e021dca7d6e08dbaa831ccfa Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Fri, 3 Feb 2017 10:04:10 +0100 Subject: [PATCH] CLOUDSTACK-9770: fix missing ip routes in VR --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py | 1 + 1 file changed, 1 insertion(+) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py index f2bce44563e..a16fd071613 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py @@ -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"]))