diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index f15c6f8c2..9e88d7214 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -314,7 +314,7 @@ sub addnode $hname = $node; } #Default to hostname equal to nodename unless ($mac) { next; } #Skip corrupt format - my $ip = xCAT::Utils::getNodeIPaddress($hname,OnlyV4=>1); + my $ip = getipaddr($hname,OnlyV4=>1); if ($hname eq '*NOIP*') { $hname = $node . "-noip".$mac; $hname =~ s/://g;