dhcpd.conf.patch
| modif/dhcpd.conf 2025-01-22 14:34:06.713402958 +0100 | ||
|---|---|---|
| 209 | 209 |
%end if |
| 210 | 210 | |
| 211 | 211 |
%if %%activer_tftp == 'oui' |
| 212 |
%if %%groups[%%group].get('fichier_pxe_dhcp') and not %%groups[%%group].get('fichier_pxe_dhcp_uefi')
|
|
| 213 |
next-server %%adresse_ip_tftp; |
|
| 214 |
filename "%%groups[%%group].get('fichier_pxe_dhcp')";
|
|
| 215 |
%else if %%groups[%%group].get('fichier_pxe_dhcp_uefi') and not %%groups[%%group].get('fichier_pxe_dhcp')
|
|
| 216 |
next-server %%adresse_ip_tftp; |
|
| 217 |
filename "%%groups[%%group].get('fichier_pxe_dhcp_uefi')";
|
|
| 218 |
%end if |
|
| 212 |
%if %%groups[%%group].get('fichier_pxe_dhcp')
|
|
| 213 |
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" and substring (option vendor-class-identifier, 15, 5) = "00000" {
|
|
| 214 |
# LEGACY |
|
| 215 |
next-server %%adresse_ip_tftp; |
|
| 216 |
filename "%%groups[%%group].get('fichier_pxe_dhcp')";
|
|
| 217 |
} |
|
| 218 |
%end if |
|
| 219 |
%if %%groups[%%group].get('fichier_pxe_dhcp_uefi')
|
|
| 220 |
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" and not (substring (option vendor-class-identifier, 15, 5) = "00000") {
|
|
| 221 |
# UEFI |
|
| 222 |
next-server %%adresse_ip_tftp; |
|
| 223 |
filename "%%groups[%%group].get('fichier_pxe_dhcp_uefi')";
|
|
| 224 |
} |
|
| 225 |
%end if |
|
| 219 | 226 |
%end if |
| 220 | 227 |
%if %%groups[%%group].get('domain_wpad_dhcp') is not None
|
| 221 | 228 |
option wpad-url "http://wpad.%%groups[%%group]['domain_wpad_dhcp']/wpad.dat\n"; |