From: Ben Pfaff Date: Fri, 7 Aug 2009 22:45:41 +0000 (-0700) Subject: xenserver: Fix typo in adding static routes in interface-reconfigure. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f749dac31670788f00beaf50baafd0881213e60;p=openvswitch xenserver: Fix typo in adding static routes in interface-reconfigure. --- 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)