xenserver: Fix typo in adding static routes in interface-reconfigure.
authorBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 22:45:41 +0000 (15:45 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 10 Aug 2009 20:50:22 +0000 (13:50 -0700)
xenserver/opt_xensource_libexec_interface-reconfigure

index 1b9f9e6..49b306f 100755 (executable)
@@ -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)