Gentoo Archives: gentoo-admin

From: Steve Wray <steve@××××××××××.nz>
To: gentoo-admin@l.g.o
Subject: [gentoo-admin] problem with bridging & xen
Date: Fri, 23 Sep 2005 21:20:12
Hi there,
the /etc/conf.d/net.example appears to contain some hints on setting up
bridging but it doesn't seem to work.

Yes, I have bridge-utils installed
Yes, I have bridging compiled into the kernel (not a module)

Two things;

When I set up for a bridge called 'br0' and symlink /etc/init.d/net.lo
to net.br0 and then /etc/init.d/net.br0 it works fine:

Like this:
config_eth0=( "null" )
config_br0=( "" )
brctl_br0=( "setfd 0" "sethello 0" "stp off" )

When I set up for the xen bridge called 'xen-br0' it throws what appears
to be some sort of syntax error (I think its the '-' in the network
interface name in the /etc/conf.d/net file that it can't parse).

Like this:
config_eth0=( "null" )
config_xen-br0=( "" )
brctl_xen-br0=( "setfd 0" "sethello 0" "stp off" )

/etc/conf.d/net: line 11: bridge_xen-br0=eth0: command not found
/etc/conf.d/net: line 13: syntax error near unexpected token
/etc/conf.d/net: line 13: `config_xen-br0=( "" )'
 * Starting xen-br0
 *   WARNING: You are forcing modules!
 *   Do not complain or file bugs if things start breaking
 *     /lib/rcscripts/net.modules.d/br0[@] does not exist

I am guessing that this is a python syntax thing, if so I am worried
that there is no work-around or way to quote the variable name so as to
be acceptable? Which would leave me configuring the xen bridge in some
local init script?

gentoo-admin@g.o mailing list