[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] don't require ebtables in the host kernel


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Avi Kivity <avi@xxxxxxxxxxxx>
  • Date: Wed, 22 Feb 2006 10:54:51 +0200
  • Delivery-date: Wed, 22 Feb 2006 11:06:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

The network-bridge script fails when setting a few sysctls
which are only available if ebtables is present in the host
kernel. Fix by ignoring the return value of the sysctl command.

Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>

Index: xen/tools/examples/network-bridge
===================================================================
--- xen/tools/examples/network-bridge   (revision 991)
+++ xen/tools/examples/network-bridge   (revision 992)
@@ -158,9 +158,9 @@

    # Don't create the bridge if it already exists.
    if ! brctl show | grep -q ${bridge} ; then
-       sysctl -w "net.bridge.bridge-nf-call-arptables=0"
-       sysctl -w "net.bridge.bridge-nf-call-ip6tables=0"
-       sysctl -w "net.bridge.bridge-nf-call-iptables=0"
+       ! sysctl -w "net.bridge.bridge-nf-call-arptables=0"
+       ! sysctl -w "net.bridge.bridge-nf-call-ip6tables=0"
+       ! sysctl -w "net.bridge.bridge-nf-call-iptables=0"
        brctl addbr ${bridge}
        brctl stp ${bridge} off
        brctl setfd ${bridge} 0


--
error compiling committee.c: too many arguments to function


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.