forked from stove/dataset
26 lines
532 B
Text
26 lines
532 B
Text
#RISOTTO: do not compare
|
|
%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
|