diff --git a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm index e95663f4b..62ee7e349 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm @@ -125,6 +125,7 @@ sub addnode { print $omshell "set statements = \"$statements\"\n"; } print $omshell "create\n"; + print $omshell "close\n"; unless (grep /#definition for host $node aka host $hname/,@dhcpconf) { push @dhcpconf,"#definition for host $node aka host $hname can be found in the dhcpd.leases file\n"; }