Fix dhcp template for static template

Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
This commit is contained in:
Timothy Middelkoop
2024-11-07 20:00:18 -06:00
committed by Christian Goll
parent cf0167432c
commit df6242d66f
2 changed files with 1 additions and 2 deletions

View File

@@ -48,10 +48,8 @@ if exists user-class and option user-class = "iPXE" {
subnet {{$.Network}} netmask {{$.Netmask}} {
max-lease-time 120;
{{- if ne .Dhcp.Template "static" }}
range {{$.Dhcp.RangeStart}} {{$.Dhcp.RangeEnd}};
next-server {{.Ipaddr}};
{{- end }}
}
{{- if eq .Dhcp.Template "static" }}