2023-01-17 21:43:32 +01:00
|
|
|
#RISOTTO: do not compare
|
2022-03-08 19:42:28 +01:00
|
|
|
%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
|