use correct values in call to NetworkUtils->ishostinsubnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6247 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
724f226170
commit
f083db0faf
@ -1493,15 +1493,15 @@ sub mkNIMnetwork
|
||||
foreach my $int (@result) {
|
||||
my ($inet, $myIP, $str) = split(" ", $int);
|
||||
chomp $myIP;
|
||||
$myIP =~ s/\/.*//; # ipv6 address 4000::99/64
|
||||
$myIP =~ s/\%.*//; # ipv6 address ::1%1/128
|
||||
$myIP =~ s/\/.*//; # ipv6 address 4000::99/64
|
||||
$myIP =~ s/\%.*//; # ipv6 address ::1%1/128
|
||||
|
||||
# if the ip address is in the subnet
|
||||
# the right interface
|
||||
if ( xCAT::NetworkUtils->ishostinsubnet($myIP, $nethash{$node}{mask}, $nethash{$node}{net} )) {
|
||||
$adapterhostname = xCAT::NetworkUtils->gethostname($myIP);
|
||||
last;
|
||||
}
|
||||
# if the ip address is in the subnet
|
||||
# the right interface
|
||||
if ( xCAT::NetworkUtils->ishostinsubnet($myIP, $xnethash{$net}{mask}, $xnethash{$net}{net} )) {
|
||||
$adapterhostname = xCAT::NetworkUtils->gethostname($myIP);
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
||||
# define the new interface
|
||||
|
Loading…
Reference in New Issue
Block a user