mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-24 13:21:12 +00:00
Fix 3368, "noboot" is not working for mknb when multiple interfaces, and it is caused by something wrong in "get_nic_ip" (#3371)
This commit is contained in:
@@ -736,7 +736,7 @@ sub get_nic_ip
|
||||
my %iphash;
|
||||
my $mode = "MULTICAST";
|
||||
my $payingattention = 0;
|
||||
my $interface;
|
||||
my $interface = "";
|
||||
my $keepcurrentiface;
|
||||
|
||||
|
||||
@@ -793,6 +793,7 @@ sub get_nic_ip
|
||||
delete $iphash{$interface};
|
||||
}
|
||||
$keepcurrentiface = 0;
|
||||
$interface = "";
|
||||
if (!($line =~ /LOOPBACK/) and
|
||||
$line =~ /UP( |,|>)/ and
|
||||
$line =~ /$mode/) {
|
||||
|
Reference in New Issue
Block a user