[Bash-completion-devel] Bug#685569: ifup/ifdown: support /etc/network/interfaces with ifscheme definitions
Christoph Anton Mitterer
calestyo at scientia.net
Wed Aug 22 00:37:25 UTC 2012
Package: bash-completion
Version: 1:2.0-1
Severity: wishlist
Hi.
ifscheme is a program that allows several configuration sets to be
stored in /etc/network/interfaces for _one_ interface.
One get's then definitions like:
iface eth0-home inet static
...
iface eth0-work inet dhcp
...
For a given interface this is "configured" via
mapping eth0
script ifscheme-mapping
in /etc/network/interfaces.
Now, currently, when I use completion on ifscheme managed interfaces I get:
# ifup e
[TAB]
th0-
i.e. it completes to the full names (eth0-home or eth0-work).
This is however useless, as ifup/ifudown itself cannot cope with these names;
it only supports interface names (e.g. eth0).
The current schema is always selected via the ifschem program.
E.g. a typical invocation looks like this:
# ifscheme work
# ifup eth0
Now, what I'd like to see is, that the completion code for ifup/ifdown detects
if a interface is handled by ifscheme (can be done via the mapping stanca) and
if so, it should only complete to the first "-".
Cheers,
Chris.
More information about the Bash-completion-devel
mailing list