Removed static port delcaration in the dhcpd templates

This commit is contained in:
Gregory Kurtzer
2021-09-29 22:41:58 -07:00
parent 4a0e07f333
commit 1d48c9ce15
3 changed files with 5 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"os"
"path"
"strconv"
"strings"
"text/template"
@@ -17,6 +18,7 @@ import (
type dhcpTemplate struct {
Ipaddr string
Port string
RangeStart string
RangeEnd string
Network string
@@ -98,6 +100,7 @@ func Configure(show bool) error {
}
d.Ipaddr = controller.Ipaddr
d.Port = strconv.Itoa(controller.Warewulf.Port)
d.Network = controller.Network
d.Netmask = controller.Netmask
d.RangeStart = controller.Dhcp.RangeStart