[systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections
Jan Engelhardt
jengelh at inai.de
Wed Nov 20 23:40:37 PST 2013
On Wednesday 2013-11-20 12:36, Tom Gundersen wrote:
>>> [Network]
>>> Address=192.168.0.1/24
>>> Address=192.168.0.2/24
>>> Gateway=192.168.1.1
>>>
>>> [Address:oneaddress]
>>> Address=192.168.0.3/24
>>> Label=three
>>> Peer=192.168.1.1
>>
>> Arent's we sacrificing significant part of simplicity in units going down
>> this path as opposed to have users use per unit interface instances units
>> and templating/instances ?
>
>I don't quite follow how that would work? You may be right that this
>is not the simplest syntax though, I'm trying to come up with
>something better.
In /etc/network/0
Address=192.168.0.1/24
Address=192.168.0.2/24
Gateway=192.168.1.1
In /etc/address/oneaddress
Address=192.168.0.3/24
Label=three
Peer=192.168.1.1
something like the /etc/sysconfig/network/ifcfg-* that openSUSE
(and in slightly different form, Fedora) has.
More information about the systemd-devel
mailing list