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 1b9f9e623ee0bb281adf0effde1d06f8e2bd88e0..49b306f10b20e533a82fc5218c5f7649667b382e 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)