WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] network:

ChangeSet 1.1429.2.2, 2005/05/17 15:45:00+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        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@xxxxxxxxxxxx>



 network |    6 ++++++
 1 files changed, 6 insertions(+)


diff -Nru a/tools/examples/network b/tools/examples/network
--- a/tools/examples/network    2005-05-17 14:03:40 -04:00
+++ b/tools/examples/network    2005-05-17 14:03:40 -04:00
@@ -164,6 +164,10 @@
 
     create_bridge ${bridge}
 
+    if ifconfig 2>/dev/null | grep -q veth0 ; then
+        return
+    fi
+
     if ifconfig veth0 2>/dev/null | grep -q veth0 ; then
         # Propagate MAC address and ARP responsibilities to virtual interface.
         mac=`ifconfig ${netdev} | grep HWadd | sed -e 
's/.*\(..:..:..:..:..:..\).*/\1/'`
@@ -196,6 +200,8 @@
     if [ "${bridge}" == "null" ] ; then
         return
     fi
+
+    return
 
     brctl delif ${bridge} ${netdev}
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] network:, BitKeeper Bot <=