Repository: cloudstack
Updated Branches:
  refs/heads/master 476e9f021 -> 7017a829e


CLOUDSTACK-9264: Make /32 static routes for private gw work


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/78c43669
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/78c43669
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/78c43669

Branch: refs/heads/master
Commit: 78c43669e5c175bf4bbe6b4857ec4c9fcd53b402
Parents: 333957f
Author: Remi Bergsma <[email protected]>
Authored: Fri Jan 29 19:25:29 2016 +0100
Committer: Remi Bergsma <[email protected]>
Committed: Fri Jan 29 19:25:29 2016 +0100

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/configure.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/78c43669/systemvm/patches/debian/config/opt/cloud/bin/configure.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/configure.py 
b/systemvm/patches/debian/config/opt/cloud/bin/configure.py
index ac773a5..ab134fc 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/configure.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/configure.py
@@ -85,13 +85,13 @@ class CsStaticRoutes(CsDataBag):
 
     def __update(self, route):
         if route['revoke']:
-            command = "route del -net %s gw %s" % (route['network'], 
route['gateway'])
+            command = "ip route del %s via %s" % (route['network'], 
route['gateway'])
             result = CsHelper.execute(command)
         else:
             command = "ip route show | grep %s | awk '{print $1, $3}'" % 
route['network']
             result = CsHelper.execute(command)
             if not result:
-                route_command = "route add -net %s gw %s" % (route['network'], 
route['gateway'])
+                route_command = "ip route add %s via %s" % (route['network'], 
route['gateway'])
                 result = CsHelper.execute(route_command)
 
 

Reply via email to