bundles/systemd-networkd: some more dhcp settings
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
51ee9be424
commit
8536e87475
2 changed files with 15 additions and 0 deletions
|
@ -7,7 +7,20 @@ Name=${interface}
|
|||
[Network]
|
||||
DHCP=yes
|
||||
IPv6AcceptRA=yes
|
||||
|
||||
[DHCPv4]
|
||||
UseDomains=${str(config.get('use_dhcp_domains', False)).lower()}
|
||||
UseHostname=no
|
||||
UseMTU=${str(config.get('use_dhcp_mtu', True)).lower()}
|
||||
UseNTP=${str(config.get('use_dhcp_ntp', False)).lower()}
|
||||
UseTimezone=no
|
||||
|
||||
% if config.get('send_hostname', True):
|
||||
SendHostname=yes
|
||||
Hostname=${node.name.split('.')[-1]}
|
||||
% else:
|
||||
SendHostname=no
|
||||
% endif
|
||||
|
||||
% if config.get('forwarding', False):
|
||||
IPForward=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue