Control: tags -1 + moreinfo
Control: title -1 pattern not working as expected

Hello there,

Sorry for the late answer.

Just to avoid confusion, I prefer to retitle the bug: patterns are more
accurate than regex here.

On Wed, 17 Feb 2021 14:32:24 +0200 Martin-Éric_Racine 
<martin-eric.rac...@iki.fi> wrote:
> Package: ifupdown
> Version: 0.8.36
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> The regex recipe below does not work as expected. I've tried both
> 
> allow-hotplug /en*=en /wl*=wl
> 
> and
> 
> allow-hotplug /en*/=en /wl*/=wl
> 
> but ifup still doesn't raise whatever interface match the regex. Have I 
> misunderstood the examples or am I missing something else?
> 
> Thanks!
> 
> - -- Package-specific info:
> - --- /etc/network/interfaces:
> allow-hotplug /en*=en /wl*=wl
> 
> iface en inet dhcp
> iface en inet6 auto
>         privext 2
>         #dhcp 1
> 
> iface wl inet dhcp
>         wpa-ssid AccessPoint
>         wpa-psk mypassword
> iface wl inet6 auto
>         privext 2
>         #dhcp 1
> 

with this /e/n/interfaces inside an lxc container (so no udev) with two
interfaces (eth0 and eth1):

        auto lo
        iface lo inet loopback

        allow-hotplug /eth*=lan

        iface lan inet dhcp

patterns seem to match:

         ifdown /eth*

Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/d6:ca:92:4e:8b:ef
Sending on   LPF/eth0/d6:ca:92:4e:8b:ef
Sending on   Socket/fallback
DHCPRELEASE of 10.0.3.48 on eth0 to 10.0.3.1 port 67
Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/72:73:72:06:14:7c
Sending on   LPF/eth1/72:73:72:06:14:7c
Sending on   Socket/fallback
DHCPRELEASE of 10.0.3.222 on eth1 to 10.0.3.1 port 67


        ifup --allow hotplug -a -v
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge

ifup: configuring interface eth0=lan (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge

CLIENT="-i";  /sbin/dhclient -4 -v $CLIENT -pf /run/dhclient.eth0.pid -lf 
/var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases 
eth0 
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium. 
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/d6:ca:92:4e:8b:ef
Sending on   LPF/eth0/d6:ca:92:4e:8b:ef
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 10.0.3.48 from 10.0.3.1
DHCPREQUEST for 10.0.3.48 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.3.48 from 10.0.3.1
bound to 10.0.3.48 -- renewal in 1672 seconds.
run-parts --exit-on-error --verbose /etc/network/if-up.d

ifup: configuring interface eth1=lan (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge

CLIENT="-i";  /sbin/dhclient -4 -v $CLIENT -pf /run/dhclient.eth1.pid -lf 
/var/lib/dhcp/dhclient.eth1.leases -I -df /var/lib/dhcp/dhclient6.eth1.leases 
eth1 
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium. 
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/72:73:72:06:14:7c
Sending on   LPF/eth1/72:73:72:06:14:7c
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 10.0.3.222 from 10.0.3.1
DHCPREQUEST for 10.0.3.222 on eth1 to 255.255.255.255 port 67


I get both interfaces configured. Could you please run ifup with -v?

Cheers,

 -- Santiago

Attachment: signature.asc
Description: PGP signature

Reply via email to