Comment 3 for bug 303159

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 303159] Re: IFUPDOWN - connections that are mapped should be locked to the mapping device

On Sat, Nov 29, 2008 at 08:45:13PM -0000, Stephan Trebels wrote:
> ** Description changed:
>
> Binary package hint: network-manager
>
> When running in managed=true mode, ifupdown will export configurations
> of a mapping entry in /etc/network/interfaces without locking it to the
> mapping device origin.
> +
> + If a device exists with a mapping stanza then the mapping script may
> + select any of iface stanza "devices". The script is pretty much in
> + control of the naming of the device, so a $DEV-.* regex is wrong to
> + assume. A priori not even the link to a physical device is possible
> + without running the script, as the same mapping may be applicable to
> + multiple devices.
> +
> + Probably the right thing to do is to hide all iface/mapping
> + "connections" that do not correspond to HAL-known devices. Then treat a
> + mapping like a DHCP connection, where a script is called on activation
> + (as in ifupdown) to select the iface stanza "connection" for
> + configuration.
>

IMO, the first step should just do the locking to the device through
the Mac Adress. Next step then looks at how to implement detect
commands to dynamically detect the mapping.

But for the command thing we should open a new bug.

 - Alexander