diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index 17f6fc661..c52be2486 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -1548,7 +1548,7 @@ sub mkNIMnetwork } # get the ip of the nim primary interface - my $gwIP = inet_ntoa(inet_aton($adapterhost)); + my $gwIP = xCAT::Utils->getipaddr($adapterhost); chomp $gwIP; # create static routes between the networks