call NetworkUtils.pm subroutines instead of Utils.pm subroutines

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-05-07 02:46:08 +00:00
parent dfb30a46a9
commit 455c4d6c0a

View File

@ -925,9 +925,9 @@ sub mkclientdef
}
my $mac_or_local_link_addr;
if (xCAT::Utils->getipaddr($shorthost) =~ /:/) #ipv6 node
if (xCAT::NetworkUtils->getipaddr($shorthost) =~ /:/) #ipv6 node
{
$mac_or_local_link_addr = xCAT::Utils->linklocaladdr($::objhash{$node}{'mac'});
$mac_or_local_link_addr = xCAT::NetworkUtils->linklocaladdr($::objhash{$node}{'mac'});
$adaptertype = "ent6";
} else {
$mac_or_local_link_addr = $::objhash{$node}{'mac'};
@ -1542,7 +1542,7 @@ sub mkNIMnetwork
}
# get the ip of the nim primary interface
my $gwIP = xCAT::Utils->getipaddr($adapterhost);
my $gwIP = xCAT::NetworkUtils->getipaddr($adapterhost);
chomp $gwIP;
# create static routes between the networks