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-devel

[Xen-devel] [PATCH] Trivial changes to vif-bridge and vif-common.sh

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Trivial changes to vif-bridge and vif-common.sh
From: James Dykman <dykman@xxxxxxxxxx>
Date: Fri, 18 Nov 2005 15:35:16 -0500
Delivery-date: Fri, 18 Nov 2005 20:35:21 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Sensitivity:
1) "brctl show" has no parameters. 
        On FC3, brctl ignores the extra parameter and shows all bridges. 
My SLES9 SP2 box is not so cooperative:
        # brctl show xenbr0
        incorrect number of arguments for command

2) Add a -n flag to iptables -L to skip DNS lookups
        DNS timeouts take quite a while, causing the infamous "Hotplug 
scripts not working" errors while waiting for vif-bridge.
        xm create fails, and runs the hotplug remove on the 
partially-configured vif. Later, when iptables -L successfully completes,
        vif-bridge finishes the remaining configuration, leaving an 
orphaned vif cluttering up dom0.

Signed-off-by: Jim Dykman <dykman@xxxxxxxxxx>


# HG changeset patch
# User dykman@xxxxxxxxxx
# Node ID a3de757c9e1574fbebf67f6b3341f066f1235067
# Parent  5b5f1b0aca33e7a8bad04893ea6a948befea1c20


1) "brctl show" has no parameters.
2) Add a -n flag to iptables -L to skip DNS lookups

diff -r 5b5f1b0aca33 -r a3de757c9e15 tools/examples/vif-bridge
--- a/tools/examples/vif-bridge Fri Nov 18 11:42:59 2005
+++ b/tools/examples/vif-bridge Fri Nov 18 19:22:51 2005
@@ -48,9 +48,9 @@

 case "$command" in
     online)
-        if brctl show "$bridge" | grep "$vif" >&/dev/null
+        if brctl show | grep "$vif" >&/dev/null
         then
-          log debug "$vif already attached to $bridge"
+          log debug "$vif already attached to a bridge"
           exit 0
         fi

diff -r 5b5f1b0aca33 -r a3de757c9e15 tools/examples/vif-common.sh
--- a/tools/examples/vif-common.sh      Fri Nov 18 11:42:59 2005
+++ b/tools/examples/vif-common.sh      Fri Nov 18 19:22:51 2005
@@ -82,7 +82,7 @@
   # binary is not sufficient, because the user may not have the 
appropriate
   # modules installed.  If iptables is not working, then there's no need 
to do
   # anything with it, so we can just return.
-  if ! iptables -L >&/dev/null
+  if ! iptables -L -n >&/dev/null
   then
     return
   fi



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

<Prev in Thread] Current Thread [Next in Thread>