On Thu, Oct 2, 2014 at 12:40 PM, Lennart Poettering <[email protected]> wrote: > On Thu, 25.09.14 19:39, Damien Robert ([email protected]) > wrote: > >> This is a minor feature request for systemd-networkd: >> my files in /etc/systemd/network/ all share the same pattern: >> >> [Match] >> Name=en* >> [Network] >> DHCP=yes >> >> [Match] >> Name=eth* >> [Network] >> DHCP=yes >> >> [Match] >> Name=usb* >> [Network] >> DHCP=yes >> >> I would like to be able to only write one file, like >> >> [Match] >> Name=en*,eth*,usb* >> [Network] >> DHCP=yes >> >> or maybe to imitate "extended globs" like so >> >> [Match] >> Name={en,eth,usb}* >> [Network] >> DHCP=yes >> >> This would greatly facilitate adding common options like custom DNS and so >> on. > > I think a simpler syntax that keeps the POSIX globbing would be to simply > allow mutiple Name= switches to be set: > > Name=en* > Name=usb* > > and so on. Tom, what do you think?
Yes, this absolutely makes sense. Maybe even en*|usb*, like the udev logic. Happy to take a patch, but put on TODO for now. Cheers, Tom _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
