X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from localhost (3.203.202.84.customer.cdi.no [84.202.203.3]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 85153DC0FF4 for ; Wed, 21 Mar 2012 21:19:30 +0000 (UTC) Date: Wed, 21 Mar 2012 22:19:41 +0100 From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] asking the right questions in setup-interfaces Message-ID: <20120321221941.6021d8c7@alpinelinux.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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? Any better ideas? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---