X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 08BC1DC1B22 for ; Thu, 22 Mar 2012 02:36:50 +0000 (UTC) Received: by lagv3 with SMTP id v3so1727675lag.13 for ; Wed, 21 Mar 2012 19:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=clo50DvLn4z1GSP01y5Df8A+54rsdmuOVCXqEaM55iw=; b=xvaiCNWMET4wB0ai7+UhSIv11LLoFu6Mdzzf0uQ8ysYXpDaW6WRjP+VphgkB3vWGhi 9KfcwFSlJK7TDO4WCaf7SzvJ3X/WHzJa3oTV+CBz4/8dx7oOyzflstE6wtyEOGfxCn2g 1GEDXkpIpS/6zzxWZ21DJ0ujPwklcZsA0nPIvh9DHmaMGdhl3sLx45/txFY8PpgMOpnt zi8dCYQvX8UHlM1cPhuxeH0vZ2AHSVq31TK+uoB96yAz+j5bB3ADkzj2dUP0VzJUmTkc PSxQ0UEJhWw8QxpyYTCdwiHNjW3/YHuxKcVGkhK0rDozYCuGyc5U1yi2d6+RKyfxukQE qcpA== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.152.105.211 with SMTP id go19mr4454661lab.51.1332383809028; Wed, 21 Mar 2012 19:36:49 -0700 (PDT) Received: by 10.112.128.230 with HTTP; Wed, 21 Mar 2012 19:36:48 -0700 (PDT) In-Reply-To: <20120321221941.6021d8c7@alpinelinux.org> References: <20120321221941.6021d8c7@alpinelinux.org> Date: Wed, 21 Mar 2012 22:36:49 -0400 Message-ID: Subject: Re: [alpine-devel] asking the right questions in setup-interfaces From: Jeff Bilyk To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, On Wed, Mar 21, 2012 at 5:19 PM, Natanael Copa wrot= e: > Hi, > > I am looking into setting up bridges, bonding and vlans from > setup-interfaces (called from setup-alpine) and I wonder how the > questions should be asked. > > I would like to optimize the number of questions asked, so we ask as > few questions as possible. For example, instead of asking: > > Do you want create any bridge interfaces (y/n) [n] y > Enter the name of the bridge: br0 > ... > > We could do: > Enter bridge interface to create (or 'none') [none] br0 > ... > > And we have one less question asked. > > Now, since most people will not need bridge interfaces, I would prefer > not ask that question at all, but instead do something like: > > (note that the br0 is not initially listed, its a "hidden" feature that > the help '?' could explain about. We should also allow bridge[0-9] as > magic word for bridges) > > Available interfaces are: eth0 eth1 > What interface do you want configure? (or 'done' or '?') [eth0] br0 > Available interfaces are: eth0 eth1 > What interface(s) do you want add to br0? (or 'all') [none] eth0 > Available interfaces are: eth1 > What interface(s) do you want add to br0? (or 'done') [done] done > Ip address for br0? (or 'dhcp' or '?') [dhcp] dhcp > Available interfaces are: eth1 > What interface do you want configure? (or 'done' or '?') [eth1] done > ... > > > We could also allow br[0-9] and bridge[0-9] when asking for ip address > Available interfaces are: eth0 eth1 > What interface do you want configure? (or 'done' or '?') [eth0] eth0 > Ip address for eth0? (or 'dhcp' or '?') [dhcp] br0 > Available interfaces are: br0 eth1 > What interface do you want configure? (or 'done' or '?') [br0] br0 > (should we ask about adding more interfaces here?) > Ip address for br0? (or 'dhcp' or '?') [dhcp] dhcp > ... > > > Simlar applies to bonding interfaces and vlans. > > What do you think? I like the simpler questions, and adding it in to the initial question about network interfaces seems logical. > > Any better ideas? Nope :). > > -nc > > > --- > Unsubscribe: =A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =A0 =A0 =A0 =A0 alpine-devel+help@lists.alpinelinux.org > --- > --=20 Jeff --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---