direct-io.hg

changeset 1519:3862329b4861

bitkeeper revision 1.990.2.1 (40d6b31eZCnLR-C0go7i0W-wiLcASA)

Restore brctl call in netfix.
author mjw@wray-m-3.hpl.hp.com
date Mon Jun 21 10:06:22 2004 +0000 (2004-06-21)
parents 639166dab6cf
children 466fcde21922
files tools/xenmgr/netfix
line diff
     1.1 --- a/tools/xenmgr/netfix	Mon Jun 21 06:43:35 2004 +0000
     1.2 +++ b/tools/xenmgr/netfix	Mon Jun 21 10:06:22 2004 +0000
     1.3 @@ -85,11 +85,10 @@ def reconfigure(interface, bridge):
     1.4      if not intf_info['gateway']:
     1.5          print 'Gateway not found: ', interface
     1.6          return
     1.7 -    cmd(CMD_IFCONFIG, '%(interface)s 0.0.0.0' % intf_info)
     1.8      cmd(CMD_IFCONFIG, '%(bridge)s %(address)s netmask %(mask)s broadcast %(broadcast)s up' % intf_info)
     1.9      cmd(CMD_ROUTE, 'add default gateway %(gateway)s dev %(bridge)s' % intf_info)
    1.10 -    if os.path.exists(CMD_BRCTL):
    1.11 -        cmd(CMD_BRCTL, 'addif %(bridge)s %(interface)s' % intf_info)
    1.12 +    cmd(CMD_BRCTL, 'addif %(bridge)s %(interface)s' % intf_info)
    1.13 +    cmd(CMD_IFCONFIG, '%(interface)s 0.0.0.0' % intf_info)
    1.14  
    1.15  defaults = {
    1.16      'interface': 'eth0',