dataset/seed/applicationservice/2022.03.08/systemd/templates/network
2022-03-08 19:42:28 +01:00

25 lines
507 B
Text

%set %%intnb = %%rougail_index
[Match]
%if %%netwokd_interface_name_type == 'host'
Name=host%%intnb
%else
Name=%%rougail_variable
%end if
[Link]
RequiredForOnline=yes
[Network]
LinkLocalAddressing=no
DHCP=no
%set %%cidr = %%str(%%getVar('network_eth' + %%str(intnb))).split('/')[1]
Address=%%getVar('ip_eth' + %%str(intnb))/%%cidr
%set %%gateway = %%getVar('gateway_eth' + %%str(intnb))
%if %%gateway
Gateway=%%gateway
%end if
%set %%dns = %%ip_dns
%if %%dns
DNS=%%dns
ConfigureWithoutCarrier=yes
%end if