From 455c4d6c0ad12e42566a8833fe81ebf172ef37c4 Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 7 May 2010 02:46:08 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/xcat2nim.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index 716c5f1a5..f2049c50e 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -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