bundles/systemd-networkd: better dhcp support
This commit is contained in:
parent
5e7c7671e0
commit
91fd33cfa0
3 changed files with 20 additions and 8 deletions
|
@ -4,7 +4,6 @@
|
|||
[Match]
|
||||
Name=${interface}
|
||||
|
||||
|
||||
% for addr in sorted(config.get('ips', set())):
|
||||
[Address]
|
||||
<%
|
||||
|
@ -31,14 +30,8 @@ GatewayOnLink=yes
|
|||
% endif
|
||||
|
||||
[Network]
|
||||
% if config.get('dhcp', False):
|
||||
DHCP=yes
|
||||
IPv6AcceptRA=yes
|
||||
UseHostname=no
|
||||
% else:
|
||||
DHCP=no
|
||||
IPv6AcceptRA=no
|
||||
% endif
|
||||
|
||||
% if config.get('forwarding', False):
|
||||
IPForward=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue