[systemd-devel] [Featur Request] Allow list of names in file.network

Damien Robert damien.olivier.robert+gmane at gmail.com
Thu Sep 25 12:39:50 PDT 2014


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.

Thanks!



More information about the systemd-devel mailing list