ia64/xen-unstable

changeset 4957:38ec1443b7da

bitkeeper revision 1.1429.2.2 (428a036cO1cnBZO53U3HCW-Lk42RtA)

network:
Handle xend restart -- don't take down the network setup and don't
initialize it if it looks already initialized.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue May 17 14:45:00 2005 +0000 (2005-05-17)
parents c7fbd1dc68a0
children cc1c80ec8139
files tools/examples/network
line diff
     1.1 --- a/tools/examples/network	Tue May 17 13:59:25 2005 +0000
     1.2 +++ b/tools/examples/network	Tue May 17 14:45:00 2005 +0000
     1.3 @@ -164,6 +164,10 @@ op_start () {
     1.4  
     1.5      create_bridge ${bridge}
     1.6  
     1.7 +    if ifconfig 2>/dev/null | grep -q veth0 ; then
     1.8 +        return
     1.9 +    fi
    1.10 +
    1.11      if ifconfig veth0 2>/dev/null | grep -q veth0 ; then
    1.12          # Propagate MAC address and ARP responsibilities to virtual interface.
    1.13          mac=`ifconfig ${netdev} | grep HWadd | sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'`
    1.14 @@ -197,6 +201,8 @@ op_stop () {
    1.15          return
    1.16      fi
    1.17  
    1.18 +    return
    1.19 +
    1.20      brctl delif ${bridge} ${netdev}
    1.21  
    1.22      if ifconfig veth0 2>/dev/null | grep -q veth0 ; then