dataset/seed/host-systemd-machined/templates/dhcp.network

18 lines
350 B
SYSTEMD
Raw Normal View History

2022-03-08 19:42:28 +01:00
[Match]
Name=%%rougail_variable
[Network]
2022-12-25 17:08:52 +01:00
%set %%leader = %%interface_names[%%rougail_index]
%if %%leader.interface_type == 'dhcp'
2022-03-08 19:42:28 +01:00
DHCP=ipv4
2022-12-25 17:08:52 +01:00
%else
DHCP=no
Address=%%leader.interface_ip
%if %%leader.first_interface
Gateway=%%leader.interface_gateway
%for %%dns in %%leader.interface_domain_name_servers
DNS=%%dns
%end for
%end if
%end if