From 389118dfa26ac2e1b734becca2782c10d5893a90 Mon Sep 17 00:00:00 2001 From: Yong Qin Date: Sun, 11 Apr 2021 17:53:36 -0700 Subject: [PATCH] Fixed static-dhcpd.conf template. --- etc/dhcp/static-dhcpd.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/dhcp/static-dhcpd.conf b/etc/dhcp/static-dhcpd.conf index ac1a9fc2..94adc820 100644 --- a/etc/dhcp/static-dhcpd.conf +++ b/etc/dhcp/static-dhcpd.conf @@ -39,8 +39,8 @@ subnet {{$.Network}} netmask {{$.Netmask}} { } {{range $nodes := .Nodes}} -host {{.Fqdn}} { - hardware ethernet {{$nodes.NetDevs.eth0.Hwaddr}} - filed-address {{$nodes.NetDevs.eth0.Ipaddr}} +host {{$nodes.Id.Get}} { + hardware ethernet {{$nodes.NetDevs.eth0.Hwaddr.Get}}; + fixed-address {{$nodes.NetDevs.eth0.Ipaddr.Get}}; } {{end}}