2
0
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:
Bin Xu
2017-06-29 16:51:31 +08:00
committed by yangsong
parent 2d497a0d8c
commit c95b277a4a

View File

@@ -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/) {