From 78c43669e5c175bf4bbe6b4857ec4c9fcd53b402 Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Fri, 29 Jan 2016 19:25:29 +0100 Subject: [PATCH] CLOUDSTACK-9264: Make /32 static routes for private gw work --- systemvm/patches/debian/config/opt/cloud/bin/configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/configure.py b/systemvm/patches/debian/config/opt/cloud/bin/configure.py index ac773a5788ef..ab134fcfca71 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 @@ def process(self): 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)