Your message dated Sat, 9 Jan 2016 11:59:31 +0100
with message-id <[email protected]>
and subject line Re: Bug#275326: Please add a "fail" interface type, that 
aborts configuration.
has caused the Debian Bug report #275326,
regarding Please add a "fail" interface type, that aborts configuration.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
275326: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=275326
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ifupdown
Version: 0.6.4-4.10
Severity: wishlist

Hello,

after adding the missing cable test to guessnet, it became clear that
there may be cases in which the best action for "ifup <interface>" may
be not to bring up the interface at all, possibly returning a "failed"
error code and printing a message to stdout.

I thus suggest implementing a new "fail" stanza that leaves the
interface down, returns a "failed" error code and optionally prints a
message.

For example, I could have this in my interfaces file:

iface stanza-name fail
        message "Error: link not detected."
        test missing-cable

And then, if the cable is not plugged, I could have this interaction:

# ifup eth0
Error: link not detected.
#

And the command produces no effect at all (i.e., it leaves the interface
down and does not update ifstate).


Ciao,

Enrico

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686-smp
Locale: LANG=it_IT.UTF-8@euro, LC_CTYPE=it_IT.UTF-8@euro

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]       1.4.38       Debian configuration management sy
ii  libc6                       2.3.2.ds1-17 GNU C Library: Shared libraries an
ii  net-tools                   1.60-10      The NET-3 networking toolkit

-- debconf information:
* ifupdown/convert-interfaces: true


--- End Message ---
--- Begin Message ---
Version: 0.8

Ifupdown now checks the exit code of any scripts it runs. If a script
fails during ifup, the interface is not brought up. So you can now do
something like:

iface foo inet dhcp
        pre-up false

And running "ifup foo" will now abort with an error. You can of course
replace "false" with a script that checks whether a cable is plugged
into the network card, for example.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to