From 8f749dac31670788f00beaf50baafd0881213e60 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 7 Aug 2009 15:45:41 -0700 Subject: [PATCH] xenserver: Fix typo in adding static routes in interface-reconfigure. --- xenserver/opt_xensource_libexec_interface-reconfigure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 1b9f9e62..49b306f1 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -788,7 +788,7 @@ def configure_netdev(pif): for line in oc['static-routes'].split(','): network, masklen, gateway = line.split('/') run_command(['/sbin/ip', 'route', 'add', - '%s/%s' % (netmask, masklen), 'via', gateway, + '%s/%s' % (network, masklen), 'via', gateway, 'dev', ipdev]) settings, offload = ethtool_settings(oc) -- 2.30.2