Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 16617dc1 authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen/kavlan] add pxe.pathprefix

parent c84f4738
No related branches found
No related tags found
No related merge requests found
Pipeline #255076 passed
......@@ -48,12 +48,20 @@ class "PXE" {
# Set the vendor-class-identifier field to PXEClient in dhcp answer
# if this field is not set the pxe client will ignore the answer !
#
option pxelinux.pathprefix "http://kadeploy.<%= "#{site_uid}.grid5000.fr" %>;
option vendor-class-identifier "PXEClient";
vendor-option-space PXE;
option PXE.mtftp-ip 0.0.0.0;
}
}
# force dhcp parameter request to include the pathprefix (210 = 0xd2) even if
# the dhcp client did not request it
if exists dhcp-parameter-request-list {
option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list, d2);
}
<%
kavlan = refapi['sites'][site_uid]['kavlans'][kavlan_id.to_s] # TODO fix needed conversion
kavlan_ip = IPAddress::IPv4::new(kavlan['network'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment