Fix for network calculation for DHCP
This commit is contained in:
@@ -33,8 +33,8 @@ if exists user-class and option user-class = "iPXE" {
|
||||
}
|
||||
}
|
||||
|
||||
subnet {{.Ipaddr}} netmask {{.Netmask}} {
|
||||
range {{.RangeStart}} {{.RangeEnd}};
|
||||
subnet {{$.Network}} netmask {{$.Netmask}} {
|
||||
range {{$.RangeStart}} {{$.RangeEnd}};
|
||||
next-server 192.168.1.1;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ if exists user-class and option user-class = "iPXE" {
|
||||
}
|
||||
|
||||
|
||||
{{range .Nodes}}
|
||||
host {{.Fqdn}} {
|
||||
hardware ethernet {{.NetDevs.eth0.Hwaddr}}
|
||||
filed-address {{.NetDevs.eth0.Ipaddr}}
|
||||
{{- range $nodes := .Nodes}}
|
||||
host {{$.Fqdn}} {
|
||||
hardware ethernet {{$nodes.NetDevs.eth0.Hwaddr}}
|
||||
filed-address {{$nodes.NetDevs.eth0.Ipaddr}}
|
||||
}
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user