All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nivedita Singhvi <niv@us.ibm.com>
To: Dan Smith <danms@us.ibm.com>
Cc: xen-devel@lists.xensource.com, Jon Mason <jdmason@us.ibm.com>
Subject: Re: [PATCH] tools: Fix network-bridge to work with Gentoo
Date: Thu, 29 Sep 2005 16:31:23 -0700	[thread overview]
Message-ID: <433C794B.1050301@us.ibm.com> (raw)
In-Reply-To: <87hdc3ii4m.fsf@us.ibm.com>

Dan Smith wrote:
> JM> This patch fixes domU networking in Gentoo.  The change to
> JM> ifup/ifdown (which isn't availabe in Gentoo) prevents the bridge
> JM> from being setup correctly.  The patch below checks if ifup is
> JM> avaiable, and if not starts the Gentoo networking scripts.
> 
> This brings up the idea about how we can be as distro-friendly as
> possible when it comes to network configuration.
> 
> How about if we replace the distro-specific bits of the network-bridge
> script with calls out to a dedicated one, after we determine which
> distro we're on?  That way, we can cleanly add support for a new
> distro, without adding a bunch of if-then-elsif's to the main script.
> 
> Also, it would allow the distros to easily maintain and plug in their
> own scripts to integrate with their network configuration utilities.
> That way, they wouldn't have to maintain a patch to the monolithic xen
> script.  They could just drop their module into, say,
> /etc/xen/scripts/distros/redhat.sh, or something similar.
> 
> I think that if we were to make a standard function interface (like
> LSB) that the scripts implement, then we could just source them and
> use their functions to carry out the wishes of the more complex logic
> in the master network-bridge script.
> 
> Thoughts?

Here's one vote for doing that - need a clean point to insert customized
pieces.

thanks,
Nivedita

  reply	other threads:[~2005-09-29 23:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-29 22:20 [PATCH] tools: Fix network-bridge to work with Gentoo Jon Mason
2005-09-29 23:11 ` Dan Smith
2005-09-29 23:31   ` Nivedita Singhvi [this message]
2005-09-29 23:23 ` Robb Romans
2005-10-04 23:54 ` [PATCH] tools: Fix network-bridge to work with Gentoo (version 2) Jon Mason
2005-10-05  4:03   ` Anthony Liguori
2005-10-05 15:05   ` Jeremy Katz
  -- strict thread matches above, loose matches on Subject: below --
2005-09-29 23:38 [PATCH] tools: Fix network-bridge to work with Gentoo Ian Pratt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=433C794B.1050301@us.ibm.com \
    --to=niv@us.ibm.com \
    --cc=danms@us.ibm.com \
    --cc=jdmason@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.