All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH] network-bridge script support for multipleexternal interfaces
@ 2005-10-14 13:44 Ian Pratt
  2005-10-14 14:16 ` Charles Duffy
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Pratt @ 2005-10-14 13:44 UTC (permalink / raw)
  To: Charles Duffy, xen-devel

> The attached patch allows the network-bridge script to be 
> used to generate multiple bridges corresponding to different 
> physical interfaces. It adds a new parameter, "virtnum", used 
> to refer both to the loopback interface to be used and to set 
> defaults regarding the physical interface and bridge name.
> 
> Thus, if one wishes to start xen-br0 on eth0 and xen-br1 on 
> eth1, one need only call:
> 
> network-bridge start ## virtnum is 0 by default 
> network-bridge start virtnum=1

We need a way of controlling the set of paramters that network-bridge is
invoked with from xend-config.sxp. I'd be inclined just to list the
whole command line.

I'm not sure I like the idea of specifying 'virtnum'. 

I think it might be better to be able to tell xend to invoke the script
multiple times e.g. :

(network-script "network-bridge netdev=eth0 bridge=xenbr0;
network-bridge netdev=eth1 bridge=xenbr1")

xend will need to insert "start"/"stop" into these lines as appropriate.
Possibly we should modify the scripts to take foo=bar parameters before
or after the start/stop command. 

NB: Note that I'm using xenbr0 rather than xen-br0. We need to remove
the hyphen as it plays havoc with certain vendor's scripts.

What do you think? Could you knock up a patch?

> ...well, that and set loopback.nloopbacks=2 in the Dom0 
> kernel parameters.

I think we should create two devices by default. They don't cost much
and you can't buy servers with <2 interfaces.


Thanks,
Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: [PATCH] network-bridge script support for multipleexternal interfaces
@ 2005-10-14 16:02 Ian Pratt
  2005-10-14 16:18 ` Charles Duffy
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Pratt @ 2005-10-14 16:02 UTC (permalink / raw)
  To: Charles Duffy; +Cc: xen-devel


> > I think it might be better to be able to tell xend to invoke the 
> > script multiple times e.g. :
> > 
> > (network-script "network-bridge netdev=eth0 bridge=xenbr0; 
> > network-bridge netdev=eth1 bridge=xenbr1")
> 
> ...and need to have the script search for the veth* and vif* 
> devices itself, or base their names on the number appended to 
> the netdev device? 
> I don't really like that.

I'd settle for being able to specify:

(network-script "network-bridge netdev=eth0 bridge=xenbr0
virtnum=0","network-bridge netdev=eth1 bridge=xenbr1 virtnum=1")

[not totally convinced about the naming of virtnum. vifnum?]

[What's the correct sxp syntax for specifying a list of strings?]


Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-14 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 13:44 [PATCH] network-bridge script support for multipleexternal interfaces Ian Pratt
2005-10-14 14:16 ` Charles Duffy
  -- strict thread matches above, loose matches on Subject: below --
2005-10-14 16:02 Ian Pratt
2005-10-14 16:18 ` Charles Duffy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.