diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index f2049c50e..b66ad0921 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -16,6 +16,7 @@ use Sys::Hostname; use xCAT::NodeRange; use xCAT::Schema; use xCAT::Utils; +use xCAT::NetworkUtils; use xCAT::DBobjUtils; use Data::Dumper; use Getopt::Long; @@ -1498,7 +1499,7 @@ sub mkNIMnetwork # if the ip address is in the subnet # the right interface if ( xCAT::Utils->ishostinsubnet($myIP, $nethash{$node}{mask}, $nethash{$node}{net} )) { - $adapterhostname = xCAT::Utils->gethostname($myIP); + $adapterhostname = xCAT::NetworkUtils->gethostname($myIP); last; } }